I solved similar problem after hours of bug-hunting today. It was caused by too little space on one partition of the disk. I had enough space in the partition where tar.gz
archive was created but after removing some log files from another partition everything works again.
I think it's possible that object PharData
stores some temporary data somewhere and that's why this is happening even if there is enough space on the disk where you create tar.gz
archive.