Rebuild fails during bootstrapping

My Discourse rebuild fails with the following error:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
' failed with return #<Process::Status: pid 130 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'

Is there any more info further up in the logs?

1 Like

I think the container host had some issues after updating local packages. After this build failure I started the last successful built container, which started, but I noticed issues with reaching out to external sources. Such as auto resolving topic titles based on URLs and the chat integration with Discord and Matrix failed. Rebooting the container host solved these issues. Then I retried a new container build, that goes passed the previous part that failed. So I think it’s fine now.

My container host does automatic restarts of services if a dependency got updated, maybe this caused issues on the host with incomplete restarts or dependencies that should cause a restart of a service. In any case, rebooting solved it.

Edit: The container was built this time successfully.

2 Likes

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