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

Can't launch Kitematic app after downloading (on Mac) #1637

Closed
mixxmac opened this Issue Apr 16, 2016 · 30 comments

Comments

Projects
None yet
@mixxmac

mixxmac commented Apr 16, 2016

Hi...

I've been having this problem trying to download the last two releases (v0.10.1 and v0.10.2).

Has anyone had the same problem? Or would anyone know what the problem might be?

I've tried had the same problem on two different computers.

Expected behavior

Double-click Kitematic (Beta).app launches Kitematic application

Actual behavior

Error message: “Kitematic (Beta).app” is damaged and can’t be opened. You should move it to the Trash.

Information about the Issue

kitematic-app-is-damaged

Steps to reproduce the behavior

  1. Download:
    https://github.com/docker/kitematic/releases/download/v0.10.2/Kitematic-0.10.2-Mac.zip
  2. Unzip
  3. Double-click Kitematic (Beta).app
@thaJeztah

This comment has been minimized.

Show comment
Hide comment
@thaJeztah

thaJeztah Apr 16, 2016

Member

If you put Kitematic (Beta) in your applications folder, can you try opening a terminal, and running;

xattr -rc /Applications/Kitematic\ \(Beta\).app

That solved it for me

ping @FrenchBen ^^ same issue I ran into on one computer

Member

thaJeztah commented Apr 16, 2016

If you put Kitematic (Beta) in your applications folder, can you try opening a terminal, and running;

xattr -rc /Applications/Kitematic\ \(Beta\).app

That solved it for me

ping @FrenchBen ^^ same issue I ran into on one computer

@mixxmac

This comment has been minimized.

Show comment
Hide comment
@mixxmac

mixxmac Apr 17, 2016

That did the trick! Thanks a lot!

mixxmac commented Apr 17, 2016

That did the trick! Thanks a lot!

@FrenchBen FrenchBen closed this Apr 18, 2016

@FrenchBen

This comment has been minimized.

Show comment
Hide comment
@FrenchBen

FrenchBen Apr 18, 2016

Contributor

For clarity:

-r: act recursively
-c: deletes (clears) all xattrs

Seems like some invalid xattrs were added along the way.

Contributor

FrenchBen commented Apr 18, 2016

For clarity:

-r: act recursively
-c: deletes (clears) all xattrs

Seems like some invalid xattrs were added along the way.

@RobertJansson

This comment has been minimized.

Show comment
Hide comment
@RobertJansson

RobertJansson May 21, 2016

That should be perfectly fine in this case but you might want to limit the command to target nothing but the quarantine setting running xattr:
xattr -rc com.apple.quarantine /Applications/Kitematic\ (Beta).app

RobertJansson commented May 21, 2016

That should be perfectly fine in this case but you might want to limit the command to target nothing but the quarantine setting running xattr:
xattr -rc com.apple.quarantine /Applications/Kitematic\ (Beta).app

@andrewcollette

This comment has been minimized.

Show comment
Hide comment
@andrewcollette

andrewcollette May 25, 2016

Any idea why this is happening? I'm not sure the issue should be closed as it is still doing this out of the box on my (fully up to date) Mac. I've never seen this with any other app, including ones downloaded from the Internet.

Typically Mac apps are distributed on .dmg files rather than in .zip files; I wonder if this is why there are problems.

andrewcollette commented May 25, 2016

Any idea why this is happening? I'm not sure the issue should be closed as it is still doing this out of the box on my (fully up to date) Mac. I've never seen this with any other app, including ones downloaded from the Internet.

Typically Mac apps are distributed on .dmg files rather than in .zip files; I wonder if this is why there are problems.

@RobertJansson

This comment has been minimized.

Show comment
Hide comment
@RobertJansson

RobertJansson May 25, 2016

The application triggers the security system in OS X that is there to protect your computer from trojans. It happens because the application is not wrapped with a certificate that can testify the institution of the author.

RobertJansson commented May 25, 2016

The application triggers the security system in OS X that is there to protect your computer from trojans. It happens because the application is not wrapped with a certificate that can testify the institution of the author.

@andrewcollette

This comment has been minimized.

Show comment
Hide comment
@andrewcollette

andrewcollette May 26, 2016

I think there may be something more subtle going on... I have installed unsigned apps before on OS X, and the security warning is quite different; here's an example:

exemption_dialog

This article on the Apple website suggests that the Kitematic app is signed, but is somehow later being modified, which invalidates the signature and causes the "app is damaged" dialog. That's why I suspected it had something to do with the zip file distribution:

https://support.apple.com/en-us/HT202491

andrewcollette commented May 26, 2016

I think there may be something more subtle going on... I have installed unsigned apps before on OS X, and the security warning is quite different; here's an example:

exemption_dialog

This article on the Apple website suggests that the Kitematic app is signed, but is somehow later being modified, which invalidates the signature and causes the "app is damaged" dialog. That's why I suspected it had something to do with the zip file distribution:

https://support.apple.com/en-us/HT202491

@FrenchBen

This comment has been minimized.

Show comment
Hide comment
@FrenchBen

FrenchBen May 27, 2016

Contributor

unzipping with Keka I've never had this issue - Can you download the latest release and see if the issue is still happening?
https://github.com/docker/kitematic/releases/tag/v0.10.4

Contributor

FrenchBen commented May 27, 2016

unzipping with Keka I've never had this issue - Can you download the latest release and see if the issue is still happening?
https://github.com/docker/kitematic/releases/tag/v0.10.4

@andrewcollette

This comment has been minimized.

Show comment
Hide comment
@andrewcollette

andrewcollette May 27, 2016

The release you linked seems to be OK. Thanks!

andrewcollette commented May 27, 2016

The release you linked seems to be OK. Thanks!

@RobertJansson

This comment has been minimized.

Show comment
Hide comment
@RobertJansson

RobertJansson May 27, 2016

You can not compare how an installer handle such even to what happens if you download an executable binary and try to execute it.
The quarantine flag is only set by quarantine-aware programs so I would not recommend anyone to use programs like that. It's better to get the trap and lift it with the command, because then you've got the heads-up and a chanse to think about it.

RobertJansson commented May 27, 2016

You can not compare how an installer handle such even to what happens if you download an executable binary and try to execute it.
The quarantine flag is only set by quarantine-aware programs so I would not recommend anyone to use programs like that. It's better to get the trap and lift it with the command, because then you've got the heads-up and a chanse to think about it.

@ryber

This comment has been minimized.

Show comment
Hide comment
@ryber

ryber May 27, 2016

I'm still getting an error. It's reported as:

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: /Users/USER/Downloads/Kitematic (Beta).app/Contents/MacOS/Electron
Reason: image not found

ryber commented May 27, 2016

I'm still getting an error. It's reported as:

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: /Users/USER/Downloads/Kitematic (Beta).app/Contents/MacOS/Electron
Reason: image not found

@jasonayre

This comment has been minimized.

Show comment
Hide comment
@jasonayre

jasonayre May 31, 2016

The linked release, along with 10.0.5 both throw that same "Damaged and cant be opened error for me". I don't think this was resolved. The workaround posted above
xattr -rc /Applications/Kitematic\ \(Beta\).app
Did however

jasonayre commented May 31, 2016

The linked release, along with 10.0.5 both throw that same "Damaged and cant be opened error for me". I don't think this was resolved. The workaround posted above
xattr -rc /Applications/Kitematic\ \(Beta\).app
Did however

@seanjensengrey

This comment has been minimized.

Show comment
Hide comment
@seanjensengrey

seanjensengrey Jun 21, 2016

The Docker for Mac Beta still exhibits the quarantine problem. If you don't have Kitematic installed, it propts with a link to download

45562719 Kitematic-Mac.zip
# shasum -a 256
161d702e25cfda4337c5f9b1315ad1487b287cd581e8951caee7ff529595370c  Kitematic-Mac.zip

Is there a reason this isn't being distributed in a dmg?

seanjensengrey commented Jun 21, 2016

The Docker for Mac Beta still exhibits the quarantine problem. If you don't have Kitematic installed, it propts with a link to download

45562719 Kitematic-Mac.zip
# shasum -a 256
161d702e25cfda4337c5f9b1315ad1487b287cd581e8951caee7ff529595370c  Kitematic-Mac.zip

Is there a reason this isn't being distributed in a dmg?

@DJphilomath

This comment has been minimized.

Show comment
Hide comment
@DJphilomath

DJphilomath Jun 22, 2016

I agree, this issue should not be closed as I ran on the same problem today.

DJphilomath commented Jun 22, 2016

I agree, this issue should not be closed as I ran on the same problem today.

@Exilz

This comment has been minimized.

Show comment
Hide comment
@Exilz

Exilz Jun 29, 2016

@thaJeztah 's trick did it for me, thanks a lot.

Exilz commented Jun 29, 2016

@thaJeztah 's trick did it for me, thanks a lot.

@maxtheman

This comment has been minimized.

Show comment
Hide comment
@maxtheman

maxtheman Jun 30, 2016

I also had this issue, and @thaJeztah 's xattr deletion solved it for me.

maxtheman commented Jun 30, 2016

I also had this issue, and @thaJeztah 's xattr deletion solved it for me.

@VMTrooper

This comment has been minimized.

Show comment
Hide comment
@VMTrooper

VMTrooper Jun 30, 2016

+1 still having this issue with the version of Kitematic that the latest Docker for Mac downloads. The xattr workaround was needed to move forward.

VMTrooper commented Jun 30, 2016

+1 still having this issue with the version of Kitematic that the latest Docker for Mac downloads. The xattr workaround was needed to move forward.

@jeffski

This comment has been minimized.

Show comment
Hide comment
@jeffski

jeffski Jun 30, 2016

Having this issue too

jeffski commented Jun 30, 2016

Having this issue too

@FrenchBen

This comment has been minimized.

Show comment
Hide comment
@FrenchBen

FrenchBen Jul 1, 2016

Contributor

For those having the issue, can you provide a few details:

  • OSX version
  • Disk encryption
  • AntiVirus installed
  • Proxy/VPN
Contributor

FrenchBen commented Jul 1, 2016

For those having the issue, can you provide a few details:

  • OSX version
  • Disk encryption
  • AntiVirus installed
  • Proxy/VPN
@maxtheman

This comment has been minimized.

Show comment
Hide comment
@maxtheman

maxtheman Jul 1, 2016

OSX 10.10.5
No
No
No

On Thu, Jun 30, 2016 at 6:06 PM, French Ben notifications@github.com
wrote:

For those having the issue, can you provide a few details:

  • OSX version
  • Disk encryption
  • AntiVirus installed
  • Proxy/VPN


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1637 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACEnUdcGknOaZAr07qr-8SmwFgkemtVgks5qRGgLgaJpZM4IJBhl
.

maxtheman commented Jul 1, 2016

OSX 10.10.5
No
No
No

On Thu, Jun 30, 2016 at 6:06 PM, French Ben notifications@github.com
wrote:

For those having the issue, can you provide a few details:

  • OSX version
  • Disk encryption
  • AntiVirus installed
  • Proxy/VPN


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1637 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACEnUdcGknOaZAr07qr-8SmwFgkemtVgks5qRGgLgaJpZM4IJBhl
.

@VMTrooper

This comment has been minimized.

Show comment
Hide comment
@VMTrooper

VMTrooper Jul 1, 2016

  • OSX version - 10.11.3
  • Disk encryption - Yes, FileVault
  • AntiVirus installed - McAfee Endpoint Protection 2.3.0 (1791)
  • Proxy/VPN - GlobalProtect 2.3.3-5 (it was not enabled at the time)

NOTE: I had to run the xattr command twice:

  1. When initially trying to launch Kitematic from the Applications folder
  2. When trying to use the "Open Kitematic" menu item from Docker for Mac.

VMTrooper commented Jul 1, 2016

  • OSX version - 10.11.3
  • Disk encryption - Yes, FileVault
  • AntiVirus installed - McAfee Endpoint Protection 2.3.0 (1791)
  • Proxy/VPN - GlobalProtect 2.3.3-5 (it was not enabled at the time)

NOTE: I had to run the xattr command twice:

  1. When initially trying to launch Kitematic from the Applications folder
  2. When trying to use the "Open Kitematic" menu item from Docker for Mac.
@greenkiwi

This comment has been minimized.

Show comment
Hide comment
@greenkiwi

greenkiwi Jul 1, 2016

We are still having this issue. The workaround above and the one presented here:
https://forums.docker.com/t/kitematic-mac-download-corrupt/9256/4
Allow it to work

greenkiwi commented Jul 1, 2016

We are still having this issue. The workaround above and the one presented here:
https://forums.docker.com/t/kitematic-mac-download-corrupt/9256/4
Allow it to work

@DJphilomath

This comment has been minimized.

Show comment
Hide comment
@DJphilomath

DJphilomath Jul 1, 2016

OSX version 10:11:3
No
No
No

DJphilomath commented Jul 1, 2016

OSX version 10:11:3
No
No
No

@b01

This comment has been minimized.

Show comment
Hide comment
@b01

b01 Jul 26, 2016

I just had this happen to me, the attribute fix above solved the problem. But the issue seems to still be occurring.

b01 commented Jul 26, 2016

I just had this happen to me, the attribute fix above solved the problem. But the issue seems to still be occurring.

@FrenchBen

This comment has been minimized.

Show comment
Hide comment
@FrenchBen

FrenchBen Jul 26, 2016

Contributor

To put things in perspective, this isn't just a Kitematic issue, as it's been seen in other apps:
http://apple.stackexchange.com/a/215372

The built-in Archiver utility is usually the culprit - I've never had this pop-up when using something like Keka

To never see this error, you can modify the privacy settings found here:

 System Preferences -> Security & Privacy, under General tab, next to "Allow apps downloaded from", "Anywhere" is chosen.
Contributor

FrenchBen commented Jul 26, 2016

To put things in perspective, this isn't just a Kitematic issue, as it's been seen in other apps:
http://apple.stackexchange.com/a/215372

The built-in Archiver utility is usually the culprit - I've never had this pop-up when using something like Keka

To never see this error, you can modify the privacy settings found here:

 System Preferences -> Security & Privacy, under General tab, next to "Allow apps downloaded from", "Anywhere" is chosen.
@thaJeztah

This comment has been minimized.

Show comment
Hide comment
@thaJeztah

thaJeztah Jul 26, 2016

Member

@FrenchBen I would not really recommend using that setting. Would it be possible to ship Kitematic as a .dmg? It's more "native", and would work around the issue with archiver

Member

thaJeztah commented Jul 26, 2016

@FrenchBen I would not really recommend using that setting. Would it be possible to ship Kitematic as a .dmg? It's more "native", and would work around the issue with archiver

@FrenchBen

This comment has been minimized.

Show comment
Hide comment
@FrenchBen

FrenchBen Jul 26, 2016

Contributor

@thaJeztah The reason it's not a DMG is due to the current Packaging with Docker Toolbox.
With the release of Docker for Mac/Windows there may be a need to create an actual installer though for all versions.

Contributor

FrenchBen commented Jul 26, 2016

@thaJeztah The reason it's not a DMG is due to the current Packaging with Docker Toolbox.
With the release of Docker for Mac/Windows there may be a need to create an actual installer though for all versions.

@seanjensengrey

This comment has been minimized.

Show comment
Hide comment
@seanjensengrey

seanjensengrey Jul 27, 2016

The app is signed

$ codesign -dv /Applications/Kitematic\ \(Beta\).app
Executable=/Applications/Kitematic (Beta).app/Contents/MacOS/Electron
Identifier=com.electron.kitematic_(beta)
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=233 flags=0x0(none) hashes=3+4 location=embedded
Signature size=8907
Timestamp=Jun 13, 2016, 23:40:33
Info.plist entries=20
TeamIdentifier=9BNSXJN65R
Sealed Resources version=2 rules=12 files=11
Internal requirements count=1 size=192

I would recommend putting in a .dmg and delivering it over https and see if the problem goes away. I am wagering it will.

seanjensengrey commented Jul 27, 2016

The app is signed

$ codesign -dv /Applications/Kitematic\ \(Beta\).app
Executable=/Applications/Kitematic (Beta).app/Contents/MacOS/Electron
Identifier=com.electron.kitematic_(beta)
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=233 flags=0x0(none) hashes=3+4 location=embedded
Signature size=8907
Timestamp=Jun 13, 2016, 23:40:33
Info.plist entries=20
TeamIdentifier=9BNSXJN65R
Sealed Resources version=2 rules=12 files=11
Internal requirements count=1 size=192

I would recommend putting in a .dmg and delivering it over https and see if the problem goes away. I am wagering it will.

@vitortd

This comment has been minimized.

Show comment
Hide comment
@vitortd

vitortd Nov 17, 2016

OSX version: 10.11.3
Disk encryption: Yes
AntiVirus installed: No
Proxy/VPN: No

vitortd commented Nov 17, 2016

OSX version: 10.11.3
Disk encryption: Yes
AntiVirus installed: No
Proxy/VPN: No

@crapthings

This comment has been minimized.

Show comment
Hide comment
@crapthings

crapthings commented Dec 13, 2016

it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment