Restarting apache in openvista-utils postinst fails on fresh Karmic installation

Bug #503889 reported by Jon Tai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenVista/GT.M Integration
Fix Released
Undecided
Unassigned

Bug Description

Here's what happened on a fresh Karmic installation:

medsphere@ubuntu:~$ sudo apt-get install openvista-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common fis-gtm-5.3004a libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libgpgme11 libicu40 libpth20 openvista-libs-5.3004a ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom ksh gpgsm putty-tools pbzip2
The following NEW packages will be installed:
  apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common fis-gtm-5.3004a libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libgpgme11 libicu40 libpth20 openvista-libs-5.3004a openvista-utils ssl-cert
0 upgraded, 16 newly installed, 0 to remove and 45 not upgraded.
Need to get 15.4MB of archives.
After this operation, 41.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.medsphere.org karmic/main fis-gtm-5.3004a 5.3004a-0ubuntu2~msc1~karmic1 [5,993kB]
Get:2 http://us.archive.ubuntu.com karmic/main libapr1 1.3.8-1 [116kB]
Get:3 http://us.archive.ubuntu.com karmic/main libaprutil1 1.3.9+dfsg-1ubuntu1 [91.1kB]
Get:4 http://us.archive.ubuntu.com karmic/main libaprutil1-dbd-sqlite3 1.3.9+dfsg-1ubuntu1 [27.5kB]
Get:5 http://us.archive.ubuntu.com karmic/main libaprutil1-ldap 1.3.9+dfsg-1ubuntu1 [25.2kB]
Get:6 http://us.archive.ubuntu.com karmic-updates/main apache2.2-bin 2.2.12-1ubuntu2.1 [1,309kB]
Get:7 http://mirrors.medsphere.org karmic/main openvista-libs-5.3004a 0.8.6-0ubuntu2~msc2~karmic1 [12.9kB]
Get:8 http://mirrors.medsphere.org karmic/main openvista-utils 0.8.6-0ubuntu2~msc2~karmic1 [55.5kB]
Get:9 http://us.archive.ubuntu.com karmic-updates/main apache2-utils 2.2.12-1ubuntu2.1 [155kB]
Get:10 http://us.archive.ubuntu.com karmic-updates/main apache2.2-common 2.2.12-1ubuntu2.1 [285kB]
Get:11 http://us.archive.ubuntu.com karmic-updates/main apache2-mpm-worker 2.2.12-1ubuntu2.1 [2,314B]
Get:12 http://us.archive.ubuntu.com karmic-updates/main apache2 2.2.12-1ubuntu2.1 [1,424B]
Get:13 http://us.archive.ubuntu.com karmic/main libpth20 2.0.7-12 [78.1kB]
Get:14 http://us.archive.ubuntu.com karmic/main libgpgme11 1.1.8-2ubuntu3 [293kB]
Get:15 http://us.archive.ubuntu.com karmic/main libicu40 4.0.1-2ubuntu2 [6,979kB]
Get:16 http://us.archive.ubuntu.com karmic/main ssl-cert 1.0.23ubuntu2 [10.9kB]
Fetched 15.4MB in 1min 38s (156kB/s)
Preconfiguring packages ...
Selecting previously deselected package libapr1.
(Reading database ... 40543 files and directories currently installed.)
Unpacking libapr1 (from .../libapr1_1.3.8-1_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.9+dfsg-1ubuntu1_i386.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.9+dfsg-1ubuntu1_i386.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.9+dfsg-1ubuntu1_i386.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.12-1ubuntu2.1_i386.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.12-1ubuntu2.1_i386.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.12-1ubuntu2.1_all.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.12-1ubuntu2.1_all.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.12-1ubuntu2.1_all.deb) ...
Selecting previously deselected package libpth20.
Unpacking libpth20 (from .../libpth20_2.0.7-12_i386.deb) ...
Selecting previously deselected package libgpgme11.
Unpacking libgpgme11 (from .../libgpgme11_1.1.8-2ubuntu3_i386.deb) ...
Selecting previously deselected package libicu40.
Unpacking libicu40 (from .../libicu40_4.0.1-2ubuntu2_i386.deb) ...
Selecting previously deselected package fis-gtm-5.3004a.
Unpacking fis-gtm-5.3004a (from .../fis-gtm-5.3004a_5.3004a-0ubuntu2~msc1~karmic1_i386.deb) ...
Selecting previously deselected package openvista-libs-5.3004a.
Unpacking openvista-libs-5.3004a (from .../openvista-libs-5.3004a_0.8.6-0ubuntu2~msc2~karmic1_i386.deb) ...
Selecting previously deselected package openvista-utils.
Unpacking openvista-utils (from .../openvista-utils_0.8.6-0ubuntu2~msc2~karmic1_i386.deb) ...
Selecting previously deselected package ssl-cert.
Unpacking ssl-cert (from .../ssl-cert_1.0.23ubuntu2_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Setting up libapr1 (1.3.8-1) ...

Setting up libaprutil1 (1.3.9+dfsg-1ubuntu1) ...

Setting up libaprutil1-dbd-sqlite3 (1.3.9+dfsg-1ubuntu1) ...
Setting up libaprutil1-ldap (1.3.9+dfsg-1ubuntu1) ...
Setting up apache2.2-bin (2.2.12-1ubuntu2.1) ...
Setting up apache2-utils (2.2.12-1ubuntu2.1) ...
Setting up apache2.2-common (2.2.12-1ubuntu2.1) ...
Enabling site default.
Enabling module alias.
Enabling module autoindex.
Enabling module dir.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module status.
Enabling module auth_basic.
Enabling module deflate.
Enabling module authz_default.
Enabling module authz_user.
Enabling module authz_groupfile.
Enabling module authn_file.
Enabling module authz_host.

Setting up apache2-mpm-worker (2.2.12-1ubuntu2.1) ...
 * Starting web server apache2 [ OK ]

Setting up apache2 (2.2.12-1ubuntu2.1) ...

Setting up libpth20 (2.0.7-12) ...

Setting up libgpgme11 (1.1.8-2ubuntu3) ...

Setting up libicu40 (4.0.1-2ubuntu2) ...

Setting up fis-gtm-5.3004a (5.3004a-0ubuntu2~msc1~karmic1) ...

Setting up openvista-libs-5.3004a (0.8.6-0ubuntu2~msc2~karmic1) ...

Setting up openvista-utils (0.8.6-0ubuntu2~msc2~karmic1) ...
 * Restarting web server apache2 * We failed to correctly shutdown apache, so we're now killing all running apache processes. This is almost certainly suboptimal, so please make sure your system is working as you'd expect now!
 ... waiting Syntax error on line 51 of /etc/apache2/sites-enabled/default-ssl:
SSLCertificateFile: file '/etc/ssl/certs/ssl-cert-snakeoil.pem' does not exist or is empty
                                                                                                                                        [fail]
invoke-rc.d: initscript apache2, action "restart" failed.
dpkg: error processing openvista-utils (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up ssl-cert (1.0.23ubuntu2) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 openvista-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)
medsphere@ubuntu:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up openvista-utils (0.8.6-0ubuntu2~msc2~karmic1) ...
 * Restarting web server apache2 [ OK ]

medsphere@ubuntu:~$

Related branches

Revision history for this message
Jon Tai (jontai) wrote :

As a workaround, just sudo apt-get install -f

Revision history for this message
Jon Tai (jontai) wrote :

I wasn't able to reproduce on Ubuntu 9.10 Desktop, but Carlos was able to reproduce on Ubuntu 9.10 Server: https://medsphere.org/community/project/gtm/blog/2010/01/11/087-release#comment-1595 The original bug report was on a Server system, so I'm thinking this only affects the Server edition of Ubuntu -- probably because ssl-cert is already installed on a Desktop system by default.

Jon Tai (jontai)
Changed in openvista-gtm-integration:
milestone: none → 0.8.8
Jon Tai (jontai)
Changed in openvista-gtm-integration:
status: New → Confirmed
Jon Tai (jontai)
Changed in openvista-gtm-integration:
status: Confirmed → Fix Committed
Jon Tai (jontai)
Changed in openvista-gtm-integration:
status: Fix Committed → Fix Released
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.