# Need help! Rebuild app, no space left on device

**URL:** https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794
**Category:** Self-hosting
**Created:** [November 11, 2016, 8:21am UTC](https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794 "2016-11-11T08:21:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nam\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nam_nguyen/32/68634_2.png) [@Nam\_Nguyen](https://meta.discourse.org/u/Nam_Nguyen)
#### Post date: [November 11, 2016, 8:21am UTC](https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794/1 "2016-11-11T08:21:59Z")

</div>

Hello, I try to add plugin to app.yml file , but when I run Rebuild app, I have Error in bellow, can anyone help me please, Thank you so much 🙂

```
155:M 11 Nov 08:14:09.904 # Error trying to save the DB, can't exit.
155:M 11 Nov 08:14:09.904 # SIGTERM received but errors trying to shut down the server, check the logs for more information
2016-11-11 08:14:09 UTC [46-2] LOG: database system is shut down
2016-11-11 08:14:09 UTC [50-1] LOG: could not write temporary statistics file "pg_stat/db_16384.tmp": No space left on device
2016-11-11 08:14:09 UTC [50-2] LOG: could not close temporary statistics file "pg_stat/db_1.tmp": No space left on device
2016-11-11 08:14:09 UTC [50-3] LOG: could not close temporary statistics file "pg_stat/db_12413.tmp": No space left on device
2016-11-11 08:14:09 UTC [50-4] LOG: could not close temporary statistics file "pg_stat/db_0.tmp": No space left on device
2016-11-11 08:14:09 UTC [50-5] LOG: could not close temporary statistics file "pg_stat/global.tmp": No space left on device
I, [2016-11-11T08:14:19.868506 #13] INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid:155 did not terminate cleanly, forcing termination!

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --verbose --without test --without development' failed with return #<Process::Status: pid 279 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
699943b3be202511b68df0e45a0c97641224fd6cf5fc53443960d47a3e447d3d
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [November 11, 2016, 8:24am UTC](https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794/2 "2016-11-11T08:24:15Z")

</div>

> [@Nam\_Nguyen](#):
>
> No space left on device

That seems like a pretty definitive error to me.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [November 11, 2016, 8:36am UTC](https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794/3 "2016-11-11T08:36:08Z")

</div>

Some hints:

- `/var/discourse/launcher cleanup` can reclaim space from older containers
- `sudo apt-get autoremove && sudo apt-get clean` can reclaim space from older and cached packages

---

<div class="post-metadata">

### Author: ![Nam\_Nguyen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nam_nguyen/32/68634_2.png) [@Nam\_Nguyen](https://meta.discourse.org/u/Nam_Nguyen)
#### Post date: [November 11, 2016, 8:39am UTC](https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794/4 "2016-11-11T08:39:39Z")

</div>

I try this, It’s oki now

```
apt-get autoclean
apt-get autoremove
cd /var/discourse
./launcher cleanup

```

Thank you!

---

<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 29, 2022, 3:48pm UTC](https://meta.discourse.org/t/need-help-rebuild-app-no-space-left-on-device/52794/5 "2022-04-29T15:48:48Z")

</div>


