Skip to content
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

There was some error accessing the binary #208

Open
Eakster opened this Issue Jun 7, 2018 · 53 comments

Comments

Projects
None yet
7 participants
@Eakster
Copy link

Eakster commented Jun 7, 2018

WORKAROUND (edited by @aonez)

Until the proper reason/fix is found, remove the quarantine from the Keka.app with this command:

xattr -d -r com.apple.quarantine /Applications/Keka.app

The quarantine was found to be the possible reason by @GregOriol on #208 (comment), so removing it should solve the issue.


I used the old version Keka 1.08 and it works fine.
I got the new version Keka 1.10 and it gives me errors every time I extract any archives.
There was some error accessing the binary "keka7z" for ZIP
There was some error accessing the binary "kekaunrar" for RAR

I installed Keka into the Applications folder and gave it permissions to my hard drive
iMac Retina 5k, 27-inch 2017
macOS High Sierra 10.13.5
Fusion Drive (Mac OS Extended Journaled not APFS)
I tried to uninstall and reinstalled and remove all files with App Cleaner
I re downloaed
I set all the settings to normal
I still get the errors.

Any ideas?
Eakster

@issuelabeler issuelabeler bot added rar unrar zip labels Jun 7, 2018

@aonez aonez added bug core and removed rar unrar zip labels Jun 7, 2018

@aonez aonez added this to the 1.1.1 milestone Jun 7, 2018

@aonez aonez self-assigned this Jun 7, 2018

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 7, 2018

Could you test with this version and send the Keka-log.log that will appear in your Desktop?

I think you're not alone, but I can't reproduce this issue anywhere so it's yet not clear why this happens.

Instead of using 1.0.8, use the latest (prior to 1.1.0) that is 1.0.16.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 7, 2018

Also, try those two. No log file needed here, just to see if they solve the issue:

@aonez aonez added more info needed and removed bug core labels Jun 12, 2018

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 12, 2018

@Eakster did it solved?

Here another version (from #213) that might have this fixed: Keka-1.1.0r2729.zip

@aonez aonez modified the milestones: 1.1.1, 1.1.2 Jun 13, 2018

@KeLeBoR

This comment has been minimized.

Copy link

KeLeBoR commented Jun 17, 2018

I have the same error. The last working version is v1.1.0-rc.1...Unfortunately v1.1.1 didn't fix the problem.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 17, 2018

@KeLeBoR can you close Keka, remove the the preferences and try again?

rm -R ~/Library/Containers/com.aone.keka

@KeLeBoR

This comment has been minimized.

Copy link

KeLeBoR commented Jun 17, 2018

Didn't fix the problem...

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 19, 2018

@KeLeBoR did you've tried the versions on this ticket?

Those versions create the file Keka-log.log in your desktop, please attach it here. Also, just in case, uninstall and reinstall Keka, downloading it again.

@KeLeBoR

This comment has been minimized.

Copy link

KeLeBoR commented Jun 19, 2018

Keka-log2718.log
Keka-log2719.log

Hi aonez,
r2718 is working, r2719 gave me the same error...
i hope the logs will help you to remedy the "bug".

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 19, 2018

@KeLeBoR thanks for the logs, are you sure r2718 works and r2719 don't? It makes not much sense, the contrary will make though. Also, did you have any trouble when giving Keka access to the Mac disk? Any special configuration in your machine? I'll build another version once you confirm is r2718 and not r2719 that works for you.

Deleting the disk access and granting it again may help, but 1.1.1 version already has this fixed. Anyway, if you can try:

  1. Close Keka
  2. In the Terminal.app: defaults remove com.aone.keka Bookmarks

Thanks a lot for all your feedback!

@KeLeBoR

This comment has been minimized.

Copy link

KeLeBoR commented Jun 19, 2018

@aonez yes i confirm r2718 work and r2719 didn't. Check it again. Try it in r2719 with the Terminal.app but nothing happen. i didn't have any special configuration in my machine (10.13.5 SSD APFS). and i also didn't have any trouble to give access to the disk. i try 1.1.1 again and install KekaDefaultApp v1.0.0-r.6 but it gave me again the error.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 20, 2018

@KeLeBoR this one has the same attribute as r2718: Keka-1.1.1r2742

Works too? No need to check the Terminal. Thanks again for the feedback :)

@KeLeBoR

This comment has been minimized.

Copy link

KeLeBoR commented Jun 20, 2018

@aonez Works without any problem...one mistake i must install the KekaDefaultApp v1.0.0-r.6 to set Keka as default compressor/uncompressor. I like to give feedback so that errors can also be corrected :-)

@robinalpha

This comment has been minimized.

Copy link

robinalpha commented Jun 20, 2018

I have a similar problem of my macbook pro. Keka was working perfectly fine until 1.1. Now everytime I try to decompress a file I have "L'extraction de thefile a échoué. Code erreur 2 en utilisant "p7zip". Erreur fatale." (it's in french but I guess the translation is pretty obvious) Version 1.1.1 didn't solve the issue.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Jun 20, 2018

@robinalpha did you tried the revision 2742 from two comments above?

@robinalpha

This comment has been minimized.

Copy link

robinalpha commented Jun 21, 2018

Yes and it didn't help. But actually I realized that I only saw it happens with some kind of zips. For example no problems to unzip the keka2747 zip but doesn't work with another one that the native mac app unzip without issues..

@gingerbeardman

This comment has been minimized.

Copy link
Contributor

gingerbeardman commented Aug 2, 2018

I also got this error after downloading the latest version.

screen shot 2018-08-02 at 17 14 52

I reverted to an older version I had in a time machine backup and all is well again.

Strangely both report themselves as 1.1.2 (2787) the only difference is that the one from the current DMG is hfs+ compressed (20MB) vs my backup (28MB)?

@aonez aonez reopened this Aug 3, 2018

@gingerbeardman

This comment has been minimized.

Copy link
Contributor

gingerbeardman commented Aug 3, 2018

I wonder if the app (or just kekaunrar) is suffering from App Translocation?

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Aug 3, 2018

Strangely both report themselves as 1.1.2 (2787) the only difference is that the one from the current DMG is hfs+ compressed (20MB) vs my backup (28MB)?

@gingerbeardman Maybe the older version from the backup was silently updated using Sparkle? That way uses the ZIP package so it's not HFS+ compressed. You can reproduce it with the DMG package? And with the ZIP one: Keka-1.1.2.zip?

@crax are you using the web version? If you're, please try with the ZIP packed version: Keka-1.1.2.zip. Let me know if you're using the MAS version.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Aug 3, 2018

I wonder if the app (or just kekaunrar) is suffering from App Translocation?

@gingerbeardman this was the first thing I've checked when I saw you had this issue too... The problem is I'm unable to reproduce it :(

@aonez aonez modified the milestones: 1.1.2, 1.1.3 Aug 3, 2018

@aonez aonez modified the milestones: 1.1.3, 1.1.4 Aug 10, 2018

@aonez aonez modified the milestones: 1.1.4, 1.1.5 Sep 11, 2018

@aonez aonez modified the milestones: 1.1.5, Look at Sep 21, 2018

@GregOriol

This comment has been minimized.

Copy link

GregOriol commented Nov 25, 2018

Having this issue with a freshly downloaded 1.1.5 web vesion on MacOS Mojave, APFS
Any update on the issue? how could I help investigate?

@GregOriol

This comment has been minimized.

Copy link

GregOriol commented Nov 25, 2018

I actually have something interesting: message in the console
exec of /Applications/Keka.app/Contents/Resources/keka7z denied since it was quarantined by Safari and not approved by Gatekeeper, qtn-flags was 0x00000083

edit: indeed, seems to be the problem: I downloaded it using Safari. Now I tried to download it again using the command line (wget/unzip) and it worked!

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Nov 26, 2018

Wow thanks @GregOriol! So you've downloaded the ZIP package instead of the DMG, and extracted it with Keka? Or Safari extracted it automatically?

@GregOriol

This comment has been minimized.

Copy link

GregOriol commented Nov 26, 2018

@aonez I tried both dmg from the website and zip from github releases, both using Safari. No automatic extract, I opened them myself. Both failed.

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Nov 26, 2018

@GregOriol can you print this from the DMG/ZIP:

xattr -l ~/Downloads/Keka-1.1.5.dmg > ~/Desktop/dmg-xattr.txt

And this for the app itself:

xattr -l -r /Applications/Keka.app > ~/Desktop/app-xattr.txt

I'm assuming you have the DMG/ZIP package in your Downloads folder, change it accordingly. ZIP the resulting dmg-xattr.txt and app-xattr.txt and attach the ZIP here.

By the way version 1.1.6 was just released, you can check if this new download still fails for you. But will be interesting if you can keep 1.1.5 version, at least for test purposed. Thanks!!!

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Nov 26, 2018

@GregOriol Also, not sure it will keep the quarantine, but if you can compress the Keka.app is failing in a TAR.GZ, then compress that tarball in ZIP and attach it here.

@GregOriol

This comment has been minimized.

Copy link

GregOriol commented Nov 26, 2018

@aonez As I had a working version of Keka after the manual download yesterday, I downloaded the dmg from the website again using Safari to perform the tests. So it's 1.1.6 and it's failing the same way. Here are the results of xattr:
keka-dmg-xattr.txt
keka-app-xattr.txt

Making a tgz of the non-working Keka.app (cvzf) and extracting it using tar (xvzf) seems to preserve the quarantine. But extracting it using Keka doesn't seem to preserve the quarantine. Here is the tgz/zip:
Keka.tgz.zip

I also tried downloading it from the website using Firefox, and it works fine. I'm attaching xattr results from it too if that might help:
keka-dmg-firefox-xattr.txt
keka-app-firefox-xattr.txt

I also tried this command to remove the quarantine and it works:

find Keka.app -name '*' -print0 | xargs -0 xattr -d com.apple.quarantine
@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Nov 26, 2018

Thanks a lot @GregOriol! I'll check the files.

find Keka.app -name '*' -print0 | xargs -0 xattr -d com.apple.quarantine

This should work too, then:

xattr -d -r com.apple.quarantine /Applications/Keka.app

@aonez aonez added the workaround label Nov 26, 2018

@GregOriol

This comment has been minimized.

Copy link

GregOriol commented Nov 26, 2018

I confirm your command works too.

@aonez aonez added package and removed core labels Nov 26, 2018

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Nov 26, 2018

@GregOriol the extracted Keka.tgz.zip app retains the quarantine but does not fail here... 🤯

@GregOriol

This comment has been minimized.

Copy link

GregOriol commented Nov 26, 2018

@aonez Sorry can't help here, I don't know how this behavior is working :-/ Maybe there are some ways to disable it and you have it set on your macOS? or maybe I/we do have something set on our macs?..

@aonez

This comment has been minimized.

Copy link
Owner

aonez commented Nov 26, 2018

@GregOriol yeah really don't know either. Restarting the Mac does not cause any difference, does it?

At least now with your tests and feedback we have a cause and a workaround 🎉

@aonez aonez changed the title There was some error accessing the binary "keka7z" There was some error accessing the binary Mar 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.