从 2.9.0 beta 3 更新到 beta 4 失败 - 网站已关闭

您好,

我尝试从 2.9.0 beta 3 更新到 beta 4。通过 Web 界面更新失败。执行 git pull/launcher rebuild app 均无效。

最终输出:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 647 exit 134>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
bootstrap failed with exit code 134
** 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.
f5cd177671cf156b418115fd9956929e98c03223fbab30c91da284cee52510e3
==================== END REBUILD LOG ====================
Failed to rebuild app.

Discourse doctor 也没有帮助。

我在日志中找不到更早的错误信息,只是一些关于 Theme plugin Slick 的警告。但这些信息在 PowerShell 中被截断了。

我不确定升级日志文件的位置。我执行了 ./launcher build app | tee ~\\Rebuild.txt

但这导致了一个奇怪的状态,日志文件非常短,只有大约 50 行。论坛启动了,但仍然是 beta 3 版本。速度非常慢,并且无法访问任何帖子。

在更新之前,我确实做了一个备份。

您有多少内存和交换空间?

 free -h
              total        used        free      shared  buff/cache   available
Mem:            14G        661M        5.3G        684K        8.4G         13G
Swap:            0B          0B          0B

添加 8g 的交换空间,并使用 top 监视重建过程。从未触及过交换空间。尝试重建,但仍然失败。

通过日志检查(输出日志在哪里/如何找到?)。有一个进程崩溃的内存转储。仍然不确定日志在哪里,但找到了 PowerShell 中的缓冲区限制并增加了它。日志已附加。

ErrorLog.txt (567.0 KB)

看起来 awesome-bbcodes 出错了?我将关闭它再试一次。

我们能否在未来的版本中实现,如果重建出错,它能提供重建日志的位置?

您可以运行 ./discourse-doctor,它会生成重建日志并将其存储在 /tmp 中。

您说得对,从外观上看,似乎很棒的 bbcode 主题组件 插件出错并导致重建失败。

尝试运行 ./launcher start app 并禁用该组件,然后重新构建。

2 个赞

已从 app.yml 中移除并重建。现在看起来不错。正在尝试使用 discourse-custom-bbcodes 进行重建

谢谢。

1 个赞

我没意识到这是一个插件。很高兴知道你已经解决了。

是的,烹饪过程和测试需要后端支持。

2 个赞

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