Need help! Rebuild app, no space left on device

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 :slight_smile:

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
1 Like

That seems like a pretty definitive error to me.

4 Likes

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
7 Likes

I try this, It’s oki now

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

Thank you!

7 Likes