重建失败:引导程序失败,退出代码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 个赞

这主意不错!如果能腾出磁盘空间,增加一些交换空间似乎更容易。

我遇到了这个问题,有时并不是因为内存不足,而是因为没有手动为docker分配内存。在恢复网站备份之前,您必须先执行 ./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.