My forum is 1 month old, ~15000 posts… I tried checking it tonight and received a 502 error. I then reloaded my Droplet and tried a ./launcher rebuild and was met with a
"785ef3cb0f4bbe86b21afde2620a966a63e03427e89484b0946a94d1bb34-init: no space left on device.
See '/usr/bin/docker run --help'.
Your Docker installation is not working correctly"
So I did a df -h and saw that my disk was completely full:
I did try that. I get the same out of space message when trying to cleanup:
./launcher: line 96: cannot create temp file for here-document: No space left on device
./launcher: line 97: cannot create temp file for here-document: No space left on device
./launcher: line 96: cannot create temp file for here-document: No space left on device
./launcher: line 97: cannot create temp file for here-document: No space left on device
./launcher: line 96: cannot create temp file for here-document: No space left on device
./launcher: line 97: cannot create temp file for here-document: No space left on device
./launcher: line 96: cannot create temp file for here-document: No space left on device
./launcher: line 97: cannot create temp file for here-document: No space left on device
/usr/bin/docker: Error response from daemon: mkdir /var/lib/docker/aufs/mnt/6dfedd25fd4d18e682780fc168b2f42ad42b1fee8a4f21b7728f8b4ecf36e51b-init: no space left on device.
See '/usr/bin/docker run --help'.
Your Docker installation is not working correctly
This doesn’t seem normal for a forum my size to take up 39GB?
My instance was a fresh install. You read my mind on the automatic backups. I was trying to figure out what I could remove to clear enough space for the ./launcher cleanup to work. So I went into /var/discourse/shared/standalone/backups/default and deleted a few of the old backups which cleared about 150mb of space.
I then was able to run ./launcher cleanup and that netted me back 16GB of space. I still have 24GB used up which seems like quite a lot for a forum my size.
Now my other problem is, I did a reboot on my droplet and ever since I did that, the initial 502 Gateway issue has turned into a Failed to open page issue. I still can’t get access to my Discourse, even after do a ./launcher rebuild
Now that you’ve enough headroom, what about apt-get update and apt-get upgrade? Once your droplet went into tilt mode not only the updates to discourse will have failed, but also any to the underlying OS.
Can you see /logs and /sidekiq? What about /safemode?
Sorry if my answers are a bit generic, I’m still on my first coffee.
I don’t think it’s normal for a forum my size to be using up 32GB like this… or I guess it is normal. DigitalOcean’s Volume Block Storage isn’t available in my server’s region, I will need to look into that to add in more space.
Thanks, I installed ncdu and ran it on root. Turns out there was still a couple extra backups in the /shared/ folder that didn’t get removed. I think I need to disable Discourse backups due to their disk size and just rely on DigitalOcean Snapshots instead…?
Instead of fully disabling backups, I’d just exclude uploads from them. Snapshots will certainly have your uploads, but might have an inconsistent database.