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

MacOS installer broken #95

Closed
serge-rider opened this Issue Dec 7, 2015 · 26 comments

Comments

Projects
None yet
@serge-rider
Member

serge-rider commented Dec 7, 2015

Due to some build/sign problem DBeaver can't be run on recent MacOS versions.
It fails with "damaged and can't be opened" error.
Possible workarounds:

@serge-rider serge-rider added the bug label Dec 7, 2015

@serge-rider serge-rider self-assigned this Dec 7, 2015

@serge-rider serge-rider changed the title from MacOS archive. to MacOS installer broken Dec 7, 2015

@ArloL

This comment has been minimized.

Show comment
Hide comment
@ArloL

ArloL Feb 7, 2016

I am not sure if it helps but this is the result of spctl or codesign verification

$ spctl --assess DBeaver.app/
DBeaver.app/: invalid Info.plist (plist or signature have been modified)

$ codesign -v DBeaver.app/
DBeaver.app/: invalid Info.plist (plist or signature have been modified)

ArloL commented Feb 7, 2016

I am not sure if it helps but this is the result of spctl or codesign verification

$ spctl --assess DBeaver.app/
DBeaver.app/: invalid Info.plist (plist or signature have been modified)

$ codesign -v DBeaver.app/
DBeaver.app/: invalid Info.plist (plist or signature have been modified)
@NBOnGithub

This comment has been minimized.

Show comment
Hide comment
@NBOnGithub

NBOnGithub Jun 15, 2016

Any chance of getting this fixed? - my company stops me selecting 'anywhere' on the preferences so I cannot install if the signature is not correct :-(
It is still happening on version 3.6.10

NBOnGithub commented Jun 15, 2016

Any chance of getting this fixed? - my company stops me selecting 'anywhere' on the preferences so I cannot install if the signature is not correct :-(
It is still happening on version 3.6.10

@serge-rider

This comment has been minimized.

Show comment
Hide comment
@serge-rider

serge-rider Jun 17, 2016

Member

You could try Homebrew (http://brew.sh/).
At the moment DBeaver doesn't have associated Apple developer ID (which costs money).

Member

serge-rider commented Jun 17, 2016

You could try Homebrew (http://brew.sh/).
At the moment DBeaver doesn't have associated Apple developer ID (which costs money).

@NBOnGithub

This comment has been minimized.

Show comment
Hide comment
@NBOnGithub

NBOnGithub Jun 20, 2016

That works perfectly. You can install either version with one of these commands
brew install Caskroom/cask/dbeaver-enterprise
brew install Caskroom/versions/dbeaver-community
Many thanks for the rapid reply.

NBOnGithub commented Jun 20, 2016

That works perfectly. You can install either version with one of these commands
brew install Caskroom/cask/dbeaver-enterprise
brew install Caskroom/versions/dbeaver-community
Many thanks for the rapid reply.

@jgroves-hw

This comment has been minimized.

Show comment
Hide comment
@jgroves-hw

jgroves-hw Sep 19, 2016

I resolved this by replacing the invalid code signature with a new one with the following command:

sudo codesign --force --sign - /Applications/DBeaver.app

OS X will then treat the app as a normal unsigned application and allow you to open it accordingly

The answer by user495470 in http://apple.stackexchange.com/questions/18306/fixing-a-sealed-resource-is-missing-or-invalid-warning lead me to this solution.

jgroves-hw commented Sep 19, 2016

I resolved this by replacing the invalid code signature with a new one with the following command:

sudo codesign --force --sign - /Applications/DBeaver.app

OS X will then treat the app as a normal unsigned application and allow you to open it accordingly

The answer by user495470 in http://apple.stackexchange.com/questions/18306/fixing-a-sealed-resource-is-missing-or-invalid-warning lead me to this solution.

@f-lima

This comment has been minimized.

Show comment
Hide comment
@f-lima

f-lima Oct 12, 2016

My problem is not related with code sign. To force macOS Sierra open, it is easy as select Open from the pop-up menu (right-click with mouse). I have many apps installed that are not code signed and I open all without problem (like Meld and DBVisualizer) but DBeaver stopped to work when I tried to update and none of previous versions, not only the last one, can be installed because gives the error saying that file is corrupted. I think that is something related with the download manager used at site because I don't have this problem with any other site but DBeaver.

f-lima commented Oct 12, 2016

My problem is not related with code sign. To force macOS Sierra open, it is easy as select Open from the pop-up menu (right-click with mouse). I have many apps installed that are not code signed and I open all without problem (like Meld and DBVisualizer) but DBeaver stopped to work when I tried to update and none of previous versions, not only the last one, can be installed because gives the error saying that file is corrupted. I think that is something related with the download manager used at site because I don't have this problem with any other site but DBeaver.

@ggiessen

This comment has been minimized.

Show comment
Hide comment
@ggiessen

ggiessen Nov 1, 2016

This works for me: xattr -rc /Applications/DBeaver.app

ggiessen commented Nov 1, 2016

This works for me: xattr -rc /Applications/DBeaver.app

@cederom

This comment has been minimized.

Show comment
Hide comment
@cederom

cederom Nov 21, 2016

the same here! xattr -rc /Applications/DBeaver.app solves the problem :-)

cederom commented Nov 21, 2016

the same here! xattr -rc /Applications/DBeaver.app solves the problem :-)

@g4brielvs

This comment has been minimized.

Show comment
Hide comment
@g4brielvs

g4brielvs Nov 21, 2016

Try using Homebrew Cask for managing macOS applications from the command line!

brew install dbeaver-community

g4brielvs commented Nov 21, 2016

Try using Homebrew Cask for managing macOS applications from the command line!

brew install dbeaver-community

@serge-rider serge-rider added this to the 4.0 milestone Nov 21, 2016

@cederom

This comment has been minimized.

Show comment
Hide comment
@cederom

cederom Nov 21, 2016

I am using MacPorts :-) xattr fixed the problem for now so case closed thanks! :-)

cederom commented Nov 21, 2016

I am using MacPorts :-) xattr fixed the problem for now so case closed thanks! :-)

@yhjhoo

This comment has been minimized.

Show comment
Hide comment
@yhjhoo

yhjhoo Dec 11, 2016

The following works for me :

chmod +x /Applications/DBeaver.app/Contents/MacOS/dbeaver

yhjhoo commented Dec 11, 2016

The following works for me :

chmod +x /Applications/DBeaver.app/Contents/MacOS/dbeaver

@hgrod

This comment has been minimized.

Show comment
Hide comment
@hgrod

hgrod Dec 20, 2016

Note, this is for the .tar.gz archive, not the .dmg
My users were getting "DBeaver cannot be opened", with no further suggestions or details.
I had to both remove the extended attributes AND update the permissions with chmod.

The DBeaver.app was being installed without the proper permissions. For all my users, they needed to change their permissions to: drwxrwxr-x
I navigated to the Applications folder for the machines (not user's applications) and ran the following:

first remove the extended attributes
xattr -rc DBeaver.app
then recursively give permissions to all in all DBeaver folders, note this gives drwxrwxrwx not drwxrwxr-x. If you don't want ALL, please find the proper command for that.

sudo chmod -R uog+wxr DBeaver.app

hgrod commented Dec 20, 2016

Note, this is for the .tar.gz archive, not the .dmg
My users were getting "DBeaver cannot be opened", with no further suggestions or details.
I had to both remove the extended attributes AND update the permissions with chmod.

The DBeaver.app was being installed without the proper permissions. For all my users, they needed to change their permissions to: drwxrwxr-x
I navigated to the Applications folder for the machines (not user's applications) and ran the following:

first remove the extended attributes
xattr -rc DBeaver.app
then recursively give permissions to all in all DBeaver folders, note this gives drwxrwxrwx not drwxrwxr-x. If you don't want ALL, please find the proper command for that.

sudo chmod -R uog+wxr DBeaver.app

@serge-rider

This comment has been minimized.

Show comment
Hide comment
@serge-rider

serge-rider Dec 20, 2016

Member

Problem with non-executable binary in MacOS tar.gz will be fixed in the next version.
Thanks for noticing.

Member

serge-rider commented Dec 20, 2016

Problem with non-executable binary in MacOS tar.gz will be fixed in the next version.
Thanks for noticing.

@strangelove1969

This comment has been minimized.

Show comment
Hide comment
@strangelove1969

strangelove1969 Mar 26, 2017

I tried upgrading by downloading the latest dmg file. When I double click it the installer never appears. (I set up my preferences to allow anything and I was able to install an earlier version... I don't remember how). Not sure what is going wrong. :(

strangelove1969 commented Mar 26, 2017

I tried upgrading by downloading the latest dmg file. When I double click it the installer never appears. (I set up my preferences to allow anything and I was able to install an earlier version... I don't remember how). Not sure what is going wrong. :(

@serge-rider

This comment has been minimized.

Show comment
Hide comment
@serge-rider

serge-rider Mar 26, 2017

Member

@strangelove1969 Make sure you have Java 8 (JDK) installed.

Member

serge-rider commented Mar 26, 2017

@strangelove1969 Make sure you have Java 8 (JDK) installed.

@strangelove1969

This comment has been minimized.

Show comment
Hide comment
@strangelove1969

strangelove1969 Mar 26, 2017

Thank you @serge-rider . Yes, I do.

I can't even begin to install this because the installer won't start.

strangelove1969 commented Mar 26, 2017

Thank you @serge-rider . Yes, I do.

I can't even begin to install this because the installer won't start.

@serge-rider

This comment has been minimized.

Show comment
Hide comment
@serge-rider

serge-rider Mar 26, 2017

Member

@strangelove1969 There is no real installer for MacOS (yet). Just copy and start DBeaver application. If it doesn't start then there should be some error message and/or logs (https://github.com/serge-rider/dbeaver/wiki/Log-files)

Member

serge-rider commented Mar 26, 2017

@strangelove1969 There is no real installer for MacOS (yet). Just copy and start DBeaver application. If it doesn't start then there should be some error message and/or logs (https://github.com/serge-rider/dbeaver/wiki/Log-files)

@strangelove1969

This comment has been minimized.

Show comment
Hide comment
@strangelove1969

strangelove1969 Mar 26, 2017

I downloading the dmg and then trying to install it in the usual manner but nothing happens.

strangelove1969 commented Mar 26, 2017

I downloading the dmg and then trying to install it in the usual manner but nothing happens.

@tarun

This comment has been minimized.

Show comment
Hide comment
@tarun

tarun Mar 28, 2017

dbeaver-community version 4.0.3 is working fine for me on macOS Sierra 10.12.3

Updated the brew cask to reflect the same brew cask install dbeaver-community works now.

tarun commented Mar 28, 2017

dbeaver-community version 4.0.3 is working fine for me on macOS Sierra 10.12.3

Updated the brew cask to reflect the same brew cask install dbeaver-community works now.

@nkev

This comment has been minimized.

Show comment
Hide comment
@nkev

nkev Mar 28, 2017

Not working for me either. I installed Java 8, downloaded the enterprise version (dbeaver-ee-3.8.5-macosx.cocoa.x86_64.tar.gz), extracted the dbeaver.app and put it in the applications folder. When I run it I get this popup:

screen shot 2017-03-29 at 8 59 06 am

When I open that log file mentioned in the popup, this is the last entry:
!ENTRY org.eclipse.osgi 4 0 2017-03-29 08:58:46.380
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

The xattr and chmod solutions above make no difference. Installing with Brew makes no difference. I am running Macbook (15-inch, Late 2016), Sierra 10.12.3. I'm hoping someone has gone further with this. @serge-rider Is there an ETA for the next version containing the fix?

nkev commented Mar 28, 2017

Not working for me either. I installed Java 8, downloaded the enterprise version (dbeaver-ee-3.8.5-macosx.cocoa.x86_64.tar.gz), extracted the dbeaver.app and put it in the applications folder. When I run it I get this popup:

screen shot 2017-03-29 at 8 59 06 am

When I open that log file mentioned in the popup, this is the last entry:
!ENTRY org.eclipse.osgi 4 0 2017-03-29 08:58:46.380
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

The xattr and chmod solutions above make no difference. Installing with Brew makes no difference. I am running Macbook (15-inch, Late 2016), Sierra 10.12.3. I'm hoping someone has gone further with this. @serge-rider Is there an ETA for the next version containing the fix?

@nkev

This comment has been minimized.

Show comment
Hide comment
@nkev

nkev Mar 29, 2017

I fixed my issue above by downloading and installing the JDK version of Java 1.8. It works now!

nkev commented Mar 29, 2017

I fixed my issue above by downloading and installing the JDK version of Java 1.8. It works now!

@serge-rider serge-rider modified the milestones: 4.0.4, 4.0.5 Apr 2, 2017

@matthewlmcclure

This comment has been minimized.

Show comment
Hide comment
@matthewlmcclure

matthewlmcclure Apr 10, 2017

@nkev's solution also works for me. I installed JDK 8 using brew cask install java.

matthewlmcclure commented Apr 10, 2017

@nkev's solution also works for me. I installed JDK 8 using brew cask install java.

@serge-rider serge-rider modified the milestones: 4.0.5, 4.0.6 Apr 17, 2017

@serge-rider serge-rider modified the milestones: 4.0.6, 4.0.7 May 1, 2017

@serge-rider serge-rider modified the milestones: 4.1.0, 4.0.7 May 9, 2017

@serge-rider

This comment has been minimized.

Show comment
Hide comment
@serge-rider

serge-rider May 14, 2017

Member

Please check version 4.0.7.
DMG installer has been reworked, now it should work in Sierra (although installer UI is quite ugly).
Perhaps there will be some warnings but I very hope that "move to trash" message won't appear.

Member

serge-rider commented May 14, 2017

Please check version 4.0.7.
DMG installer has been reworked, now it should work in Sierra (although installer UI is quite ugly).
Perhaps there will be some warnings but I very hope that "move to trash" message won't appear.

@niwat-panrit

This comment has been minimized.

Show comment
Hide comment
@niwat-panrit

niwat-panrit May 15, 2017

niwat-panrit commented May 15, 2017

@serge-rider serge-rider modified the milestones: 4.1.0, 4.0.8 May 28, 2017

@bodonova

This comment has been minimized.

Show comment
Hide comment
@bodonova

bodonova Jul 25, 2017

What worked for me was (thanks to @hgrod ):

first remove the extended attributes
xattr -rc /Applications/DBeaver.app

then recursively give permissions to all in all DBeaver folders, note this gives drwxrwxrwx not drwxrwxr-x. If you don't want ALL, please find the proper command for that.

sudo chmod -R uog+wxr /Applications/DBeaver.app

However, I had previously re-signed the app due to an earlier suggestion so I can't be sure if that was necessary or not:
sudo codesign --force --sign - /Applications/DBeaver.app

bodonova commented Jul 25, 2017

What worked for me was (thanks to @hgrod ):

first remove the extended attributes
xattr -rc /Applications/DBeaver.app

then recursively give permissions to all in all DBeaver folders, note this gives drwxrwxrwx not drwxrwxr-x. If you don't want ALL, please find the proper command for that.

sudo chmod -R uog+wxr /Applications/DBeaver.app

However, I had previously re-signed the app due to an earlier suggestion so I can't be sure if that was necessary or not:
sudo codesign --force --sign - /Applications/DBeaver.app

@gantir

This comment has been minimized.

Show comment
Hide comment
@gantir

gantir Jan 12, 2018

What worked for me was (thanks to @bodonova ):

First remove the extended attributes

xattr -rc /Applications/DBeaver.app

Then recursively give permissions to all in all DBeaver folders, note this gives drwxrwxrwx not drwxrwxr-x. If you don't want ALL, please find the proper command for that.

sudo chmod -R uog+wxr /Applications/DBeaver.app

gantir commented Jan 12, 2018

What worked for me was (thanks to @bodonova ):

First remove the extended attributes

xattr -rc /Applications/DBeaver.app

Then recursively give permissions to all in all DBeaver folders, note this gives drwxrwxrwx not drwxrwxr-x. If you don't want ALL, please find the proper command for that.

sudo chmod -R uog+wxr /Applications/DBeaver.app

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