mysql in lxd fails to start with systemd 233, 234: failed at step KEYRING
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd |
Fix Released
|
Unknown
|
|||
systemd (Ubuntu) |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Artful |
Fix Released
|
High
|
Dimitri John Ledkov |
Bug Description
artful unprivileged container on a xenial host
xnox hinted that https:/
With systemd 233, mysql-server-5.7 in an artful lxd unprivileged container fails to start:
Process: 6460 ExecStartPre=
May 16 12:20:08 artful-mysql systemd[1]: mysql.service: Failed to set invocation ID on control group /system.
(...)
May 16 12:20:08 artful-mysql systemd[6460]: mysql.service: Failed at step KEYRING spawning /usr/share/
Reproducing it on a fresh xenial kvm as host, fresh artful lxd image. We start with systemd-232 in the artful lxd:
ubuntu@
systemd:
Installed: 232-21ubuntu3
Candidate: 233-6ubuntu1
Version table:
233-6ubuntu1 500
500 http://
*** 232-21ubuntu3 100
100 /var/lib/
Then we install mysql-server-5.7:
ubuntu@
...
Setting up mysql-server-5.7 (5.7.17-0ubuntu1) ...
update-
Renaming removed key_buffer and myisam-recover options (if present)
Created symlink /etc/systemd/
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for systemd (232-21ubuntu3) ...
Which starts just fine:
ubuntu@
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
...
We then upgrade systemd:
ubuntu@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpam-systemd libsystemd0
(...)
Setting up libpam-
mysql is still running:
ubuntu@
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
(...)
But restarting mysql fails:
ubuntu@
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
ubuntu@
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/
More logs attached.
summary: |
- mysql fails to start with systemd 233: failed at step KEYRING + mysql in lxd fails to start with systemd 233: failed at step KEYRING |
Changed in systemd (Ubuntu Artful): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in systemd (Ubuntu Artful): | |
milestone: | ubuntu-17.10 → ubuntu-17.07 |
status: | New → Triaged |
Changed in systemd (Ubuntu Artful): | |
milestone: | ubuntu-17.07 → ubuntu-17.08 |
Changed in systemd: | |
status: | Unknown → New |
Changed in systemd: | |
status: | New → Fix Released |
tags: | added: id-597a8312028fa1cd2c156565 |
Changed in systemd (Ubuntu Artful): | |
status: | Triaged → Fix Committed |
/var/log/syslog of the container