Comment 2 for bug 1659447

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
thanks for your report and your help to make Ubuntu better!

The automatically attached logs only state that:
Creating config file /etc/logrotate.d/tomcat7 with new version
Job for tomcat7.service failed because the control process exited with error code. See "systemctl status tomcat7.service" and "journalctl -xe" for details.
invoke-rc.d: initscript tomcat7, action "start" failed.
dpkg: error processing package tomcat7 (--configure):

Not having any more data it is hard to guess what failed.
Could you run:
$ systemctl status tomcat7.service

Since this seems to be an initial install (no tomact7 on there before the install) the first one might fail. It should be in state iF for failed install and still be available.

You can check the status with "dpkg -l tomcat7"

The file /var/log/tomcat7/catalina.out should hold the best debug data.
The most likely case that I've seen is tomcat8 and tomcat7 being installed at the same time and the second one fails to initialize as the port is already bound.
In that case fix the config of either /etc/tomcat7/server.xml (or 8) one and re-start/install.