更新失败后的错误:[rake themes:update assets:precompile]

今天,在通过管理面板执行标准更新后,更新被阻止了,并且在尝试手动执行 ./launcher rebuild app 时,第一次没有成功 :face_with_diagonal_mouth:,并出现了以下错误:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 754 exit 1>

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 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.

有什么建议可以解决这个问题吗?

1 个赞

你能向上滚动到那条消息,看看是否有更具体的错误吗?

1 个赞

@JammyDodger 我真的不知道该怎么做,我使用 DigitalOcean - 它的控制台我只运行过几次来重建。我给你留一张截图,以防你看到堆栈跟踪和错误报告中的错误

2 个赞

您好 @TroyaNO - 看起来您尝试将 discourse-social-share 主题组件安装为插件。您应该从 app.yml 文件中删除该行。

为了提供一些背景:将主题放在 plugins 目录中从未奏效。但在过去,它会默默失败,没有任何错误。在过去大约 24 小时内(自从 提交),它开始引发错误。我刚刚推送了 另一项更改,使其恢复到旧的“默默无为”行为,因此如果您再次尝试更新,应该会成功。

6 个赞

你好 @david,太棒了!我再次运行了 ./launcher rebuild app,现在它似乎可以正常工作了,你真是太厉害了!:clap:

顺便问一下,从控制台 (?) 编辑 app.yml 文件的命令是什么?我应该删除什么?或者它不再需要了?

感谢你的大力支持!

1 个赞

编辑 app.yml 的命令可以在 Install plugins on a self-hosted site 的开头找到。

你应该删除整行提到 discourse-social-share 的内容。

即使错误消失了,我仍然建议删除它。在插件目录中存在主题可能会在将来导致其他问题。

3 个赞

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