Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateコマンドの実行に失敗した際、プラグインが無効になる #2130

Closed
seto1 opened this issue May 1, 2023 · 4 comments
Assignees
Labels
Bug バグ Reviewed レビュー済

Comments

@seto1
Copy link
Collaborator

seto1 commented May 1, 2023

概要

以下のコマンドを実行した際にエラーが発生した場合、各種プラグインが無効になる

./bin/cake update

baserCMS version : 5.0.1-dev

TODO

@ryuring
Copy link
Collaborator

ryuring commented May 1, 2023

@seto1 ちなみにエラーはどこで発生したのでしょう?スクリプトの実行ですか?

@ryuring ryuring added Reviewed レビュー済 ver5 labels May 1, 2023
@seto1
Copy link
Collaborator Author

seto1 commented May 1, 2023

@ryuring 問題が起きたのが先月のことであまり詳細な状況を記録できていないのですが、もう少し詳しく記載すると以下の状況です。

  1. 初期インストールを行った環境とは別の環境のbaserのアップデートを試みる
  2. baser関連のファイルをSFTPで上書き
  3. ./bin/cake update コマンドでDBの更新を行う
    • ここでエラー
    • 全てのログは記録できていないものの以下のエラーが含まれていたことは確認
Invalid datetime format: 1292 Incorrect datetime value: ‘0000-00-00 00:00:00’ for column ‘created’ at row 1
  1. 該当環境のTOPページが開けなくなり調査したところプラグインが無効になっていたことを確認

事前にローカル環境で実行したときは上手くいきました。
ローカルと別の環境とで、mysqlのsqlmodeが異なっていたことが原因ではとは考えています。

エラーの発生元としては何かのマイグレーションファイルのSQLでした。

@ryuring
Copy link
Collaborator

ryuring commented May 1, 2023

@seto1 情報ありがとうございます。
マイグレーションファイルなんですね、再現できたらロールバック処理を書きたいと思います。

@ryuring ryuring added the Bug バグ label May 1, 2023
@ryuring ryuring closed this as completed in 3156236 May 2, 2023
@ryuring
Copy link
Collaborator

ryuring commented May 2, 2023

@seto1 同じエラーの再現はできませんでしたが、取り急ぎ、不正なマイグレーションファイルを配置するテストを書いて解決しています。
3156236

fuchigam1 added a commit to fuchigam1/basercms that referenced this issue Jun 23, 2023
- baserCMSバージョン4.4.7以降に作成されたコミットを baserCMS5に移行
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug バグ Reviewed レビュー済
Projects
None yet
Development

No branches or pull requests

2 participants