Rebuild失敗:bootstrapが終了コード137で失敗

再構築しようとすると、次のエラーが発生します。ここで同様のスレッドを見て、いくつかのプラグインを削除しましたが、問題は解決しませんでした。

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build' failed with return #<Process::Status: pid 666 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"build", "hook"=>"assets_precompile_build", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile:build'"]}
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.
4490985a65ce2bcadfb9a4dbf82c674b9fd999dc32d42cc9e7c3c265f73c9c6c

完全なログは添付されています
rebuild_log.txt (39.6 KB)

137 はメモリ不足です。メモリ(RAM)を追加するか、スワップを追加してください。

提案ありがとうございます。うまくいきました。サイトが復旧しました!

「いいね!」 1

これを以前に行ったのですが、通常は再構築の前にパッケージの更新と再起動を行いますが、今回は行いませんでした。

再起動して再構築したところ、すぐに機能しました。十分だったのでしょう。

「いいね!」 1

悪くない考えです!ディスク容量に余裕があれば、もう少しスワップを追加する方が簡単です。

この問題に遭遇しました。RAMメモリが小さすぎるのではなく、DockerにRAMを手動で割り当てていないことが原因である可能性があります。ウェブサイトのバックアップを復元する前に、まず ./discourse-setup コマンドを実行する必要があります。そうすると、Dockerに自動的にメモリが割り当てられます。その後、Ctrl + C でコマンドを終了し、バックアップ app.yml をアップロードして ./launcher rebuild app を実行してください。

「いいね!」 1

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