[MDEV-10519] MariaDB fails to start after upgrade from 10.1.14 - 10.1.16 (InnoDB Encryption) Created: 2016-08-08 Updated: 2016-08-17 Resolved: 2016-08-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Encryption, Storage Engine - InnoDB |
| Affects Version/s: | 10.1.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Walters | Assignee: | Sergey Vojtovich |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos7 Virtual Machine running Web Application. SELinux is Enabled |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I have a web server that was running without any issues until I ran Yum updates which upgraded MariaDB from 10.1.14 to 10.1.16 . After the restart, I noticed MariaDB would not start. Looking at the log file I see this:
So first step I tried was updating the permissions of the "/home/mbd/" directory. I tried multiple settings with no luck, such as:
I then tried updating SELinux rules, but that did not help:
Next option I tried was moving the "keys.enc" file to the "/tmp/" directory. Doing this did allow MySQL to start. I however cannot have the "keys.enc" living in the /tmp directory.
Does anyone know why this is happening? |
| Comments |
| Comment by Elena Stepanova [ 2016-08-08 ] | |||||||
|
Is it related to | |||||||
| Comment by Sergei Golubchik [ 2016-08-09 ] | |||||||
|
I believe it is. mwalters12, this is caused by I think this is exactly your case. To override this default setup, create a file under /etc/systemd/system/mariadb.service.d/ with necessary systemd settings. | |||||||
| Comment by Michael Walters [ 2016-08-09 ] | |||||||
|
Thank you Sergei! I was able to fix MariaDB failing to start with the commands below:
Hope this helps anyone else that may run into this issue. Now I must figure out why my application is unable to connect to the database.... Regards, | |||||||
| Comment by Michael Walters [ 2016-08-12 ] | |||||||
|
Would anyone have an idea why my application is unable to login to MySQL after the upgrade? The error message I recieve is this: The file has not been changed and all the values are still present. Is there another parameter I am missing regarding this MariaDB upgrade? | |||||||
| Comment by Michael Walters [ 2016-08-12 ] | |||||||
|
I found the issue it was related to another systemd update from MariaDB. The following allows the application to connect to the database:
| |||||||
| Comment by Sergey Vojtovich [ 2016-08-17 ] | |||||||
|
I agree with Sergei regarding "ProtectHome=true", it looks reasonable. |