I was wondering why the tomcat7 debian package would not start after the upgrade.
systemctl status tomcat7 output would look quite OK
systemctl status tomcat7
● tomcat7.service - LSB: Start Tomcat.
Loaded: loaded (/etc/init.d/tomcat7; generated; vendor preset: enabled)
Active: active (exited) since Fri 2017-06-16 10:10:34 CEST; 29min ago
Docs: man:systemd-sysv-generator(8)
Process: 536 ExecStart=/etc/init.d/tomcat7 start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/tomcat7.service
Jun 16 10:10:34 new-ada systemd[1]: Starting LSB: Start Tomcat....
Jun 16 10:10:34 new-ada systemd[1]: Started LSB: Start Tomcat..
Jun 16 10:10:34 new-ada tomcat7[536]: Starting Tomcat servlet engine: tomcat7start-stop-dae…tory)
Jun 16 10:10:34 new-ada tomcat7[536]: (already running).
Hint: Some lines were ellipsized, use -l to show in full.
But not java process was created
pgrep -lf java
echo $?
so something was obviously wrong.
But the devil is in the details, can you see this truncated line ?
Jun 16 10:10:34 new-ada tomcat7[536]: Starting Tomcat servlet engine: tomcat7start-stop-dae…tory)
If you run it in full with systemctl status -l tomcat7
it expends to
Jun 16 10:10:34 new-ada tomcat7[536]: Starting Tomcat servlet engine: tomcat7start-stop-daemon: unable to stat /usr/lib/jvm/java-7-openjdk-amd64//bin/java (No such file or directory)
Now I get it, the upgrade removed the openjdk-7-jre-headless package.Time to switch to openjdk8 !
The package openjdk-8-jre-headless was already installed, so I justed needed to set
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
in /etc/default/tomcat7
Note for the future:
- Why was this package removed ?
- Should I configure the systemctl status to show ellipsized lined by default ?
No comments:
Post a Comment