simon
September 21, 2024, 8:46pm
4
Mehmet:
Pups::ExecError: cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean' failed with return #<Process::Status: pid 301 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", "hook"=>"yarn", "cmd"=>["if [ \"$version\" != \"tests-passed\" ]; then\n rm -rf app/assets/javascripts/node_modules\nfi", "su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'"]}
bootstrap failed with exit code 1
I’m wondering if the issue is related to the change from yarn to pnpm for package management. Details about that change are here: Discourse core is switching to pnpm for JS package management .
Have you added any yarn
commands to your app.yml
file? The “Production” section of the doc I linked to says that yarn
commands need to be changed to pnpm
commands.
2 Likes