# Rebuild fails during bootstrapping

**URL:** https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269
**Category:** Self-hosting
**Created:** [May 8, 2024, 3:33pm UTC](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269 "2024-05-08T15:33:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)
#### Post date: [May 8, 2024, 3:33pm UTC](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269/1 "2024-05-08T15:33:15Z")

</div>

My Discourse rebuild fails with the following error:

```plaintext
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'

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 8, 2024, 4:28pm UTC](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269/2 "2024-05-08T16:28:22Z")

</div>

Is there any more info further up in the logs?

---

<div class="post-metadata">

### Author: ![AquaL1te](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aqual1te/32/201966_2.png) [@AquaL1te](https://meta.discourse.org/u/AquaL1te)
#### Post date: [May 9, 2024, 4:27am UTC](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269/3 "2024-05-09T04:27:21Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 8, 2024, 4:28am UTC](https://meta.discourse.org/t/rebuild-fails-during-bootstrapping/307269/4 "2024-06-08T04:28:00Z")

</div>

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