Mysql service does not restart after unattended upgrade on Hardy

Lorenzo Salvadorini lorenzo.salvadorini at
Fri Apr 27 10:45:14 UTC 2012

Hi all,
we are experiencing this issue on many of our hardy hosts with
unattended upgrades enabled.
After upgrade from 5.0.51 to version 5.0.95 or from 5.0.95 to 5.0.96
the upgrade fails and the mysql service does not restarts correctly.
With a manual restart the mysql service come up without any apparent
problem but the version is still the old one. The day after, we have
done the upgrade manually without any problem. We experienced this
problem on different platform and setup:
- on EC2 hosts and on physical hosts on common HP DL360 G6/G7 hardware.
- on mysql clustered with DRBD and standalone hosts

I'm trying to understand what could be causing this behaviour reading
changelog or unattended upgrade logs/mail but I've not found anything
until now, is this happened to someone else?

More info about our typical setup affected by the issue:

~# lsb_release -r
Release:        8.04

~# uname -a
Linux foo02 2.6.24-28-server #1 SMP Sat Oct 16 18:09:42 UTC 2010
x86_64 GNU/Linux

Aptitude log:
/var/log/aptitude.2.gz:[UPGRADE] mysql-server-5.0 5.0.51a-3ubuntu5.8
-> 5.0.95-0ubuntu1

unattended-upgrades version 0.30ubuntu1

Mail example from unattended-upgrade on a server that failed the upgrade:
Unattended upgrade returned: True

Preconfiguring packages ...
(Reading database ... 33848 files and directories currently installed.)
Preparing to replace libssl-dev 0.9.8g-4ubuntu3.17 (using
.../libssl-dev_0.9.8g-4ubuntu3.18_amd64.deb) ...
Unpacking replacement libssl-dev ...
Preparing to replace libssl0.9.8 0.9.8g-4ubuntu3.17 (using
.../libssl0.9.8_0.9.8g-4ubuntu3.18_amd64.deb) ...
Unpacking replacement libssl0.9.8 ...
Preparing to replace mysql-client 5.0.95-0ubuntu1 (using
.../mysql-client_5.0.96-0ubuntu1_all.deb) ...
Unpacking replacement mysql-client ...
Preparing to replace mysql-server 5.0.95-0ubuntu1 (using
.../mysql-server_5.0.96-0ubuntu1_all.deb) ...
 * Stopping MySQL database server mysqld
Unpacking replacement mysql-server ...
Preparing to replace openssl 0.9.8g-4ubuntu3.17 (using
.../openssl_0.9.8g-4ubuntu3.18_amd64.deb) ...
Unpacking replacement openssl ...
Setting up libssl0.9.8 (0.9.8g-4ubuntu3.18) ...

Setting up libssl-dev (0.9.8g-4ubuntu3.18) ...
Setting up mysql-client (5.0.96-0ubuntu1) ...
Setting up mysql-server (5.0.96-0ubuntu1) ...
Setting up openssl (0.9.8g-4ubuntu3.18) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place


Thanks for any help,
Lorenzo Salvadorini.

More information about the ubuntu-server mailing list