-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Fully Executable Jar doesn't start on Ubuntu 15.10 #5983
Comments
Does influxdata/influxdb#3989 help? Looks like the exact same issue with a different service. Note that we do support |
It's the same issue. However, Ubuntu 15.10 does have lots of init.d scripts that do work with the service command. |
Update: Setting the DEBUG env var allowed me to see the error using Also, following the spring-boot ref docs for systemd: $ systemctl start foo.service
$ systemctl status foo.service
● foo.service - foo
Loaded: loaded (/etc/systemd/system/foo.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-05-18 09:32:13 MDT; 2s ago
Process: 6755 ExecStart=/home/kbowen/foo-0.0.1-SNAPSHOT.jar (code=exited, status=203/EXEC)
Main PID: 6755 (code=exited, status=203/EXEC)
May 18 09:32:13 dev systemd[1]: Started foo.
May 18 09:32:13 dev systemd[1]: Starting foo...
May 18 09:32:13 dev systemd[1]: foo.service: main process exited, code=exited, status=203/EXEC
May 18 09:32:13 dev systemd[1]: Unit foo.service entered failed state.
May 18 09:32:13 dev systemd[1]: foo.service failed. |
Oddly, there's some sys V -- systemd compatabiltiy issue on Ubuntu 15.04. The jar works fine on redhat 7.2, without a .service file. Does not work on Ubuntu 15.04. Not sure the systemd debacle is spring-boot's problem, although this feature (executable jar) makes our CI much easier. |
Unfortunately I have same problem with Ubuntu 16.04. I tried both SystemV and systemd methods described in the documentation here: http://docs.spring.io/spring-boot/docs/1.3.0.BUILD-SNAPSHOT/reference/htmlsingle/#deployment-service If I tried to start service I got following error:
And i got following details about the execution:
Same JAR file works perfectly as a SystemV service on a CentOS release 6.7 machine. FYI. |
@selimok Thanks for the information. We have integration tests that verify the launch script works with System V. Those tests run successfully on Ubuntu Xenial. The error message suggests a permissions problem. See http://unix.stackexchange.com/questions/158494/the-name-org-freedesktop-policykit1-was-not-provided-by-any-service-files, for example. |
I had the same problem, and chmod +x myfile.jar fixed it. Running Centos 7. |
Unless I've missed something, I think this was just a permissions problem. Please correct me if I'm mistaken. |
Still not working for me Ubuntu 18.04. Why closed? |
Because, as mentioned in the comment immediately above yours, it was a permissions problem. If you think that's not the problem in your case, please open a new issue with a minimal sample and precise instructions of how to reproduce the problem. |
There was both a perms issue and an Ubuntu 15.04 systemd issue. On updated systems, we are running 40+ spring boot services using systemd. (All praise systemd). |
Not sure this isn't my error...
The service WILL start with
/etc/init.d/foo start
Same jarfile and procedure works on Redhat and CentOS (using the
service
command).The text was updated successfully, but these errors were encountered: