Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
p7zip error 2 when compressing pvm file #412
In the event, when Keka is compressing pvm file (Parallels Desktop virtual machine ~20G size) and there is not enough free space on macOS Mojave encrypted apfs volume, but more than enough purgeable space - purgeable space won't be freed-up automatically and Keka will fail with fatal error 2 (no free space available).
This will not happen, when compressing non-pvm files. I have tried this with centos-everything.iso, which is over 10G. Keka compressed it successfully and macOS freed up purgeable space automatically.
Not sure whose fault it is:
Parallel's, for creating pvm in some erroneous form of collection of folders and files, which leads to Keka not being able to compress it correctly.
Keka's, for not being able send correct command to macOS to free up purgeable space, when compressing large amount of files.
macOS's, for not being able to timely understand that purgeable space need to be cleaned up.
I did another test - coping pvm files from another volume to macOS Mojave encrypted apfs volume, which has not enough free space, but has enough purgeable space - everything went smoothly.
From this I tend to draw conclusion, that Keka is not handling compression of large pvm files well enough and might fail on other large collections of files and folders, when it needs to free-up purgeable space on ssd in order to store resulting archive successfully.
For example just tell macOS to free up the same amount of purgeable space, which is occupied by original files, you are going to compress.
This is what was happening, when macOS it self was coping files: it was always freeing up space with some margin.
Thanks for the feedback @zeff013! This seems to me like an OS thing. The cause might be similar to #362, where the reason seems to be that macOS denies access to the source file during an operation and that operation fails, rather than a space issue. Would be interesting to replicate the issue and see if always fails at the same time.
I don't use the purgeable feature at the moment.
Yes, I confirm issue replication as "always" and "each time at the same time".
When I was trying to compress the same pvm file, operation was failing at the same moment in time each and every attempt.
What is probably also worth mentioning - when Keka was trying to write another chunk and there was not enough free space, the already created archive file was disappearing and only after a minute or so of keep trying, Keka was throwing the error and failing.
I have "Optimize Mac Storage" enabled, but the thing is that "purgeable" appears for any file deleted from home folder.