# Insufficient space problem

**URL:** https://meta.discourse.org/t/insufficient-space-problem/62023
**Category:** Development
**Created:** [May 3, 2017, 4:21am UTC](https://meta.discourse.org/t/insufficient-space-problem/62023 "2017-05-03T04:21:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 3, 2017, 4:21am UTC](https://meta.discourse.org/t/insufficient-space-problem/62023/1 "2017-05-03T04:21:42Z")

</div>

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

Set-up  
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

```plaintext
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.

```plaintext
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` ?

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [May 3, 2017, 5:05am UTC](https://meta.discourse.org/t/insufficient-space-problem/62023/2 "2017-05-03T05:05:00Z")

</div>

> [@Mittineague](#):
>
> I increased to 8 GB RAM, but still no go.

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

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [May 3, 2017, 11:27am UTC](https://meta.discourse.org/t/insufficient-space-problem/62023/3 "2017-05-03T11:27:36Z")

</div>

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:

```bash
sudo ./launcher cleanup

```

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 3, 2017, 9:20pm UTC](https://meta.discourse.org/t/insufficient-space-problem/62023/4 "2017-05-03T21:20:43Z")

</div>

Thanks ☝ 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

```plaintext
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)
mittineague@ubuntu:/var/discourse$ 

```

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