Installed the Ubuntu Server 15.10
Following the installation procedure on manual: Installing ThingWorx 7.1 Version 1.3 Page 20 to 24
Then issue command
$ sudo service tomcat8 start
Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.
Then issue command to check
$ sudo systemctl status tomcat8.service
● tomcat8.service - (null)
Loaded: loaded (/etc/init.d/tomcat8)
Active: failed (Result: exit-code) since Thu 2016-09-29 17:55:15; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 1202 ExecStart=/etc/init.d/tomcat8 start (code=exited, status=203/EXEC)
Sep 29 17:55:15 ubuntu systemd[1]: Starting (null)...
Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Control process exited, code=exited status=203
Sep 29 17:55:15 ubuntu systemd[1]: Failed to start (null).
Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Unit entered failed state.
Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Failed with result 'exit-code'.
Then issue command to check
$ sudo journalctl -xe
--
-- The error number returned by this process is 8.
Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Control process exited
Sep 29 17:55:15 ubuntu systemd[1]: Failed to start (null).
-- Subject: Unit tomcat8.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tomcat8.service has failed.
--
-- The result is failed.
Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Unit entered failed state.
Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Failed with result 'exit-code'.
Sep 29 17:55:15 ubuntu polkitd(authority=local)[641]: Unregistered Authentication Agent for unix-process:1173:655469 (system bus name :1.17, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Please help to resolve.
What I am missing during the step 1 to 33 in the installation manual for Ubuntu?
What default user should I use during the installation of Ubuntu OS?
Thanks in advance.
Best Regards
C. Louis
Solved! Go to Solution.
Problem solved. As Ubuntu 15.10 onward uses only systemd to boot start service.
I create a /etc/systemd.system/tomcat8.service
sudo nano /etc/systemd/system/tomcat8.service
#Start of File
[Unit]
Description = Tomcat8 script that runs a shell script at boot
After = syslog.target
[Service]
Type=oneshot
ExecStart = /usr/share/tomcat8/bin/startup.sh
ExecStop = /usr/share/tomcat8/bin/shutdown.sh
Restart = always
RemainAfterExit = yes
Restart = always
[Install]
WantedBy = multi-user.target
#EOF
sudo chmod 755 /etc/systemd/system/tomcat8.service
sudo systemctl enable tomcat8.service
sudo reboot
#Verify tomcat8.service status.
sudo systemctl status tomcat8.service
Problem solved. As Ubuntu 15.10 onward uses only systemd to boot start service.
I create a /etc/systemd.system/tomcat8.service
sudo nano /etc/systemd/system/tomcat8.service
#Start of File
[Unit]
Description = Tomcat8 script that runs a shell script at boot
After = syslog.target
[Service]
Type=oneshot
ExecStart = /usr/share/tomcat8/bin/startup.sh
ExecStop = /usr/share/tomcat8/bin/shutdown.sh
Restart = always
RemainAfterExit = yes
Restart = always
[Install]
WantedBy = multi-user.target
#EOF
sudo chmod 755 /etc/systemd/system/tomcat8.service
sudo systemctl enable tomcat8.service
sudo reboot
#Verify tomcat8.service status.
sudo systemctl status tomcat8.service
Hi Louis,
In ubuntu Server 16.04 LTS it didn't work for me, can yo help me?
when i execute:
$ sudo systemctl status tomcat8.service
the output in shell is:
tomcat8.service - Tomcat8 script that runs a shell script at boot
Loaded: loaded (/etc/systemd/system/tomcat8.service; enabled; vendor preset: enabled)
Active: active (exited) (Result: exit-code) since Mon 2017-10-09 21:32:34 UTC; 8min ago
Process: 1384 ExecStart=/usr/share/tomcat8.5/8.5.20/bin/startup.sh (code=exited, status=0/SUCCESS)
Main PID: 1416 (code=exited, status=1/FAILURE)
Oct 09 21:32:34 edoxxiot1 systemd[1]: Starting Tomcat8 script that runs a shell script at boot...
Oct 09 21:32:34 edoxxiot1 startup.sh[1384]: Tomcat started.
Oct 09 21:32:34 edoxxiot1 systemd[1]: Started Tomcat8 script that runs a shell script at boot.
Oct 09 21:32:47 edoxxiot1 systemd[1]: tomcat8.service: Main process exited, code=exited, status=1/FAILURE
Thank you for you time,
Best regards