Rebuild因仍在`master`分支上而失败。使用`git checkout main`修复

这可能是缺少 yarn 的问题?我不确定是什么原因造成的,或者是否有其他可能的原因……

discourse-checklist 已是最新兼容版本
discourse-spoiler-alert 已是最新兼容版本
discourse-affiliate 已是最新兼容版本

I, [2022-02-15T18:02:48.675851 #1]  INFO -- : cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
I, [2022-02-15T18:02:55.018972 #1]  INFO -- : 
I, [2022-02-15T18:02:55.019167 #1]  INFO -- : cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
sh: 1: yarn: not found
I, [2022-02-15T18:03:00.609631 #1]  INFO -- : Checking 'Easy Footer (TH)' for 'default'... up to date
Checking 'discourse-user-field-prompt' for 'default'... up to date
Checking 'Rotate Global Banner(JP)' for 'default'... 



FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 5437 exit 127>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
d6ac4e7c27174dd04269576be15628207fe7d8d19f99c6ea524836f8ee43b895
** 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.

我们的基础镜像已经集成了 yarn 一段时间了。您正在运行的基础镜像版本是哪个?

1 个赞

我以为我疯了。

问题是该主机仍在 master 分支上;git checkout main 解决了这个问题。

我想我应该在所有主机(或更准确地说,是那些执行引导/销毁/启动而非重建过程的双容器主机)上执行 git checkout main,以防它们太旧而需要这样做。

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