aonez / Keka

The macOS & iOS file archiver
https://www.keka.io
4.71k stars 236 forks source link

[BUG] Some folders refuse to compress, Error code 2 #736

Open Piipperi opened 3 years ago

Piipperi commented 3 years ago

Configuration

Describe the bug

I can't compress some folders on an external drive. I keep getting error 2 Attach a log file reproducing the issue: Keka.log

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Screenshots

Screen Shot 2020-12-18 at 8 58 13

Additional context

macOS's own compression system was failing too, which is why I was suggested to try Keka, but this is failing too.

aonez commented 3 years ago

Maybe some permission issue or if it's an HDD some corruption? Try copy/paste the library first.

aonez commented 3 years ago

Also check you have sufficient free space for the compression or try to compress it to another disk. You can use the contextual menu item for this:

Screenshot 2020-12-18 at 10 40 26

Piipperi commented 3 years ago

I’ve given all the permissions possible for Keka I think (allowed permissions from Keka settings and also allowed full disk use from System Preferences just to be sure.) Duplicating the folder works fine. The folder I'm trying to compress is about 13 GB with 0.7TB free on the disk.

aonez commented 3 years ago

I don't mean Keka permissions, meant file permissions per se, since this also fails with bundled compressor.

Can you try TAR or DMG to see if at least there's a more concise error?

Piipperi commented 3 years ago

I tried with TAR, it managed to compress quite a bit until it failed randomly- Keka 2.log

Checked file permissions and they should be ok

aonez commented 3 years ago

It's an AFPS formatted disk? Maybe you can try copying it to an HFS+/exFAT first. Also you can try copy in the same disk but using ditto in the Terminal:

ditto -V "/Volumes/Stuff 2 TB/Photos Library Archive/Photos Library copy 2.photoslibrary" "/Volumes/Stuff 2 TB/Photos Library Archive/Photos Library ditto copy.photoslibrary"

Maybe we can see if there's an error in some file.

Piipperi commented 3 years ago

The disk is in HFS+ format. I ran the command you sent and it copied without any errors.

aonez commented 3 years ago

Does ISO/DMG also fail?

Piipperi commented 3 years ago

Yup Keka 3.log

aonez commented 3 years ago

I suppose other folders in this disk can be compressed without issue. Not sure what is happening there. Maybe try in the Terminal to see if there's some tip there:

zip -0 -r -v "/Volumes/Stuff 2 TB/Photos Library Archive/Photos Library ZIP test.zip" "/Volumes/Stuff 2 TB/Photos Library Archive/Photos Library copy 2.photoslibrary"
Piipperi commented 3 years ago

Well this is all it says Screen Shot 2020-12-18 at 16 37 56

aonez commented 3 years ago

Did you tried to compress it to another disk? https://github.com/aonez/Keka/issues/736#issuecomment-747982059

Piipperi commented 3 years ago

Yup, tried to zip in the downloads folder. Doesn't work.