2016-04-07 23:18:58 |
Robie Basak |
bug |
|
|
added bug |
2016-04-07 23:19:10 |
Robie Basak |
bug |
|
|
added subscriber Lars Tangvald |
2016-04-07 23:22:43 |
Robie Basak |
tags |
|
mysql-5.7-transition |
|
2016-04-07 23:22:49 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Server Team |
2016-04-07 23:22:51 |
Robie Basak |
mysql-5.7 (Ubuntu): milestone |
|
ubuntu-16.04 |
|
2016-04-07 23:23:39 |
Robie Basak |
description |
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? |
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? |
|
2016-04-08 02:35:01 |
Ryan Beisner |
bug |
|
|
added subscriber Ryan Beisner |
2016-04-11 14:32:41 |
Lars Tangvald |
attachment added |
|
0001-Client-commands-in-postinst-should-ignore-custom-con.patch https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1567695/+attachment/4632779/+files/0001-Client-commands-in-postinst-should-ignore-custom-con.patch |
|
2016-04-11 16:23:32 |
Ubuntu Foundations Team Bug Bot |
tags |
mysql-5.7-transition |
mysql-5.7-transition patch |
|
2016-04-11 16:23:41 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2016-04-12 07:45:11 |
jasonz |
bug |
|
|
added subscriber jasonz |
2016-04-14 10:26:54 |
Launchpad Janitor |
mysql-5.7 (Ubuntu): status |
Triaged |
Fix Released |
|