[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
Just found the root cause. I leave mysql service disabled (using it only for some testing). So 'invoke-rc.d mysql start' is just a no-op in that case and since post-install script assume that the service is enabled and running upon start, it fail all time it require mysqld running! No more mysql_upgrade error 11 with mysql.service correctly enabled! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
Not that this upgrade error is after a clean install of Yakketty during an 'apt full-upgrade'. version info from dpkg.log: upgrade mysql-server:all 5.7.16-0ubuntu0.16.10.1 5.7.17-0ubuntu0.16.10.1 ** This bug is no longer a duplicate of bug 1577712 mysql_upgrade is called twice concurrently on upgrade from 14.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
Hi all. I'm on Yakketty but still have this error 11 in mysql_upgrade. According to /etc/mysql/debian-start, I've got the latest version with patch from bug #1577712. So this bug is not related to bug #1577712 and dupplicate should be remove. After some tweak of mysql-server-5.7.postinst script, I saw that `invoke start` does nothing and dont start the daemon. An added 'invoke status' before the 'mysql_upgrade' call return: invoke status ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled) Active: inactive (dead) invoke-rc.d: initscript mysql, action "status" failed. 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: erreur de traitement du paquet mysql-server-5.7 (--configure) : le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1 dpkg: des problèmes de dépendances empêchent la configuration de mysql-server : mysql-server dépend de mysql-server-5.7 ; cependant : Le paquet mysql-server-5.7 n'est pas encore configuré. Aucun rapport « apport » n'a été créé car le message d'erreur indique une erreur consécutive à un échec précédent. dpkg: erreur de traitement du paquet mysql-server (--configure) : problèmes de dépendances - laissé non configuré Des erreurs ont été rencontrées pendant l'exécution : mysql-server-5.7 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
*** This bug is a duplicate of bug 1577712 *** https://bugs.launchpad.net/bugs/1577712 ** This bug is no longer a duplicate of bug 1571764 mysqld fails to start after upgrade: performance_schema definition errors ** This bug has been marked a duplicate of bug 1577712 mysql_upgrade is called twice concurrently on upgrade from 14.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
*** This bug is a duplicate of bug 1571764 *** https://bugs.launchpad.net/bugs/1571764 ** This bug has been marked a duplicate of bug 1571764 mysql upgrade fails when going from 5.5 to 5.7 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
>From log: Setting up mysql-server-5.7 (5.7.11-0ubuntu6) ... Installing new version of config file /etc/apparmor.d/usr.sbin.mysqld ... Installing new version of config file /etc/init.d/mysql ... Installing new version of config file /etc/init/mysql.conf ... Installing new version of config file /etc/logrotate.d/mysql-server ... Installing new version of config file /etc/mysql/debian-start ... update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode insserv: warning: script 'orientdb' missing LSB tags and overrides insserv: script virtualbox: service vboxdrv already provided! insserv: script virtualbox: service virtualbox already provided! insserv: warning: script 'screen-cleanup' missing LSB tags and overrides insserv: Default-Start undefined, assuming empty start runlevel(s) for script `screen-cleanup' insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `screen-cleanup' 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: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1574017] Re: mysql error during upgrade from ubuntu 14 - 16
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: mysql-5.7 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1574017 Title: mysql error during upgrade from ubuntu 14 - 16 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574017/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs