New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mariadb requires 'read' permission on parent folders (/var/lib) #1355
Comments
MariaDB 10.1 works perfectly well with current permissions. The problem must have been elsewhere. I'm honestly surprised you were able to still upgrade Wheezy to Jessie, since Wheezy repositories for packages no longer exists, so it's not even possible to install/fix anything. A miracle, actually. See: |
Wow, I guess I'm lucky I'm not sure what 'current permissions' should be, in my case /var was drwx--x--x (root:root) To reproduce
|
More important — barracuda up-stable sets that /var permissions back to drwx--x--x (711) here and here
If mysql is running when permissions change, then it continues to run, just throws 'read only' errors. some sites don't work until chmod +r /var My other Debian machines have drwxr-xr-x (755) permissions for /var I can't find many issues like this but here's one. |
These permissions are correct and they don’t interfere in any way. Your instance problem must be elsewhere, perhaps related to no longer supported major system upgrade or even file system issue. Please check ownership on your databases binary files and directories, not permissions. |
I understand that you can’t reproduce my setup, but I’m certain it is permissions related. |
Nope didn't help |
Have you checked ownership, not just permissions? MariaDB doesn’t require any new permissions. |
I compared permissions/ownership to my other systems, everything looks fine.
I can't use auditd (no support) so I can't check who/when tries to read /var
When tables are open they work fine, no 'read only' errors even if /var is unreadable for mysql. This version is that I have problems with
This version doesn't care if /var is 755 or 711, it restarts fine with both. It's on another system so there may be other differences.
|
I just upgraded Wheezy to Jessie using _WHEEZY_TO_JESSIE=YES
MariaDB was probably upgraded too and it couldn't start during 'barracuda up-stable'
Long story short: this new MariaDB (mariadb-server-10.1) requires 'read' access on all folders down to its data files (/var/lib/mysql/...)
In my case the var folder was drwx--x--x 15 root root 4.0K Feb 26 15:13 var/
Now sure why MariaDB would want to read something above its datadir but it does.
chmod +r /var fixed the problem and mysqld finally started (4 hours spent).
Not easy to track down this issue because actually mysql user can read/write/delete ./mysql/*
I think barracuda should be checking for permissions if there's no real fix.
The text was updated successfully, but these errors were encountered: