When you run the command: sudo systemctl start tomcat.service, you get the following message.
Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
To find out the cause of the problem, you run the following command according to the message.
sudo journalctl -xe
Below is a smaple output of the above command.
]$ sudo journalctl -xe
May 23 11:21:02 cstestdbc7 systemd[1]: tomcat.service failed.
May 23 11:21:02 cstestdbc7 sudo[52164]: pam_unix(sudo:session): session closed for user root
May 23 11:21:02 cstestdbc7 polkitd[128065]: Unregistered Authentication Agent for unix-process:52165:864308901 (system bus name :1.May 23 11:21:25 testmachine7 sudo[52188]: jsmieh : TTY=pts/13 ; PWD=/opt ; USER=root ; COMMAND=/bin/systemctl daemon-reload
May 23 11:21:25 tesmachine7 sudo[52188]: pam_unix(sudo:session): session opened for user root by jsmith(uid=0)
May 23 11:21:26 testmachine7 polkitd[128065]: Registered Authentication Agent for unix-process:52189:864311216 (system bus name :1.93May 23 11:21:26 testmachine7 systemd[1]: Reloading.
May 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:11] Unknown lvalue 'MemoryDenyWriteExecute' in sectionMay 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:13] Unknown lvalue 'ProtectControlGroups' in section 'May 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:15] Unknown lvalue 'ProtectKernelModules' in section 'May 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:18] Unknown lvalue 'RestrictRealtime' in section 'ServMay 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:19] Unknown lvalue 'ReadWritePaths' in section 'ServicMay 23 11:21:26 testmachine7 polkitd[128065]: Unregistered Authentication Agent for unix-process:52189:864311216 (system bus name :1.May 23 11:21:26 testmachine7 sudo[52188]: pam_unix(sudo:session): session closed for user root
May 23 11:21:30 testmachine7 sudo[52217]: jsmith : TTY=pts/13 ; PWD=/opt ; USER=root ; COMMAND=/bin/systemctl start tomcat.servicMay 23 11:21:30 testmachine7 sudo[52217]: pam_unix(sudo:session): session opened for user root by jsmith(uid=0)
May 23 11:21:30 testmachine7 polkitd[128065]: Registered Authentication Agent for unix-process:52218:864311710 (system bus name :1.93May 23 11:21:30 testmachine7 systemd[1]: Starting Apache Tomcat Web Application Container...
-- Subject: Unit tomcat.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tomcat.service has begun starting up.
May 23 11:21:30 testmachine7 systemd[52224]: Failed at step EXEC spawning /opt/tomcat/bin/startup.sh: No such file or directory
-- Subject: Process /opt/tomcat/bin/startup.sh could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /opt/tomcat/bin/startup.sh could not be executed and failed.
--
-- The error number returned by this process is 2.
May 23 11:21:31 testmachine7 systemd[1]: tomcat.service: control process exited, code=exited status=203
May 23 11:21:31 testmachine7 systemd[1]: Failed to start Apache Tomcat Web Application Container.
-- Subject: Unit tomcat.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
The launch of tomcat failed because the /opt/tomcat/bin/startup.sh could not be executed or does not exist. Check your /etc/systemd/system/tomcat.service file to ensure that the directory for the startup.sh is correct, and the directories for all the other entries are correct.
Check your path permissions to the startup.sh to ensure that it is executable.
-----------------------------------------------------------------------------------------------------------------
Job for tomcat.service failed because the control process exited with error code. See "systemctl status tomcat.service" and "journalctl -xe" for details.
To find out the cause of the problem, you run the following command according to the message.
sudo journalctl -xe
Below is a smaple output of the above command.
]$ sudo journalctl -xe
May 23 11:21:02 cstestdbc7 systemd[1]: tomcat.service failed.
May 23 11:21:02 cstestdbc7 sudo[52164]: pam_unix(sudo:session): session closed for user root
May 23 11:21:02 cstestdbc7 polkitd[128065]: Unregistered Authentication Agent for unix-process:52165:864308901 (system bus name :1.May 23 11:21:25 testmachine7 sudo[52188]: jsmieh : TTY=pts/13 ; PWD=/opt ; USER=root ; COMMAND=/bin/systemctl daemon-reload
May 23 11:21:25 tesmachine7 sudo[52188]: pam_unix(sudo:session): session opened for user root by jsmith(uid=0)
May 23 11:21:26 testmachine7 polkitd[128065]: Registered Authentication Agent for unix-process:52189:864311216 (system bus name :1.93May 23 11:21:26 testmachine7 systemd[1]: Reloading.
May 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:11] Unknown lvalue 'MemoryDenyWriteExecute' in sectionMay 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:13] Unknown lvalue 'ProtectControlGroups' in section 'May 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:15] Unknown lvalue 'ProtectKernelModules' in section 'May 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:18] Unknown lvalue 'RestrictRealtime' in section 'ServMay 23 11:21:26 testmachine7 systemd[1]: [/usr/lib/systemd/system/bolt.service:19] Unknown lvalue 'ReadWritePaths' in section 'ServicMay 23 11:21:26 testmachine7 polkitd[128065]: Unregistered Authentication Agent for unix-process:52189:864311216 (system bus name :1.May 23 11:21:26 testmachine7 sudo[52188]: pam_unix(sudo:session): session closed for user root
May 23 11:21:30 testmachine7 sudo[52217]: jsmith : TTY=pts/13 ; PWD=/opt ; USER=root ; COMMAND=/bin/systemctl start tomcat.servicMay 23 11:21:30 testmachine7 sudo[52217]: pam_unix(sudo:session): session opened for user root by jsmith(uid=0)
May 23 11:21:30 testmachine7 polkitd[128065]: Registered Authentication Agent for unix-process:52218:864311710 (system bus name :1.93May 23 11:21:30 testmachine7 systemd[1]: Starting Apache Tomcat Web Application Container...
-- Subject: Unit tomcat.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit tomcat.service has begun starting up.
May 23 11:21:30 testmachine7 systemd[52224]: Failed at step EXEC spawning /opt/tomcat/bin/startup.sh: No such file or directory
-- Subject: Process /opt/tomcat/bin/startup.sh could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /opt/tomcat/bin/startup.sh could not be executed and failed.
--
-- The error number returned by this process is 2.
May 23 11:21:31 testmachine7 systemd[1]: tomcat.service: control process exited, code=exited status=203
May 23 11:21:31 testmachine7 systemd[1]: Failed to start Apache Tomcat Web Application Container.
-- Subject: Unit tomcat.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
The launch of tomcat failed because the /opt/tomcat/bin/startup.sh could not be executed or does not exist. Check your /etc/systemd/system/tomcat.service file to ensure that the directory for the startup.sh is correct, and the directories for all the other entries are correct.
Check your path permissions to the startup.sh to ensure that it is executable.
-----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.
No comments:
Post a Comment