Unofficial Redmine Cooking - QA #782 yaml_db を使った DB のマイグレーションで失敗する

Similar documents
API サーバの URL. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE COMPLIANCE_SCAN SYSTEM "

MySQL Cluster 7.3 リリース記念!! 5 分で作る MySQL Cluster 環境

Online Meetings with Zoom

Yamaha Steinberg USB Driver V for Mac Release Notes

Androidプログラミング 2 回目 迫紀徳

本書について... 7 本文中の表記について... 7 マークについて... 7 MTCE をインストールする前に... 7 ご注意... 7 推奨 PC 仕様... 8 MTCE をインストールする... 9 MTCE をアンインストールする... 11

Cloud Connector 徹底解説. 多様な基盤への展開を可能にするための Citrix Cloud のキーコンポーネント A-5 セールスエンジニアリング本部パートナー SE 部リードシステムズエンジニア. 哲司 (Satoshi Komiyama) Citrix

Zabbix ログ解析方法. 2018/2/14 サイバートラスト株式会社 Linux/OSS 事業部技術統括部花島タケシ. Copyright Cybertrust Japan Co., Ltd. All rights reserved.

Methods to Detect Malicious MS Document File using File Structure Inspection

Introduction to Information and Communication Technology (a)

A. 展開図とそこから折れる凸立体の研究 1. 複数の箱が折れる共通の展開図 2 通りの箱が折れる共通の展開図 3 通りの箱が折れる共通の展開図そして. 残された未解決問題たち 2. 正多面体の共通の展開図 3. 正多面体に近い立体と正 4 面体の共通の展開図 ( 予備 )

J の Lab システムの舞台裏 - パワーポイントはいらない -

今日の予定 1. 展開図の基礎的な知識 1. 正多面体の共通の展開図. 2. 複数の箱が折れる共通の展開図 :2 時間目 3. Rep-Cube: 最新の話題 4. 正多面体に近い立体と正 4 面体の共通の展開図 5. ペタル型の紙で折るピラミッド型 :2 時間目 ~3 時間目

Computer Programming I (Advanced)

電脳梁山泊烏賊塾 構造体のサイズ. Visual Basic

Quick Install Guide. Adaptec SCSI RAID 2120S Controller

Yamaha Steinberg USB Driver V for Windows Release Notes

JASCO-HPLC Operating Manual. (Analytical HPLC)

携帯電話の 吸収率 (SAR) について / Specific Absorption Rate (SAR) of Mobile Phones

携帯電話の 吸収率 (SAR) について / Specific Absorption Rate (SAR) of Mobile Phones

PCIe SSD PACC EP P3700 Intel Solid-State Drive Data Center Tool

Saki is a Japanese high school student who/ has just started to study/ in the US.//

Agilent. IO Libraries Suite 16.3/16.2 簡易取扱説明書. [ IO Libraries Suite 最新版 ]

DürrConnect the clever connection. The quick connection with the Click

サーブレットと Android との連携. Generated by Foxit PDF Creator Foxit Software For evaluation only.

Yamaha Steinberg USB Driver V for Windows Release Notes

IRS16: 4 byte ASN. Version: 1.0 Date: April 22, 2008 Cisco Systems 2008 Cisco, Inc. All rights reserved. Cisco Systems Japan

Interdomain Routing Security Workshop 21 BGP, 4 Bytes AS. Brocade Communications Systems, K.K.

MathWorks Products and Prices Japan September 2016

Preparing Information Design-Oriented. Posters. easy to. easy to. See! Understand! easy to. Convey!

PRODUCT DESCRIPTIONS AND METRICS

UB-U01III/U02III/U03II User s Manual

Googleの強みは ささえるのは世界一のインフラ. Google File System 2008年度後期 情報システム構成論2 第10回 クラウドと協調フィルタリング. 初期(1999年)の Googleクラスタ. 最近のデータセンタ Google Chrome Comicより

Web Billing User Guide

BABr11.5 for Linux のインストール 2007/12/21. You are running Linux on Kernel smp. Analyzing the environment

WD/CD/DIS/FDIS stage

サンプル. NI TestStand TM I: Introduction Course Manual

Relaxed Consistency models and software distributed memory. Computer Architecture Textbook pp.79-83

BMW Head Up Display (HUD) Teardown BMW ヘッドアップディスプレイティアダウン

DSK8AD1DA. 8ch A/D & 1ch D/A for DSK/EVM.

振込依頼書記入要領 Entry Guide for Direct Deposit Request Form

TOOLS for MR V1.7.7 for Mac Release Notes

PSLT Adobe Typekit Service (2016v1.1)

暗い Lena トーンマッピング とは? 明るい Lena. 元の Lena. tone mapped. image. original. image. tone mapped. tone mapped image. image. original image. original.

BraindumpQuiz. Best exam materials provider - BraindumpQuiz! Choosing us, Benefit more!

フラクタル 1 ( ジュリア集合 ) 解説 : ジュリア集合 ( 自己平方フラクタル ) 入力パラメータの例 ( 小さな数値の変化で模様が大きく変化します. Ar や Ai の数値を少しずつ変化させて描画する. ) プログラムコード. 2010, AGU, M.

Studies of Large-Scale Data Visualization: EXTRAWING and Visual Data Mining

Synchronization with shared memory. AMANO, Hideharu Textbook pp.60-68

~ ソフトウエア認証への取り組みと課題 ~

Apollo-LakeタブレットにUbuntu17.10を Install Ubuntu17.10 on Apollo-Lake Tablet

PNRGOV/Ver11.1/ 旅客氏名表予約情報報告 (PNR01)

Video Annotation and Retrieval Using Vague Shot Intervals

TestsDumps. Latest Test Dumps for IT Exam Certification

Codegate 2014 オンライン予選 Write Up Chrono (Logical) 300

びんぼうでいいの による LCD シールド aitendo UL024TF のオシロスコープモード試験

Chapter 1 Videos Lesson 61 Thrillers are scary ~Reading~

Peering 101. August 2017 TPF. Walt Wollny, Director Interconnection Strategy Hurricane Electric AS6939

アルゴリズムの設計と解析 (W4022) 教授 : 黄潤和 広野史明 (A4/A8)

L3 SSG/SSD を使用している PPPoA クライアントで PC を設定すること

Nonfinancial Reporting Track:03 Providing non-financial information to reporters, analysts and asset managers; the EDINET Case

YAS530B MS-3E Magnetic Field Sensor Type 3E

Microchip 社ワイヤボンド変更のご案内

2. 集団の注目位置推定 提案手法では 複数の人物が同一の対象を注視している状況 置 を推定する手法を検討する この状況下では 図 1 のよう. 顔画像からそれぞれの注目位置を推定する ただし f は 1 枚 この仮説に基づいて 複数の人物を同時に撮影した低解像度顔

HPE Insight Control サーバープロビジョニング 7.6 ビルドプランリファレンスガイド

Operational Precaution

BraindumpStudy. BraindumpStudy Exam Dumps, High Pass Rate!

Vehicle Calibration Techniques Established and Substantiated for Motorcycles

Snoop cache. AMANO, Hideharu, Keio University Textbook pp.40-60

MetaSMIL : A Description Language for Dynamic Integration of Multimedia Content

Certificate of Accreditation

HA8000V シリーズ. Service Pack for HA8000V (SPH) Version Readme. All Rights Reserved. Copyright (c) 2018 Hitachi, Ltd.

UML. A Model Trasformation Environment for Embedded Control Software Design with Simulink Models and UML Models

User Guide. P6 Barcode Scanner. English 日本語

Verify99. Axis Systems

Module mjlgsys. End Module. Imports MySql.Data.MySqlClient. Public Class frmgsys 'SQL 関連の定数宣言はフォーム間共通にしておく

一覧にない機種は動作確認が未実施のものであり 正常動作しないという意味ではありません ACER 型番 ( 機種名 ) APPLE ASUS BRULE DELL. Windows Vista Home Premium

Private Sub 終了 XToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles 終了 XToolStripMenuItem.

Software Prototyping ( プロトタイピング ) Animating and demonstrating system requirements

URL IO オブジェクト指向プログラミング特論 2018 年度只木進一 : 工学系研究科

QuickTransit for Solaris/SPARC-to-Linux/Itanium 動作検証報告書 株式会社ネットワールドシステム基盤技術部プラットフォームソリューショングループ丸山真一

船舶保安システムのセルフチェックリスト. Record No. Name of Ship 船名 flag 国籍 Name of Company 会社名 Date 点検日 Place 場所 Checked by 担当者名. MS-SELF-CHK-SHIP-j (2012.

SteelEye Protection Suite for Linux

Ritsu-Mate Registration Manual (for Undergraduate Programs)

Denso Lexus GS250 TCU Teardown

OPTICAL TALK SET 光トークセット MODEL 415/430/450/450XL INSTRUCTION MANUAL 取扱説明書

Centralized (Indirect) switching networks. Computer Architecture AMANO, Hideharu

FUJITSU Software SystemcastWizard Professional V5.1 L30 ユーザーズガイド B7FW Z0(00) 2014 年 8 月

Lecture 4 Branch & cut algorithm


The Judgment of Document Similarities Orthogonal Transformations and Improvement of the property

Kazunari Okada( 岡田一成 ) Sr. Technical Marketing Manager ISO Vibration Analyst (CAT II) National Instruments Corporation Japan

Modern editor-independent development environment for PHP

製 品 ガ イ ド NetShield for NetWare V E R S I O N 4. 6

楽天株式会社楽天技術研究所 Autumn The Seasar Foundation and the others all rights reserved.

PGroonga 2. Make PostgreSQL rich full text search system backend!

Dream the sky. Make it yours.

Quick Installation Manual

SoftBank 101SI Upgrade tool for Windows PC Instruction Manual

QPHY-SATA Serial ATA Serial Data オペレーターズ マニュアル

Infrared Data Association Trademark and Brand Guidelines

Transcription:

Unofficial Redmine Cooking - QA #782 yaml_db を使った DB のマイグレーションで失敗する 2018/03/26 10:04 - Tamura Shinji ステータス : 新規開始日 : 2018/03/26 優先度 : 通常期日 : 担当者 : 進捗率 : 0% カテゴリ : 予定工数 : 0.00 時間 対象バージョン : 作業時間 : 0.00 時間 説明 環境は Environment: Redmine version 3.4.4.stable.17197 Ruby version 2.4.3-p205 (2017-12-14) [x86_6 Rails version 4.2.8 Environment production で MariaDB(10) から Postgresql(9.6) へデータ移行させようとしています RAILS_ENV=production bundle exec rake db:data:dump でデータダンプしたのち RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:plugins:migrate RAILS_ENV=production bundle exec rake tmp:cache:clear tmp:sessi RAILS_ENV=production bundle exec rake db:data:load を実行すると RAILS_ENV=production bundle exec rake db:data:load rake aborted! ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERR of transaction block : DELETE FROM "projects" sql/database_statements.rb:155:in `async_exec' sql/database_statements.rb:155:in `block in execute' _adapter.rb:484:in `block in log' rb:20:in `instrument' _adapter.rb:478:in `log' sql/database_statements.rb:154:in `execute' n truncate_table' _table' 2019/01/20 1/9

e' ments' load' /database_statements.rb:213:in `block in transaction' /transaction.rb:184:in `within_new_transaction' /database_statements.rb:213:in `transaction' ) in <top (required)>' /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake- PG::InFailedSqlTransaction: ERROR: current transaction is abor sql/database_statements.rb:155:in `async_exec' sql/database_statements.rb:155:in `block in execute' _adapter.rb:484:in `block in log' rb:20:in `instrument' _adapter.rb:478:in `log' sql/database_statements.rb:154:in `execute' n truncate_table' _table' e' ments' load' /database_statements.rb:213:in `block in transaction' /transaction.rb:184:in `within_new_transaction' /database_statements.rb:213:in `transaction' ) in <top (required)>' /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake- ActiveRecord::StatementInvalid: PG::FeatureNotSupported: ERROR: 2019/01/20 2/9

DETAIL: Table "easy_settings" references "projects". HINT: Truncate table "easy_settings" at the same time, or use : TRUNCATE "projects" sql/database_statements.rb:155:in `async_exec' sql/database_statements.rb:155:in `block in execute' _adapter.rb:484:in `block in log' rb:20:in `instrument' _adapter.rb:478:in `log' sql/database_statements.rb:154:in `execute' _table' e' ments' load' /database_statements.rb:213:in `block in transaction' /transaction.rb:184:in `within_new_transaction' /database_statements.rb:213:in `transaction' ) in <top (required)>' /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake- PG::FeatureNotSupported: ERROR: cannot truncate a table refere DETAIL: Table "easy_settings" references "projects". HINT: Truncate table "easy_settings" at the same time, or use sql/database_statements.rb:155:in `async_exec' sql/database_statements.rb:155:in `block in execute' _adapter.rb:484:in `block in log' rb:20:in `instrument' _adapter.rb:478:in `log' sql/database_statements.rb:154:in `execute' _table' e' ments' 2019/01/20 3/9

load' /database_statements.rb:213:in `block in transaction' /transaction.rb:184:in `within_new_transaction' /database_statements.rb:213:in `transaction' ) in <top (required)>' /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake- Tasks: TOP => db:data:load (See full trace by running task with --trace) となってしまいます Postgresql の 9.6 ではうまくいかないんでしょうか??? CentOS7 の 9.3 ではまだ試していないです 履歴 #1-2018/03/26 10:14 - Tamura Shinji trace オプションを付けた結果は以下になります ** Invoke db:data:load (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:data:load rake aborted! ActiveRecord::StatementInvalid: PG::InFailedSqlTransaction: ERROR: cur lock : DELETE FROM "projects" erecordtements.rb:155:in `async_exec' erecordtements.rb:155:in `block in execute' erecordin `block in log' esupport ment' erecordin `log' erecordtements.rb:154:in `execute' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each' /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents' db-0.6.0 db-0.6.0 erecordments.rb:213:in `block in transaction' erecord- 184:in `within_new_transaction' erecordments.rb:213:in `transaction' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 2019/01/20 4/9

ed)>' /usr/local/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize' /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/e /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `lo /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `<t /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:4 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:2 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:1 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:30:in `bl /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/friendly /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:22:in `<t PG::InFailedSqlTransaction: ERROR: current transaction is aborted, com erecordtements.rb:155:in `async_exec' erecordtements.rb:155:in `block in execute' erecordin `block in log' esupport ment' erecordin `log' erecordtements.rb:154:in `execute' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each' /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents' db-0.6.0 db-0.6.0 erecordments.rb:213:in `block in transaction' erecord- 184:in `within_new_transaction' erecordments.rb:213:in `transaction' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 ed)>' 2019/01/20 5/9

/usr/local/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize' /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/e /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `lo /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `<t /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:4 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:2 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:1 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:30:in `bl /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/friendly /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:22:in `<t ActiveRecord::StatementInvalid: PG::FeatureNotSupported: ERROR: cannot DETAIL: Table "easy_settings" references "projects". HINT: Truncate table "easy_settings" at the same time, or use TRUNCATE : TRUNCATE "projects" erecordtements.rb:155:in `async_exec' erecordtements.rb:155:in `block in execute' erecordin `block in log' esupport ment' erecordin `log' erecordtements.rb:154:in `execute' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each' /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents' db-0.6.0 db-0.6.0 erecordments.rb:213:in `block in transaction' erecord- 184:in `within_new_transaction' erecordments.rb:213:in `transaction' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 ed)>' /usr/local/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize' 2019/01/20 6/9

/var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/e /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `lo /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `<t /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:4 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:2 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:1 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:30:in `bl /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/friendly /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:22:in `<t PG::FeatureNotSupported: ERROR: cannot truncate a table referenced in DETAIL: Table "easy_settings" references "projects". HINT: Truncate table "easy_settings" at the same time, or use TRUNCATE erecordtements.rb:155:in `async_exec' erecordtements.rb:155:in `block in execute' erecordin `block in log' esupport ment' erecordin `log' erecordtements.rb:154:in `execute' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `each' /usr/local/lib/ruby/2.4.0/psych/deprecated.rb:32:in `load_documents' db-0.6.0 db-0.6.0 erecordments.rb:213:in `block in transaction' erecord- 184:in `within_new_transaction' erecordments.rb:213:in `transaction' db-0.6.0 db-0.6.0 db-0.6.0 db-0.6.0 ed)>' /usr/local/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize' 2019/01/20 7/9

/var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/e /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `lo /var/www/redmine/site/rtest/vendor/bundle/ruby/2.4.0/bin/rake:23:in `<t /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:4 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:2 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/cli.rb:1 /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:30:in `bl /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/lib/bundler/friendly /usr/local/lib/ruby/gems/2.4.0/gems/bundler-1.16.1/exe/bundle:22:in `<t Tasks: TOP => db:data:load #2-2018/03/26 13:38 - Tamura Shinji ちなみに mariadb -> mariadb はちゃんと動いてくれています #3-2018/03/26 21:42 - 奈良裕記 Plugin の無い plain な環境でも再現しますか? 後半のエラーは easyredmine 関連ですね #4-2018/03/27 12:06 - Tamura Shinji まだ plain な状態では試せてないんです データ減らしながら試してみようかと思っています とはいえ mariadb -> mariadb がうまくいっているので postgres 側の何かあるのかなぁと 2019/01/20 8/9

Powered by TCPDF (www.tcpdf.org) #5-2018/04/24 23:39 - 奈良裕記 taps で MySQL から PostgreSQL に移行した後に起きたトラブル事例 https://blog.n-z.jp/blog/2014-01-12-taps-trouble.html mysql->postgresql DB の default の違いも随分とあるんですね > 別途クリーンな環境を用意して生成した db/schema.rb と比較するなどのチェックも必要でした #6-2018/04/25 08:45 - Tamura Shinji あぅ メインの仕事が忙しくて手が付けられてないです migrate するファイルを見る限りは違いはないんですが 一度入れてしまってからだとデフォルトの違いはあるようですねぇ 2019/01/20 9/9