Failed to start Apache Tomcat Web Application Container

Hi All,

I am trying to install OpenBoxes (non grail version) on Untuntu 18.04.

I followed the instructions until installing Tomcat 7 in Tomcat - OpenBoxes, then I run into issue in starting Tomcat.

I believe I have not missed out any steps. I have spent a while going through the installation steps but still could not solve the issue.

Below is the logs from systemctl status tomcat.service

● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2021-06-19 03:53:55 UTC; 5s ago
Process: 35416 ExecStop=/opt/tomcat/bin/shutdown.sh **(code=exited, status=1/FAILURE)**
Process: 35468 ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=0/SUCCESS)
Main PID: 35489 (code=exited, status=127)
Jun 19 03:53:55 openboxes systemd[1]: **tomcat.service: Main process exited, code=exited, status=127/n/a**
Jun 19 03:53:55 openboxes systemd[1]: **tomcat.service: Failed with result 'exit-code'.**

Below is the error message extract from journalctl -xe

-- Unit tomcat.service has begun starting up.
Jun 19 04:17:51 openboxes startup.sh[41047]: Existing PID file found during start.
Jun 19 04:17:51 openboxes startup.sh[41047]: Removing/clearing stale PID file.
Jun 19 04:17:51 openboxes startup.sh[41047]: Tomcat started.
Jun 19 04:17:51 openboxes shutdown.sh[41071]: PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted.
Jun 19 04:17:51 openboxes systemd[1]: **tomcat.service: Control process exited, code=exited status=1**
Jun 19 04:17:51 openboxes systemd[1]: **tomcat.service: Failed with result 'exit-code'.**
Jun 19 04:17:51 openboxes systemd[1]: **Failed to start Apache Tomcat Web Application Container.**
-- Subject: Unit tomcat.service has failed

Thanks.

Unfortunately the logging you included doesn’t help much with diagnosing the problem. Could you send the full catalina.out to support@openboxes.com.