[Bug 1567695] [NEW] mysql-server-5.7.postinst is influenced by $HOME, causing installation hangs
Launchpad Bug Tracker
1567695 at bugs.launchpad.net
Mon Apr 11 16:23:41 UTC 2016
You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):
Related bug: bug 1567696. This bug is to track that we are influenced by
$HOME, not specifically .my.cnf.
mysql-server-5.7 version: 5.7.11-0ubuntu4
Steps to reproduce:
As normal user:
cat > ~/.my.cnf <<EOT
[client]
user = root
password = foo
EOT
sudo apt-get install -y mysql-server-5.7
Every time (three times) it prompts for a root password, just press
Enter (ie. set a blank password).
Expected behaviour: apt-get finishes.
Actual behaviour:
mysql-server-5.7.postinst hangs on:
update-alternatives: using /etc/mysql/mysql.cnf to provide
/etc/mysql/my.cnf (my.cnf) in auto mode
/var/log/mysql/error.log reports:
2016-04-07T23:12:37.299093Z 0 [Note] Execution of init_file '/var/lib/mysql-files/tmp.LTuPIaNrV0' started.
2016-04-07T23:12:37.299499Z 1 [ERROR] 1524 Plugin 'auth_socket' is not loaded
2016-04-07T23:12:37.299577Z 0 [Note] Execution of init_file '/var/lib/mysql-files/tmp.LTuPIaNrV0' ended.
2016-04-07T23:12:37.299631Z 0 [Note] mysqld: ready for connections.
Version: '5.7.11-0ubuntu5' socket: '/tmp/tmp.FFBBqKBiRF/mysqld.sock' port: 3306 (Ubuntu)
Workaround:
unset HOME in the postinst fixes it.
Comments:
There may be a second bug here, which is that the postinst is influenced
by a ~/.my.cnf. What happens if ~root/.my.cnf does something similar?
** Affects: mysql-5.7 (Ubuntu)
Importance: Critical
Status: Triaged
** Tags: mysql-5.7-transition patch
--
mysql-server-5.7.postinst is influenced by $HOME, causing installation hangs
https://bugs.launchpad.net/bugs/1567695
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list