# Error: Failed to bootstrap

**URL:** https://meta.discourse.org/t/error-failed-to-bootstrap/298610
**Category:** Self-hosting
**Created:** [March 8, 2024, 7:28pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610 "2024-03-08T19:28:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Gonerdot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gonerdot/32/366307_2.png) [@Gonerdot](https://meta.discourse.org/u/Gonerdot)
#### Post date: [March 8, 2024, 7:28pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/1 "2024-03-08T19:28:56Z")

</div>

Hello. I wanted to install the plugin, but after /rebuild app I got an out of memory error.  
I added disk space, rebooted the server and repeated /rebuild app, but this time I don’t understand what the problem is:

```plaintext
/usr/local/bin/bundle:25:in `<main>'
(See full trace by running task with --trace)
I, [2024-03-08T19:22:34.066685 #1] INFO -- : gem install ruby-openid -v 2.9.2 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed ruby-openid-2.9.2
1 gem installed
gem install rack-openid -v 1.4.2 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed rack-openid-1.4.2
1 gem installed
gem install omniauth-openid -v 2.0.1 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed omniauth-openid-2.0.1
1 gem installed
gem install omniauth-steam -v 1.0.6 -i /var/www/discourse/plugins/discourse-steam-login/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed omniauth-steam-1.0.6
1 gem installed
gem install omniauth-vkontakte -v 1.7.1 -i /var/www/discourse/plugins/discourse-vk-auth/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed omniauth-vkontakte-1.7.1
1 gem installed

I, [2024-03-08T19:22:34.067577 #1] INFO -- : Terminating async processes
I, [2024-03-08T19:22:34.067648 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42
I, [2024-03-08T19:22:34.067687 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
2024-03-08 19:22:34.068 UTC [42] LOG: received fast shutdown request
111:signal-handler (1709925754) Received SIGTERM scheduling shutdown...
2024-03-08 19:22:34.072 UTC [42] LOG: aborting any active transactions
2024-03-08 19:22:34.078 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2024-03-08 19:22:34.078 UTC [46] LOG: shutting down
2024-03-08 19:22:34.109 UTC [42] LOG: database system is shut down
111:M 08 Mar 2024 19:22:34.117 # User requested shutdown...
111:M 08 Mar 2024 19:22:34.118 * Saving the final RDB snapshot before exiting.
111:M 08 Mar 2024 19:22:34.288 * DB saved on disk
111:M 08 Mar 2024 19:22:34.290 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 3378 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1
**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.
962ee73e2d4c8f902da810010d0bb70d5a784416d3b1ab80bcad7c4ff1351149
root@cv3533865:/var/discourse#

```

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [March 8, 2024, 7:30pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/2 "2024-03-08T19:30:20Z")

</div>

Could you provide a few more lines above that? The error seems cut off by a couple lines.

---

<div class="post-metadata">

### Author: ![Gonerdot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gonerdot/32/366307_2.png) [@Gonerdot](https://meta.discourse.org/u/Gonerdot)
#### Post date: [March 8, 2024, 7:31pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/3 "2024-03-08T19:31:30Z")

</div>

Okay, a couple of minutes. Started doctor

---

<div class="post-metadata">

### Author: ![Gonerdot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gonerdot/32/366307_2.png) [@Gonerdot](https://meta.discourse.org/u/Gonerdot)
#### Post date: [March 8, 2024, 7:48pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/4 "2024-03-08T19:48:24Z")

</div>

Forget. The problem was with the plugin I wanted to install: [GitHub - Gonerdot/hello\_plugin · GitHub](https://github.com/Gonerdot/hello_plugin)  
I wrote a simple plugin using ChatGPT, since I don’t understand ruby ​​myself, but apparently something is wrong.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [March 8, 2024, 7:54pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/5 "2024-03-08T19:54:42Z")

</div>

I don’t know ruby, but that almost looks like it’d be better as a #Customization > Theme component instead of a #Customization > Plugin.

---

<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: [March 8, 2024, 8:36pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/6 "2024-03-08T20:36:40Z")

</div>

Yes. It can be a theme component. You need a plugin only to change stuff on the Ruby side of things. Have a look at the [Theme Developer Quick Reference Guide](https://meta.discourse.org/t/theme-developer-quick-reference-guide/110448) and the get started one.

---

<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: [April 7, 2024, 8:37pm UTC](https://meta.discourse.org/t/error-failed-to-bootstrap/298610/7 "2024-04-07T20:37:17Z")

</div>

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