Public bug reported:

Related bug: bug 1567696. This bug is to track that we are influenced by
~/.my.cnf, not specifically $HOME.

mysql-server-5.7 version: 5.7.11-0ubuntu4

Steps to reproduce:

sudo -i

Ensure $HOME is /root

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:

Delete or rename away ~root/.my.cnf.

** Affects: mysql-5.7 (Ubuntu)
     Importance: Critical
         Status: Triaged


** Tags: mysql-5.7-transition

** Changed in: mysql-5.7 (Ubuntu)
    Milestone: None => ubuntu-16.04

** Description changed:

+ Related bug: bug 1567696. This bug is to track that we are influenced by
+ ~/.my.cnf, not specifically $HOME.
+ 
  mysql-server-5.7 version: 5.7.11-0ubuntu4
  
  Steps to reproduce:
  
  sudo -i
  
  Ensure $HOME is /root
  
  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:
  
  Delete or rename away ~root/.my.cnf.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1567696

Title:
  mysql-server-5.7.postinst is influenced by ~/.my.cnf, causing
  installation hangs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1567696/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to