FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'yarn install --frozen-loc && yarn cache clean' failed with return #<Process::Status: pid 312 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_co.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"yarn", "cmd"=>["if [ \"$version \"tests-passed\" ]; then\n rm -rf app/assets/javascripts/node_modules\nfi", "su dise -c 'yarn config set network-timeout 60000 -g'", "su discourse -c 'yarn install --n-lockfile && yarn cache clean'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, ther be more than one.
./discourse-doctor may help diagnose the problem.
8364a2746508ebbe07b1d54773e6e25d7b98f529021d6272d5cf92cda68e1d8c
1 个赞
您提供的信息不清楚。
您使用的是哪个版本的 Docker?您运行的是什么操作系统?
1 个赞
如您剪辑中的下几行所示。您需要向上滚动日志。很可能存在有助于确定原因的错误。
正如 Jay 所提到的,更多细节会有帮助。例如,您运行的是 Stable 还是 Tests-passed。操作系统版本和服务器规格可能也会有帮助。
1 个赞
抱歉造成混淆。我是新手。我们已经使用 discourse 代码库自托管了一个站点。
错误(如果有所帮助):
I, [2025-02-10T05:18:31.699440 #1] INFO -- :
> cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
error discourse@: 引擎“yarn”与此模块不兼容。预期版本“please-use-pnpm”。得到“1.22.22”
warning discourse@: 引擎“pnpm”似乎无效。
error 发现不兼容的模块。
I, [2025-02-10T05:18:31.982174 #1] INFO -- : yarn install v1.22.22
info 未找到 lockfile。
Docker 版本:26.1.3
操作系统:
名称=“Rocky Linux”
版本=“8.10 (Green Obsidian)”