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

Installer: asadmin start-domain fails with Glassfish 4.1 on OS X Yosemite 10.10.3 #1983

Closed
pdurbin opened this issue Apr 13, 2015 · 10 comments
Closed

Comments

@pdurbin
Copy link
Member

pdurbin commented Apr 13, 2015

This morning I updated my laptop to OS X Yosemite 10.10.3 and was surprised to discover that Glassfish 4.1 wouldn't start:

murphy:~ pdurbin$ cd /Applications/NetBeans/glassfish4
murphy:glassfish4 pdurbin$ glassfish/bin/asadmin start-domain
JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: The server exited prematurely with exit code 1.
Before it died, it produced the following output:


Command start-domain failed.
murphy:glassfish4 pdurbin$ 

I'm found two bugs filed about this and a Stackoverflow post:

Other projects are reporting problems as well:

It sounds like bsexec may now require root privileges. I'm seeing it called on line 448 of https://java.net/projects/glassfish/sources/svn/content/tags/4.1-b12/nucleus/admin/launcher/src/main/java/com/sun/enterprise/admin/launcher/GFLauncher.java

A workaround for me at the moment is to use asadmin start-domain --verbose=true

We may need to adjust our installer that gets new developers set up:

murphy:dataverse pdurbin$ grep start-domain scripts/installer/glassfish-setup.sh 
    ./asadmin $ASADMIN_OPTS start-domain $GLASSFISH_DOMAIN
./asadmin $ASADMIN_OPTS restart-domain $GLASSFISH_DOMAIN
@pdurbin pdurbin added this to the In Review - 4.0 milestone Apr 13, 2015
@pdurbin
Copy link
Member Author

pdurbin commented Apr 13, 2015

@pdurbin pdurbin modified the milestones: In Review - 4.0.x, In Review - 4.0 Apr 14, 2015
pdurbin added a commit that referenced this issue Apr 15, 2015
Also, stop using asadmin to start glassfish #1983
@pdurbin
Copy link
Member Author

pdurbin commented Apr 30, 2015

@admix
Copy link

admix commented Jun 26, 2015

Any updates or workarounds ?

@pdurbin
Copy link
Member Author

pdurbin commented Jun 26, 2015

@admix in practice, for now, I'm letting Netbeans start Glassfish for me on my Mac.

https://java.net/jira/browse/GLASSFISH-21343 suggests it will be fixed in Glassfish 4.2.

If you can't wait, maybe try a recent Payara. This bug is on their minds:

@pdurbin
Copy link
Member Author

pdurbin commented Oct 20, 2015

@abidart Glassfish 4.1.1 is out per #2628 if you'd like to try it out and report back on this issue if helps. :)

https://java.net/jira/browse/GLASSFISH-21343 now says 4.1.1 as the fix version at least.

@pdurbin
Copy link
Member Author

pdurbin commented Oct 20, 2015

Bah, that last comment was for @admix

Sorry to spam you @abidart and sorry I missed you the other day. :)

@scolapasta scolapasta removed this from the Not Assigned to a Release milestone Jan 28, 2016
@pdurbin
Copy link
Member Author

pdurbin commented Mar 4, 2016

@bmckinney is looking into using launchctl as part of Ansible playbooks (#2443 is related).

@bmckinney
Copy link
Contributor

I've found that adding --verbose=true is a decent workaround. Here is a plist I've used for launchctl on yosemite:

`

Label glassfish ProgramArguments /usr/local/glassfish4/bin/asadmin start-domain --verbose=true domain1 ServiceDescription Glassfish 4 Server WorkingDirectory /usr/local/glassfish4/bin OnDemand AbandonProcessGroup `

@pdurbin
Copy link
Member Author

pdurbin commented Jun 28, 2017

This problem will go away when we get off Glassfish 4.1, which is what #2628 is about. Closing.

@pdurbin
Copy link
Member Author

pdurbin commented Jan 3, 2019

I just wanted to note for the record that getting off Glassfish 4.1 is not necessary for start-domain to work again. I recently upgraded to OS X 10.14 and start-domain just works now. (I'm not sure which version fixed it.) Now that I have my Mac in sync with the phoenix server in terms of where I put Glassfish, I can run the same scripts/deploy/phoenix.dataverse.org/deploy script on my Mac to drop the database and get set up again.

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

No branches or pull requests

5 participants