question

SaraH-5653 avatar image
0 Votes"
SaraH-5653 asked kobulloc-MSFT answered

fatal: write error: No space left on device & fatal: index-pack failed

I am running Redhat 8.4 on a D1v2 Azure VM and I am getting the following error message as a result of a "git clone"command:

162071-image.png

even though the disk is not full:

161960-image.png


and free inodes are still available:

162025-image.png

I have rebooted the VM once but the error persists. Would appreciate your assistance and thanks in advance.


azure-virtual-machinesazure-redhat-openshift
image.png (80.7 KiB)
image.png (85.9 KiB)
image.png (13.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

kobulloc-MSFT avatar image
0 Votes"
kobulloc-MSFT answered

Hello, @SaraH-5653!

The "write error: No space left on device" that you are getting can be due to a lot of different causes. Most of these are related to the OS/Linux or Git but you can check the drive for errors as well. This is the troubleshooting list that I would run through (and it sounds like you've already done some of this).


Linux/OS

  • Confirm that there is actually space available.
    Run du and df to confirm that you have available space on your OS.

  • Check to see if space is in use by a process.
    Check open files to see if a deleted file has been reserved by a process with lsof / | grep deleted.

  • Check inodes.
    See if you hit the max allocation of inodes with df -i /.


Git

  • Run git gc to remove unreachable objects.
    Running git gc will perform a number of housekeeping tasks within your current repository, including compressing file revisions and removing unreachable objects.

  • Check the size of your Git repository to see if it's larger than 1GB.
    There's no file size or file number limit for Git, but if your repository is above 1GB or has more than 100MB per file, there are some tips that can be found in this thread (and some have suggested adding large files to .gitignore).


VM Disk

  • Check for bad blocks (fsck).
    You can use fsck to check for bad filesystem blocks.


Additional resources:

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.