package tomcat8 8.0.32-1ubuntu1 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1

Bug #1598297 reported by George Abreu Lumby
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
tomcat8 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Creating config file /etc/logrotate.d/tomcat8 with new version
Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.
invoke-rc.d: initscript tomcat8, action "start" failed.
dpkg: erro ao processar o pacote tomcat8 (--configure):
 sub-processo script post-installation instalado retornou estado de saída de erro 1

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: tomcat8 8.0.32-1ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Fri Jul 1 17:09:46 2016
ErrorMessage: sub-processo script post-installation instalado retornou estado de saída de erro 1
InstallationDate: Installed on 2016-07-01 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.10ubuntu1
SourcePackage: tomcat8
Title: package tomcat8 8.0.32-1ubuntu1 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
George Abreu Lumby (abreu-lumby) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tomcat8 (Ubuntu):
status: New → Confirmed
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
thank you for your report and your effort to help making Ubuntu better.
I must excuse myself, but I fail to see what might have happened out of the logs:

Terminal:
Configurando tomcat8 (8.0.32-1ubuntu1) ...

Creating config file /etc/default/tomcat8 with new version
Adicionando usuário de sistema 'tomcat8' (UID 122) ...
Adicionando novo usuário `tomcat8' (UID 122) ao grupo `tomcat8' ...
Sem criar diretório pessoal `/usr/share/tomcat8'.

Creating config file /etc/logrotate.d/tomcat8 with new version
Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.
invoke-rc.d: initscript tomcat8, action "start" failed.

journal:
Jul 01 17:09:45 hostname systemd[1]: Failed to start LSB: Start Tomcat..
Jul 01 17:09:45 hostname systemd[1]: tomcat8.service: Failed with result 'exit-code'.

I just tried to reproduce, but as I expected it works for me.
Do you have any more info on your tomcat or general setup that you could share that you think might help understanding what&why fails in your case?

You might try to start it manually.
I checked the init script and at the default installation the way it calls it is:

sudo /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Djava.endorsed.dirs=/usr/share/tomcat8/endorsed -classpath /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat8 -Dcatalina.home=/usr/share/tomcat8 -Djava.io.tmpdir=/tmp/tomcat8-tomcat8-tmp org.apache.catalina.startup.Bootstrap start

If you run this it should end waiting properly started at "INFO: Server startup".
Not sure if that works in your half-configured case, as install might have been rerolled, but worth a try.

Changed in tomcat8 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tomcat8 (Ubuntu) because there has been no activity for 60 days.]

Changed in tomcat8 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Jacob Ferrero (jacobferrero) wrote :

I am still affected by this with tomcat8 (8.5.21-1ubuntu1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.