-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p7zip error 2 when compressing pvm file #412
Comments
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. |
I'm wondering how you can let macOS know that you need X space ahead of time? And how much would X be in this instance? What proportion of 20GB? |
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. |
@aonez have you turned it off? Or do you use a macOS version from before it was introduced. I use High Sierra and I'd like to turn it off. |
@gingerbeardman I understand this purgeable thing appears only if you enable "Optimize Mac Storage" in iCloud settings, which I don't use. I like my files to be local if no sync is needed. |
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. |
I get this error pls fix |
Got the same error with any file! |
@Nikita11790 same error with PVM files? |
Compression, any type of file. |
@sunford please close Keka, remove it’s preferences and try again: https://github.com/aonez/Keka/wiki/Uninstall-Keka#2-delete-the-preferences |
rm: /Users/user/Applications/Keka.app: No such file or directory |
Sorry @sunford that code was wrong (fixed already). Only remove the preferences file: rm ~/Library/Containers/com.aone.keka What macOS version are you running? |
I use 10.15.1 (19B88) |
Remove the entire folder. If it fails again please enable the verbose mode and let me know what says the console: https://github.com/aonez/Keka/wiki/Console-verbose |
@sunford does that help? You can also manually remove all the items in the list at Keka - Preferences - File Access. I’m pretty sure this is causing the issue for you. |
No, there aren't any items in this list. |
What is "code 2" means? |
@sunford this is the generic error, can mean anything. Can you enable the verbose mode? defaults write com.aone.keka DevLog true;
defaults write com.aone.keka DevLogReader true; Then open the Console.app, filter by Keka in the search field and try to compress some file. I can also make a custom build for you if you are willing to test. |
@sunford please check #494 (comment) and let's follow your issue in that ticket #494 |
I'm using Keka 1.1.25 (3432) on macOS Catalina (10.15.3) and I just ran into this error. I've been using Keka to migrate my entire The configuration for archive is slowest, with Solid and Exclude resource forks checked, everything else left as-is. Keka was launched from Ctrl+Click > Services > Send to Keka. Then I moved all completed archives, left Desktop clean, put the source app/folder on Desktop, turned on logging in Keka Help menu and ran the same compression again, the log is attached below but it doesn't really say much from what I can tell.
Also, I see 7-Zip on Windows has printed their Edit: Also to add, Keka I used was from DMG downloaded from home page. I cannot try the MAS version, not a fan of Apple IDs. |
@VaslD checking that one, I'll be back. |
@VaslD this has to do with the sandbox protection of macOS. Not sure why yet but the compression of the I need to investigate further, but those are the errors:
|
Thank you for the quick workaround. It did the trick. But it somewhat doesn't make sense. I can zip a folder from/to anywhere from places where I didn't put in File Access panel. In fact I only have Before I added I admit I don't know how sandboxing works on macOS under-the-hood but what I've seen so far and what I just described ain't logical. |
Yes, I still have the offending PVM files, but I'm not able to reproduce the behaviour at the moment. |
Thanks for the followup @zeff013. Glad to hear that :) |
Should I close this issue? |
Sure let's close it. Reopen if happens again in the future. Thanks! |
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.
The text was updated successfully, but these errors were encountered: