apt-upgrading percona-server fails in post-installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Ignacio Nin | ||
5.1 |
Fix Released
|
High
|
Ignacio Nin | ||
5.5 |
Fix Released
|
High
|
Ignacio Nin | ||
5.6 |
Fix Released
|
High
|
Ignacio Nin |
Bug Description
I've seen this in a few releases now; the starting of the server in the final moments of the upgrade process fails:
[...]
Setting up percona-
(Reading database ... 110969 files and directories currently installed.)
Preparing to replace percona-
* Stopping MySQL (Percona Server) mysqld [ OK ]
* Stopping MySQL (Percona Server) mysqld [ OK ]
Unpacking replacement percona-
Preparing to replace percona-
Unpacking replacement percona-
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up percona-
Setting up percona-
* Stopping MySQL (Percona Server) mysqld [ OK ]
Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://
* Starting MySQL (Percona Server) mysqld [ OK ]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing percona-
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
percona-
E: Sub-process /usr/bin/dpkg returned an error code (1)
The only way around this is to edit /var/lib/
# Automatically added by dh_installinit
if [ -x "/etc/init.d/mysql" ]; then
update-rc.d mysql defaults 19 21 >/dev/null
# if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
# invoke-rc.d mysql start || exit $?
# else
# /etc/init.d/mysql start || exit $?
# fi
fi
Then, apt-get upgrade again, which will succeed but fail to start the server (as expected):
root@piro:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up percona-
* Stopping MySQL (Percona Server) mysqld [ OK ]
Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@piro:
Related branches
- Ignacio Nin (community): Needs Resubmitting
- Alexey Kopytov (community): Approve
- Laurynas Biveinis (community): Needs Information
- Stewart Smith: Pending requested
-
Diff: 28 lines (+9/-1)2 files modifiedbuild/debian/changelog (+8/-0)
build/debian/rules (+1/-1)
- Ignacio Nin (community): Needs Resubmitting
- Alexey Kopytov (community): Approve
- Laurynas Biveinis (community): Needs Information
- Stewart Smith: Pending requested
-
Diff: 28 lines (+9/-1)2 files modifiedbuild/debian/changelog (+8/-0)
build/debian/rules (+1/-1)
- Ignacio Nin (community): Needs Resubmitting
- Alexey Kopytov (community): Approve
- Stewart Smith (community): Needs Fixing
-
Diff: 28 lines (+9/-1)2 files modifiedbuild/debian/changelog (+8/-0)
build/debian/rules (+1/-1)
Changed in percona-server: | |
assignee: | nobody → Ignacio Nin (ignacio-nin) |
Changed in percona-server: | |
importance: | Undecided → Medium |
Same thing happens if I upgrade to 5.5:
root@miho: /home/mrten# apt-get install percona- server- client- percona- server- server- percona- server- client- 5.5 percona- server- server- 5.5 template- perl server- common- 5.5 server- client percona- server- client- 5.1 percona- server- common percona- server- server percona- server- server- 5.1 server- client- 5.5 percona- server- common- 5.5 percona- server- server- 5.5 repo.percona. com/apt/ lucid/main percona- server- common- 5.5 5.5.23- rel25.3- 240.lucid [2,740B] repo.percona. com/apt/ lucid/main percona- server- client- 5.5 5.5.23- rel25.3- 240.lucid [19.9MB] repo.percona. com/apt/ lucid/main percona- server- server- 5.5 5.5.23- rel25.3- 240.lucid [35.9MB] server- client ... server- server ... server- server- 5.1 ... server- client- 5.1 ... server- common ... 0.3.107- 3ubuntu2_ amd64.deb) ... ent18_5. 5.23-rel25. 3-240.lucid_ amd64.deb) ... server- common- 5.5. server- common- 5.5 (from .../percona- server- common- 5.5_5.5. 23-rel25. 3-240.lucid_ amd64.deb) ... server- client- 5.5. server- client- 5.5 (from .../percona- server- client- 5.5_5.5. 23-rel25. 3-240.lucid_ amd64.deb) ... server- server- 5.5. server- server- 5.5 (from .../percona- server- server- 5.5_5.5. 23-rel25. 3-240.lucid_ amd64.deb) ... info/mysql. info.gz'
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libhtml-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libaio1 libmysqlclient18 percona-
Suggested packages:
tinyca
The following packages will be REMOVED:
percona-
The following NEW packages will be installed:
libaio1 libmysqlclient18 percona-
0 upgraded, 5 newly installed, 5 to remove and 0 not upgraded.
Need to get 55.8MB/57.8MB of archives.
After this operation, 24.0MB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 55.8MB in 4min 8s (225kB/s)
Preconfiguring packages ...
(Reading database ... 43013 files and directories currently installed.)
Removing percona-
Removing percona-
Removing percona-
* Stopping MySQL (Percona Server) mysqld [ OK ]
Removing percona-
Removing percona-
Processing triggers for man-db ...
Selecting previously deselected package libaio1.
(Reading database ... 37583 files and directories currently installed.)
Unpacking libaio1 (from .../libaio1_
Selecting previously deselected package libmysqlclient18.
Unpacking libmysqlclient18 (from .../libmysqlcli
Selecting previously deselected package percona-
Unpacking percona-
Selecting previously deselected package percona-
Unpacking percona-
Selecting previously deselected package percona-
Unpacking percona-
Processing triggers for install-info ...
install-info: warning: no info dir entry in `/usr/share/
Processing triggers for man-db ...
Setting up libaio1 (0.3.107-3ubuntu2) ...
Setting up libmysqlclient18 (5.5.23- rel25.3- 240.lucid) ...
Setting up percona- server- common- 5.5 (5.5.23- rel25.3- 240.lucid) ...