package mysql-server-5.1 5.1.31-1ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #397534 reported by steeleweb
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
mysql-dfsg-5.1 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Did the latest upgrade for Ubuntu 9, the ran the apt-get install mysql-server-5.1, went through install and failed to start server.

tsteele@lserver:~$ sudo apt-get install mysql-server-4.1
[sudo] password for tsteele:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mysql-server-4.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mysql-server-5.1
E: Package mysql-server-4.1 has no installation candidate
tsteele@lserver:~$ sudo apt-get install mysql-server-5.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  bsd-mailx libdbd-mysql-perl libdbi-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl mailx
  mysql-client-5.1 postfix
Suggested packages:
  dbishell tinyca procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf
  postfix-cdb
The following NEW packages will be installed:
  bsd-mailx libdbd-mysql-perl libdbi-perl libmysqlclient16 libnet-daemon-perl libplrpc-perl mailx
  mysql-client-5.1 mysql-server-5.1 postfix
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.4MB of archives.
After this operation, 55.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com jaunty/main libnet-daemon-perl 0.43-1 [46.9kB]
Get:2 http://us.archive.ubuntu.com jaunty/main libplrpc-perl 0.2020-1 [36.0kB]
Get:3 http://us.archive.ubuntu.com jaunty/main libdbi-perl 1.607-1 [791kB]
Get:4 http://us.archive.ubuntu.com jaunty/main libdbd-mysql-perl 4.008-1 [133kB]
Get:5 http://us.archive.ubuntu.com jaunty/universe libmysqlclient16 5.1.31-1ubuntu2 [1892kB]
Get:6 http://us.archive.ubuntu.com jaunty/universe mysql-client-5.1 5.1.31-1ubuntu2 [8628kB]
Get:7 http://us.archive.ubuntu.com jaunty/universe mysql-server-5.1 5.1.31-1ubuntu2 [10.5MB]
Get:8 http://us.archive.ubuntu.com jaunty/main postfix 2.5.5-1.1 [1219kB]
Get:9 http://us.archive.ubuntu.com jaunty/main bsd-mailx 8.1.2-0.20081101cvs-2ubuntu1 [160kB]
Get:10 http://us.archive.ubuntu.com jaunty/main mailx 1:20081101-2ubuntu1 [8516B]
Fetched 23.4MB in 2min 38s (148kB/s)
Preconfiguring packages ...
Selecting previously deselected package libnet-daemon-perl.
(Reading database ... 103530 files and directories currently installed.)
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-1_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.607-1_i386.deb) ...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.008-1_i386.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.31-1ubuntu2_i386.deb) ...
Selecting previously deselected package mysql-client-5.1.
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.31-1ubuntu2_i386.deb) ...
Selecting previously deselected package mysql-server-5.1.
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.31-1ubuntu2_i386.deb) ...
Selecting previously deselected package postfix.
Unpacking postfix (from .../postfix_2.5.5-1.1_i386.deb) ...
Selecting previously deselected package bsd-mailx.
Unpacking bsd-mailx (from .../bsd-mailx_8.1.2-0.20081101cvs-2ubuntu1_i386.deb) ...
Selecting previously deselected package mailx.
Unpacking mailx (from .../mailx_1%3a20081101-2ubuntu1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Setting up libnet-daemon-perl (0.43-1) ...
Setting up libplrpc-perl (0.2020-1) ...
Setting up libdbi-perl (1.607-1) ...
Setting up libdbd-mysql-perl (4.008-1) ...
Setting up libmysqlclient16 (5.1.31-1ubuntu2) ...

Setting up mysql-client-5.1 (5.1.31-1ubuntu2) ...

Setting up mysql-server-5.1 (5.1.31-1ubuntu2) ...
 * Stopping MySQL database server mysqld [ OK ]
090709 12:51:02 InnoDB: Started; log sequence number 0 46409
090709 12:51:02 InnoDB: Starting shutdown...
090709 12:51:03 InnoDB: Shutdown completed; log sequence number 0 46409
090709 12:51:03 [Warning] Forcing shutdown of 1 plugins
 * Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess post-installation script returned error exit status 1
Setting up postfix (2.5.5-1.1) ...
Adding group `postfix' (GID 126) ...
Done.
Adding system user `postfix' (UID 122) ...
Adding new user `postfix' (UID 122) with group `postfix' ...
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (GID 127) ...
Done.
/etc/aliases does not exist, creating it.

Postfix was not set up. Start with
  cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Setting up bsd-mailx (8.1.2-0.20081101cvs-2ubuntu1) ...

Setting up mailx (1:20081101-2ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 mysql-server-5.1

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: mysql-server-5.1 5.1.31-1ubuntu2
SourcePackage: mysql-dfsg-5.1
Title: package mysql-server-5.1 5.1.31-1ubuntu2 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.28-13-server i686

Revision history for this message
steeleweb (tsteele) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Could you please provide the following information:

 * content of /var/log/daemon.log related to mysql processes:

    /var/log/daemon.log

 * apparmor audit messages related to mysqld:

    /var/log/kern.log

 * mysqld apparmor profile:

    /etc/apparmor.d/usr.sbin.mysqld

 * list of mysqld apparmor profiles:

    ls -l /etc/apparmor.d/usr.sbin.mysqld*

 * mysql configuration stripped of private information (such as password):

    /etc/mysql/my.cnf

 * extra mysql configuration from the conf.d directory:

    /etc/mysql/conf.d/

 * directory listing of mysql datadir (by default /var/lib/mysql):

    ls -l /var/lib/mysql

=======================
Relevant error messages
Setting up mysql-server-5.1 (5.1.31-1ubuntu2) ...

 * Stopping MySQL database server mysqld 
[ OK ]

090709 12:51:02 InnoDB: Started; log sequence number 0 46409

090709 12:51:02 InnoDB: Starting shutdown...

090709 12:51:03 InnoDB: Shutdown completed; log sequence number 0 46409

090709 12:51:03 [Warning] Forcing shutdown of 1 plugins

 * Starting MySQL database server mysqld 
[fail]

invoke-rc.d: initscript mysql, action "start" failed.

dpkg: error processing mysql-server-5.1 (--configure):

 subprocess post-installation script returned error exit status 1

Changed in mysql-dfsg-5.1 (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in mysql-dfsg-5.1 (Ubuntu):
status: Incomplete → Invalid
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.