Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Deploy - "file write error (No space left on device)"

Tags:

git

[Wed, 01 Dec 2010 12:17:07 -0800] DEBUG: STDERR: error: file write error (No space left on device) fatal: unable to write sha1 file fatal: unpack-objects failed

I have seen a couple of discussions on this but haven't found a fix. I have two apps on my instance and never had this problem before. My recent commit was not very large either (database migration and controller addition). Any advice on what to do here? The volumes on my instance are not out-of-space.

like image 755
yexela Avatar asked Dec 01 '10 22:12

yexela


1 Answers

Git was trying to unpack some objects, but was not able to do so. As the error suggests this might be because of a just "no space left on device", which might also mean "no inodes left on device".

Please check with df -h and df -hi. (Assuming gnu-coreutils are present, as in any good linux system.)

You did not say what command you ran and where you found that error. The command might interact with another server, hence it might not be obvious what "device" is talked about.

The error message looks like copied from a log file, in this case it is likely the "device" is on the same host as the log file.

like image 112
michas Avatar answered Sep 28 '22 03:09

michas