mysql socket no longer accessible during overlayroot
Bug #1714262 reported by
Cody Spraker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned | ||
mysql-5.7 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Running on a Ubuntu 16.04.2 LTS
install mysql through apt-get
successfully run 'mysql' and connect
add "tmpfs" to /etc/overlayroo
reboot the system to engage overlay
attempt 'mysql' command and get a fail to connect to socket error
this is repeatable by added and removing the overlay
description: | updated |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
UPDATE: I have found some answers regarding possible solutions and causes.
It looks like this is rooted in Overlayfs only implementing a subset of the POSIX standards.
There are files, necessary to mysql, that can't be created due to abilities outside of the POSIX standards implemented by Overlayfs.
Overlayroot utilizes Overlayfs which is why the bug was seen here.
The simplest fix I see is to run the following commands:
find /var/lib/mysql -type f -exec touch {} \;
service restart mysql
This will fix the issue BUT WILL NOT persist between system restarts (even if written in chroot since it's part of the application startup).
It must be run on every boot.
My sources of info are the following:
https:/ /github. com/sjp38/ cloudsuite/ commit/ e48bc2434bc2d15 fcec7f496245726 a6a35ca000# diff-0ba6a4ef35 8d86a1f4610bc46 f9f5e5c
https:/ /docs.docker. com/engine/ userguide/ storagedriver/ overlayfs- driver/ #limitations- on-overlayfs- compatibility