# Discourse installation error

**URL:** https://meta.discourse.org/t/discourse/373523
**Category:** Self-hosting
**Created:** [July 9, 2025, 10:24am UTC](https://meta.discourse.org/t/discourse/373523 "2025-07-09T10:24:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cshll](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@cshll](https://meta.discourse.org/u/cshll)
#### Post date: [July 9, 2025, 10:24am UTC](https://meta.discourse.org/t/discourse/373523/1 "2025-07-09T10:24:14Z")

</div>

An error occurred during installation

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse &amp;&amp; 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 #&lt;Process::Status: pid 163 exit 128&gt;
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"=>"code", "cmd"=>["sudo -H -E -u discourse git clean -f", "sudo -H -E -u discourse bash -c '\n set -o errexit\n if [$(git rev-parse --is-shallow-repository) == \"true\"]; then\n git remote set-branches --add origin main\n git remote set-branches origin $version\n git fetch --depth 1 origin $version\n else\n git fetch --tags --prune-tags --prune --force origin\n fi\n'", "sudo -H -E -u discourse bash -c '\n set -o errexit\n if [[$(git symbolic-ref --short HEAD) == $version]] ; then\n git pull\n else\n git -c advice.detachedHead=false checkout $version\n fi\n'", "sudo -H -E -u discourse git config user.discourse-version $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p /shared/log/rails", "bash -c \"touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln -s /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p /shared/{uploads,backups}\"", "bash -c \"ln -s /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p /shared/tmp/{backups,restores}\"", "bash -c \"ln -s /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp\"", "[! -d public/plugins] || find public/plugins/ -maxdepth 1 -xtype l -delete"]}
bootstrap failed with exit code 128
**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.
0f20f70cb00b9d9bbea2ff81d73f30f64962439cd5b434de716f6c38ebb0aa83
root@bird-cloud:/var/discourse#

```

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [July 9, 2025, 11:52am UTC](https://meta.discourse.org/t/discourse/373523/2 "2025-07-09T11:52:23Z")

</div>

> [@cshll](#):
>
> ```plaintext
> **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.
> 
> ```

there should be more backtrace info - post the whole output please.

did you try discourse-doctor?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 9, 2025, 2:03pm UTC](https://meta.discourse.org/t/discourse/373523/3 "2025-07-09T14:03:49Z")

</div>

> [@cshll](#):
>
> ```plaintext
> Process::Status: pid 163 exit 128
> 
> ```

That error is running out of ram.

How much ram and swap do you have? What does

```plaintext
free -h

```

tell you?

You’ll need to add memory and/or swap. If you’ve got just 1GB of ram, I’d add 4 GB of swap. And I’ve been increaing people with 2GB of RAM to 3 or 4GB as well.

---

<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: [August 8, 2025, 2:04pm UTC](https://meta.discourse.org/t/discourse/373523/4 "2025-08-08T14:04:21Z")

</div>

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