Search code examples
ruby-on-railscapistranodigital-ocean

Deploy says disk full when the disk is not actually full


I'm trying to deploy an update to our rails app on a digital ocean box. When I run cap deploy I get the errors:

error: file write error (No space left on device)
fatal: unable to write sha1 file
fatal: unpack-objects failed

When I run df I see that we are only using 15% of our disk space:

Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/vda1       41151808 5500720  33537664  15% /
none                   4       0         4   0% /sys/fs/cgroup
udev             1014128       4   1014124   1% /dev
tmpfs             205000     360    204640   1% /run
none                5120       0      5120   0% /run/lock
none             1024980       0   1024980   0% /run/shm
none              102400       0    102400   0% /run/user

df -i reveals:

Filesystem      Inodes  IUsed   IFree IUse% Mounted on
/dev/vda1      2621440 176278 2445162    7% /
none            256245      2  256243    1% /sys/fs/cgroup
udev            253532    402  253130    1% /dev
tmpfs           256245    325  255920    1% /run
none            256245      1  256244    1% /run/lock
none            256245      1  256244    1% /run/shm
none            256245      3  256242    1% /run/user

I've tried deleting log files and rebooting the box with no luck. Any ideas on why it thinks our disk is full?


Solution

  • Turns out the error was actually coming from the database server - which was full.