I’m trying to rebuild Discourse but I’m running into this error:
FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 4266 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105: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'"]}
702e319df6b2f9a477ab0ad6eebdd689ad0b7bab97770d4c80fd82a73f3a95dc
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
Scrolling up I found:
Errno::ENOSPC: No space left on device - /var/www/discourse/tmp/cache/assets/production/sprockets/c88f54c1a16e5204b2aebda1caf30657
I tried locating the /var/www/discourse/ directory, but it doesn’t exist:
ubuntu@discourse:/var/discourse$ cd /var/www/discourse
-bash: cd: /var/www/discourse: No such file or directory
How did this happen? This is a new install with less than 50 topics.
I have built and rebuilt the app a few times; could that be reason I ran out of disk space? If so, then the question is: why? Could this be because of temporary files that were not being deleted?
I thought /var/www/discourse was a good place to start, but it seems like it isn’t.
Thanks, @sam, but that unfortunately didn’t solve the problem:
ubuntu@discourse:/var$ cd /var/discourse/
ubuntu@discourse:/var/discourse$ sudo ./launcher cleanup
The following command will
- Delete all docker images for old containers
- Delete all stopped and orphan containers
Are you sure (Y/n): Y
Starting Cleanup (bytes free 716712)
date: invalid date '"2015-09-28 10:45:1'
scripts/docker-gc: line 69: 1443439271 - : syntax error: operand expected (error token is "- ")
Finished Cleanup (bytes free 716692)
ubuntu@discourse:/var/discourse$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
local_discourse/app latest 9698d6e190bb 49 minutes ago 1.929 GB
<none> <none> 48086d6c592e 2 days ago 1.928 GB
<none> <none> 537dec28027b 2 days ago 1.928 GB
<none> <none> aa2b4af001ab 3 days ago 1.928 GB
samsaffron/discourse 1.0.13 27f52292c186 6 days ago 1.238 GB
But the first failure was caused by lack of disk space. There was no other cause for failure, which suggests to me that your assumption is not correct. Are we missing something else here?
Would you like me to provide more info on their versions? Let me know how and I’ll happily do that.
Thanks again, @sam, for your help. The forum is back up now!
@sam I’m trying to remove an existing image but I can’t seem to remove it
root@ip-172-31-27-60:/var/discourse# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
local_discourse/app latest 2bc4af777b30 12 days ago 2.284 GB
discourse/discourse 1.3.8 7f8853cc1cb9 4 weeks ago 1.534 GB
root@ip-172-31-27-60:/var/discourse# docker rmi 7f8853cc1cb9
Error response from daemon: conflict: unable to delete 7f8853cc1cb9 (cannot be forced) - image has dependent child images
I’m not sure how else to free up space on my system (I’m not exactly a tech guru)
I have very limited free space on discourse right now and I’m afraid it may crash or something.
I understand my total space is quite small but that’s because I’m hosting on AWS (t2.micro)
Also I get this error when I try to run cleanup:
root@ip-172-31-27-60:/var/discourse# sudo ./launcher cleanup
WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed
Please be patient
Unable to find image 'discourse/discourse:1.3.9' locally
1.3.9: Pulling from discourse/discourse
b87f06441b40: Pulling fs layer
69c598d5b6ca: Pulling fs layer
b87f06441b40: Verifying Checksum
b87f06441b40: Download complete
69c598d5b6ca: Verifying Checksum
69c598d5b6ca: Download complete
/usr/bin/docker: failed to register layer: Error processing tar file(exit status 1): write /var/lib/dpkg/status-old: no space left on device.
See '/usr/bin/docker run --help'.
Your Docker installation is not working correctly
I wanted to login to the admin UI from browser just now but I think it may be broken due to the lack of space?
(The whole layout of the page is suddenly all wrong)
Is this the guide I want to follow? I already have a good amount of data inside the discourse and I don’t want to mess it up.