package mysql-server-5.7 5.7.16-0ubuntu0.16.04.1 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 1

Bug #1637701 reported by Ivan Podporin
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
mysql-5.7 (Ubuntu)
Expired
Undecided
Stefan ponomarenko

Bug Description

reboot pc

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: mysql-server-5.7 5.7.16-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-46.67-generic 4.4.24
Uname: Linux 4.4.0-46-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia wl
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
Date: Wed Oct 26 05:28:01 2016
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
InstallationDate: Installed on 2013-11-09 (1084 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
Logs.var.log.daemon.log:

Logs.var.log.mysql.error.log:
MySQLConf.etc.mysql.conf.d.mysql.cnf: [mysql]
MySQLConf.etc.mysql.conf.d.mysqldump.cnf:
 [mysqldump]
 quick
 quote-names
 max_allowed_packet = 16M
MySQLConf.etc.mysql.mysql.conf.d.mysqld_safe_syslog.cnf:
 [mysqld_safe]
 syslog
MySQLVarLibDirListing: ['shard2', 'auto.cnf', 'performance_schema', 'ib_buffer_pool', 'sys', 'mysql', 'ib_logfile1', 'debian-5.7.flag', 'ib_logfile0', 'mysql_upgrade_info', 'debian-5.6.flag', 'shard1', 'ibdata1', 'debian-5.5.flag', 'phpmyadmin']
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.4.0-46-generic root=UUID=78a94456-a1e9-47bb-87f0-d8dbe7ce9590 ro quiet splash
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.1
 apt 1.2.14
SourcePackage: mysql-5.7
Title: package mysql-server-5.7 5.7.16-0ubuntu0.16.04.1 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ivan Podporin (podporin-ivan) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mysql-5.7 (Ubuntu):
status: New → Confirmed
Revision history for this message
Joshua Powers (powersj) wrote :

From log:

insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server

Revision history for this message
Joshua Powers (powersj) wrote :

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

You may want to be sure that mysql is actually running before doing the upgrade. Is it failing to start?

This looks like local corruption or misconfiguration, rather than a bug in Ubuntu. You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug rather than a problem specific to your system, and then change the bug status back to New.

Without steps to reproduce the problem, there is little that can be done on this bug. I'll mark this bug as Incomplete for now, pending someone else confirming that it is a bug or unless someone can provide steps to reproduce.

Please do report any other bugs you may find.

Changed in mysql-5.7 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Ivan Podporin (podporin-ivan) wrote :

hi
gremlin@Zigatron:~$ service mysql start
gremlin@Zigatron:~$ sudo apt-get upgrade
Настраивается пакет mysql-server-5.7 (5.7.16-0ubuntu0.16.04.1) …
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: ошибка при обработке пакета mysql-server-5.7 (--configure):
 подпроцесс установлен сценарий post-installation возвратил код ошибки 1

remove and install again does not help
gremlin@Zigatron:~$ sudo apt-get install mysql-server
update-alternatives: используется /etc/mysql/mysql.cnf для предоставления /etc/mysql/my.cnf (my.cnf) в автоматическом режиме
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: ошибка при обработке пакета mysql-server-5.7 (--configure):
 подпроцесс установлен сценарий post-installation возвратил код ошибки 1
dpkg: зависимости пакетов не позволяют настроить пакет mysql-server:
 mysql-server зависит от mysql-server-5.7, однако:
  Пакет mysql-server-5.7 пока не настроен.

dpkg: ошибка при обработке пакета mysql-server (--configure):
 проблемы зависимостей — оставляем не настроенным
Обрабатываются триггеры для libc-bin (2.23-0ubuntu5) …
Отчёты apport не записаны, так как сообщение об ошибке указывает на повторную ошибку от предыдущего отказа.
                           При обработке следующих пакетов произошли ошибки:
 mysql-server-5.7
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Joshua Powers (powersj) wrote :

Where are you installing mysql from? I did not notice this last time I looked but these values in the init.d file are not correct:

insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).

Defaults should look like:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6

Did you modify the file or the install in some manner? Is this a fresh install?

Revision history for this message
Ivan Podporin (podporin-ivan) wrote :

Mysql from ubuntu repository. I tried reinstall mysql but it does not helps.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

For the sake of completeness maybe "dpkg --verify mysql-server-5.7" ?
To check for accidential changes?

But I'd expect the issue to be more around: /var/run/mysqld/mysqld.sock access issue.
And that appears to me to be more of a fail-to-start server issue, and due to that the upgrade not being able to reach it.

Normally on mysql bugs there is also an error log of the mysql server which is missing here.
This should have much better info why the server failed to start.
http://askubuntu.com/questions/812001/how-to-see-mysql-error-logs

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mysql-5.7 (Ubuntu):
status: Incomplete → Expired
Changed in mysql-5.7 (Ubuntu):
assignee: nobody → Stefan ponomarenko (eightspb)
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.