gzip "No space left on device"

Solution 1:

What is the question you are asking exactly?

“No space left on device”

Would indicate that you've run out of disk space. Change the current working directory to another directory mounted on a larger partition and try again ...

Also, bear in mind that du won't always match df. It is possible for files to be deleted but the handles still remain in use by an application, so df can show less disk space available than du reports.

Solution 2:

"No space left on device"

This error can also indicate permission issues. Check that your are executing the command as the appropriate user. Obviously /root/ requires root permissions.