Insufficient space problem

(Mittineague) #1

I’ve been wrestling with a Virtual Machine problem for a few days and playing sysadmin without much luck.

Windows 10, VMware Player, Ubuntu 16.04 LTS 64-bit, 5 GB RAM

I rebuild the app very frequently and have up to now not had any serious problems, except for needing to run

sudo apt-get autoclean
sudo apt-get autoremove

every once in a while.

But the other day rebuild failed with an insufficient space error and running those commands didn’t help. I increased to 8 GB RAM, but still no go.

There was an error while trying to write to `/var/www/discourse/.bundle/config`.
There was insufficent space remaining on the device.

Off-topic unimportant BTW “insufficent” is misspelled

Is there anything here I can safely sudo rm ?

mittineague@ubuntu:/$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G     0  3.9G   0% /dev
tmpfs           798M  9.3M  789M   2% /run
/dev/sda1        16G   15G  735M  96% /
tmpfs           3.9G  680K  3.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs           798M   52K  798M   1% /run/user/1000
/dev/sr0         47M   47M     0 100% /media/mittineague/CDROM
/dev/sr1        1.4G  1.4G     0 100% /media/mittineague/Ubuntu 16.04 LTS amd64

We need a "large fonts" and "small fonts" theme to ship with Discourse
(Michael - #2

Your problem is not about internal memory, but about disk space.

(Dean Taylor) #3

You might find a friend in the following command to free up some space, remember to read and note the warnings especially if this is a development install:

sudo ./launcher cleanup

(Mittineague) #4

Thanks :point_up: that was just the kick in my dunder head that I needed!

I had some inode - manual fsck problems and didn’t think to shift gears from Ubuntu to Docker, completely forgetting about launcher cleanup

mittineague@ubuntu:~$ cd /var/discourse
mittineague@ubuntu:/var/discourse$ sudo ./launcher cleanup
[sudo] password for mittineague: 

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 651344)
Finished Cleanup (bytes free 5654176)

rebuild app has just now successfully finished and I’m once again back in business :grinning: