aonez / Keka

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

[BUG] Creation of *.zip failed, Error Domain=NSPOSIXErrorDomain Code=1 #1520

Open JDW1 opened 1 month ago

JDW1 commented 1 month ago

Configuration

Describe the bug

I did a fresh/clean install of Keka, but it refuses to ZIP two files. Keka fails every time I drag and drop the two files atop the Keka icon in the Dock. It fails with the same Error Domain=NSPOSIXErrorDomain Code=1 , even after I Restart my M1 Max MacBook Pro. Attach a log file reproducing the issue: Keka_2024-09-29-184338385.log

To Reproduce

Steps to reproduce the behavior:

  1. Drag two files atop Keka icon in Dock
  2. Keka opens and shows an error message saying: "Creation of 'archive.zip" filed, There was some error accessing the binary '7zz', Error Domain=NSPOSIXErrorDomain Code=1

Expected behavior

Quite obviously, no error, then it Zips the files assigned.

Screenshots

ErrorSS

Additional context

I've used Keka on my 2015 5k iMac (Intel) at the office running macOS Monterey without problem. So I am familiar with the app. It just doesn't compress ZIP files on my M1 Mac for some reason.

aonez commented 1 month ago

Can you try removing the application, restarting macOS and then installing Keka again?

On Sun, Sep 29, 2024 at 11:54 James Wages @.***> wrote:

Assigned #1520 https://github.com/aonez/Keka/issues/1520 to @aonez https://github.com/aonez.

— Reply to this email directly, view it on GitHub https://github.com/aonez/Keka/issues/1520#event-14444839296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADVHI57BBTTNRHZNTSASOTZY7E4LAVCNFSM6AAAAABPBQFBD6VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGQ2DIOBTHEZDSNQ . You are receiving this because you were assigned.Message ID: @.***>

JDW1 commented 1 month ago

I did exactly as you directed but the problem remains.

Specifically, I used App Cleaner to get rid of the Keka app and every preference file associated with it. I then emptied the trash and Restarted my M1 Max MacBook Pro. I went to the website (not the Mac App Store), and downloaded it again. I installed it, then opened it, set preferences to ensure ZIP is default, speed is set to SLOW (I want better compression), make sure verify is enabled, don't include DS_Store files, etc. I then dragged a file at random onto the Keka icon in the dock (because I put Keka in the dock). It launched but produced the same exact error I previously reported.

aonez commented 1 month ago

Can you try with 1.4.3 version? This is usually the macOS gatekeeper randomly blocking the binary, it’ll probably not block 1.4.3 version:

https://github.com/aonez/Keka/releases/tag/v1.4.3

On Sun, Sep 29, 2024 at 16:09 James Wages @.***> wrote:

I did exactly as you directed but the problem remains.

Specifically, I used App Cleaner to get rid of the Keka app and every preference file associated with it. I then emptied the trash and Restarted my M1 Max MacBook Pro. I went to the website (not the Mac App Store), and downloaded it again. I installed it, then opened it, set preferences to ensure ZIP is default, speed is set to SLOW (I want better compression), make sure verify is enabled, don't include DS_Store files, etc. I then dragged a file at random onto the Keka icon in the dock (because I put Keka in the dock). It launched but produced the same exact error I previously reported.

— Reply to this email directly, view it on GitHub https://github.com/aonez/Keka/issues/1520#issuecomment-2381372099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADVHI3M72XWIKHFURIDTBLZZAC2BAVCNFSM6AAAAABPBQFBD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGM3TEMBZHE . You are receiving this because you were mentioned.Message ID: @.***>

JDW1 commented 1 month ago

Sorry for my delayed reply.

I used App Cleaner once again to remove all files from the previous Keka install, then I emptied the Trash, restarted, then downloaded and installed version 1.4.3 and tested with a random WAV file on my hard drive. It results in the same exact error message I mentioned earlier.

aonez commented 1 month ago

@JDW1 thanks for the feedback. I'm supposing here you have Keka on the Applications folder.

As stupid as it sounds, try to right-click and "Open" Keka on the Applications folder. This sometimes fixes quarantine and similar issues. If this does not fix the issue try the following steps.

/Applications/Keka.app/Contents/MacOS/Keka --cli 7z

Checking the Console.app, filtered by Keka, might also bring some more information about why macOS is blocking the binary. Let me know if you want to investigate this further and need assistance with it.

JDW1 commented 1 month ago

Amazing. Right clicking on the v1.4.3 app (inside the Applications folder, where I always keep the app) worked! And it doesn't just work once either. I restarted and dragged a file atop the app, and it compressed the file as expected. No more need to right click and choose Open! Incredible! Problem solved. Thank you!