No passo "Acessando a aplicação na instância", ao tentar realizar o "sudo service tomcat8 start" ocorre o seguinte erro:
Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.
No log systemctl status tomcat8.service traz: tomcat8.service - LSB: Start Tomcat. Loaded: loaded (/etc/init.d/tomcat8; bad; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2017-10-03 14:01:52 UTC; 6s ago Docs: man:systemd-sysv-generator(8) Process: 8486 ExecStop=/etc/init.d/tomcat8 stop (code=exited, status=0/SUCCESS) Process: 8769 ExecStart=/etc/init.d/tomcat8 start (code=exited, status=1/FAILURE)
Oct 03 14:01:47 ip-172-31-31-5 systemd[1]: Starting LSB: Start Tomcat.... Oct 03 14:01:47 ip-172-31-31-5 tomcat8[8769]: * Starting Tomcat servlet engine tomcat8 Oct 03 14:01:52 ip-172-31-31-5 tomcat8[8769]: ...fail! Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: tomcat8.service: Control process exited, code=exited status=1 Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: Failed to start LSB: Start Tomcat.. Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: tomcat8.service: Unit entered failed state. Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: tomcat8.service: Failed with result 'exit-code'.
E no log journalctl -xe -- Unit tomcat8.service has begun starting up. Oct 03 14:00:18 ip-172-31-31-5 tomcat8[8707]: Starting Tomcat servlet engine tomcat8 Oct 03 14:00:23 ip-172-31-31-5 tomcat8[8707]: ...fail! Oct 03 14:00:23 ip-172-31-31-5 systemd[1]: tomcat8.service: Control process exited, code=exited status=1 Oct 03 14:00:23 ip-172-31-31-5 sudo[8677]: pam_unix(sudo:session): session closed for user root Oct 03 14:00:23 ip-172-31-31-5 systemd[1]: Failed to start LSB: Start Tomcat.. -- 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. Oct 03 14:00:23 ip-172-31-31-5 systemd[1]: tomcat8.service: Unit entered failed state. Oct 03 14:00:23 ip-172-31-31-5 systemd[1]: tomcat8.service: Failed with result 'exit-code'. Oct 03 14:00:57 ip-172-31-31-5 sudo[8734]: ubuntu : TTY=pts/0 ; PWD=/usr/share/tomcat8/bin ; USER=root ; COMMAND=/bin/nano setenv.env Oct 03 14:00:57 ip-172-31-31-5 sudo[8734]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0) Oct 03 14:01:04 ip-172-31-31-5 sudo[8734]: pam_unix(sudo:session): session closed for user root Oct 03 14:01:08 ip-172-31-31-5 sudo[8736]: ubuntu : TTY=pts/0 ; PWD=/usr/share/tomcat8/bin ; USER=root ; COMMAND=/bin/nano setenv.sh Oct 03 14:01:08 ip-172-31-31-5 sudo[8736]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0) Oct 03 14:01:34 ip-172-31-31-5 sudo[8736]: pam_unix(sudo:session): session closed for user root Oct 03 14:01:47 ip-172-31-31-5 sudo[8739]: ubuntu : TTY=pts/0 ; PWD=/usr/share/tomcat8/bin ; USER=root ; COMMAND=/usr/sbin/service tomcat8 start Oct 03 14:01:47 ip-172-31-31-5 sudo[8739]: pam_unix(sudo:session): session opened for user root by ubuntu(uid=0) Oct 03 14:01:47 ip-172-31-31-5 systemd[1]: Starting LSB: Start Tomcat.... -- Subject: Unit tomcat8.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit tomcat8.service has begun starting up. Oct 03 14:01:47 ip-172-31-31-5 tomcat8[8769]: Starting Tomcat servlet engine tomcat8 Oct 03 14:01:52 ip-172-31-31-5 tomcat8[8769]: ...fail! Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: tomcat8.service: Control process exited, code=exited status=1 Oct 03 14:01:52 ip-172-31-31-5 sudo[8739]: pam_unix(sudo:session): session closed for user root Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: Failed to start LSB: Start Tomcat.. -- 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. Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: tomcat8.service: Unit entered failed state. Oct 03 14:01:52 ip-172-31-31-5 systemd[1]: tomcat8.service: Failed with result 'exit-code'.
Como posso proceder?