アップグレード後にブートストラップに失敗しました

最新のパッチ適用後、ブートストラップに失敗しました…

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1581 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

ログには以下が表示されています…

I, [2023-09-27T09:27:53.120283 #1]  INFO -- : > cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Gem::LoadError: can't activate ffi-1.15.5, already activated ffi-1.16.2
/var/www/discourse/lib/plugin_gem.rb:25:in `load'
/var/www/discourse/lib/plugin/instance.rb:825:in `gem'
/var/www/discourse/plugins/discourse-migratepassword/plugin.rb:28:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:722:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:722:in `activate!'
/var/www/discourse/lib/discourse.rb:347:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:344:in `each'
/var/www/discourse/lib/discourse.rb:344:in `activate_plugins!'
/var/www/discourse/config/application.rb:227:in `block in <class:Application>'
/var/www/discourse/lib/plugin.rb:6:in `initialization_guard'
/var/www/discourse/config/application.rb:227:in `<class:Application>'
/var/www/discourse/config/application.rb:75:in `<module:Discourse>'
/var/www/discourse/config/application.rb:74:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb:38:in `require'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb:38:in `require'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
(See full trace by running task with --trace)

現在、フォーラムを復旧させるために様々なことを試しています。

「いいね!」 1

これは migratepassword プラグインに関連しているようです。すべてのプラグインを無効にしてフォーラムを再構築することはできますが、migratepassword プラグインのみを有効にして再構築しようとすると、ブートストラップの失敗が発生します。

「いいね!」 1

@RGJ さんにもお声がけしておきます。彼ならもっと詳しいかもしれません。:crossed_fingers:

「いいね!」 4

はい、これはコアの依存関係の更新により昨日壊れました。PRはすでに私のToDoリストにあり、本日中または明日利用可能になります。

クイック修正:
オプション1:Discourse 91c94f(破壊的な変更前のコミット)をチェックアウトします。
オプション2:プラグインgem 'ffi', '1.15.5', require: falsegem 'ffi', '1.16.2', require: false に変更します。

「いいね!」 3

どちらの方法もよくわかりません。「version: 91c94f」をapp.ymlに入れてみましたが、うまくいかなかったので、おそらく間違ったことをしたのだと思います。

PRが準備できるまで、プラグインなしで実行します。ほとんどのユーザーはすでに古いパスワードから移行していますが、毎週1人か2人の「レガシーユーザー」が数年ぶりに現れます。

「いいね!」 1

これを変更するには、どのようなコマンドを使用しますか、またはファイルはどこにありますか?

この場合、コンソール、つまり実行するコマンドでどうすればよいですか?

二度手間になる理由はありません。特に、すぐに修正が利用可能になると申し上げたばかりですので。\n\ndiscourse-migratepassword の新バージョンが利用可能になりました。\n再ビルドしてください。

「いいね!」 2

リチャード、修正ありがとう。エラーなく再構築できました :grinning:

「いいね!」 1

同じ問題がまだ発生しています。また、プラグインに discourse-migratepassword がありません。

discourse-migratepassword はプラグインにありますか? 再構築を試しましたが、まだ同じ問題が発生しています。

es:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42
2023-09-27 16:50:33.227 UTC [42] LOG:  received fast shutdown request
I, [2023-09-27T16:50:33.227763 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
111:signal-handler (1695833433) Received SIGTERM scheduling shutdown...
2023-09-27 16:50:33.252 UTC [42] LOG:  aborting any active transactions
2023-09-27 16:50:33.262 UTC [42] LOG:  background worker "logical replication launcher" (PID 51) exited with exit code 1
2023-09-27 16:50:33.265 UTC [46] LOG:  shutting down
2023-09-27 16:50:33.282 UTC [42] LOG:  database system is shut down
111:M 27 Sep 2023 16:50:33.282 # User requested shutdown...
111:M 27 Sep 2023 16:50:33.283 * Saving the final RDB snapshot before exiting.
111:M 27 Sep 2023 16:50:33.295 * DB saved on disk
111:M 27 Sep 2023 16:50:33.296 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; su discourse -c 'bundle config --local deployment true' failed with return #&lt;Process::Status: pid 539 exit 1&gt;
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle config --local deployment true'", "su discourse -c 'bundle config --local without \"development test\"'", "su discourse -c 'bundle install --retry 3 --jobs 4'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
92863be4bda311c642a83b1afd97e58a64e9044ea2dc0e23f245fafb086851f7

彼が書いたように、彼は持っています。
もし持っていないなら、始めたトピックで続けて、完全なエラーメッセージを共有してください。

「いいね!」 5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.