[MDEV-13896] Upgraded to 10.2.8 on Centos 7.4 ibdata error Created: 2017-09-23 Updated: 2021-03-11 Resolved: 2021-03-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.2.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Jeffrey Smith | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 2 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 7.4.1708 (Core) |
||
| Issue Links: |
|
||||||||
| Description |
|
did a yum update to install the latest version and rebooted my machine, now maridb refuses to start.
Its saying permission are wrong on ibdata1 though they are set as owned by the mysql user.
SELinux is also currently set as permissive so cant be that.
also seems I'm not the only one https://stackoverflow.com/questions/46345170/mariadb-ibdata1-file-cannot-be-written# |
| Comments |
| Comment by Lydie Decoker [ 2017-09-28 ] |
|
I got the exact same issue. After upgrading my Mariadb to 10.2.9-1, I can not restart it. If I tried to restart using the normal datadir (I still have my old files there), it does restart. Another test : If I do start mysql via command line (mysqld -u mysql), mariadb starts. From my point of view, this is a quite blocking issue as this does crashed everything. Any help / reaction would be appreciated. Thx! |
| Comment by Elena Stepanova [ 2017-09-28 ] |
|
jeffsmith82, ldecoker, from which version did you upgrade? I see that both of you use datadir under /home. By default, home is protected, if you want to use it, you need to remove the flag. See more details in But it's not a recent change, it was made in 10.1.16 (which means over a year ago), so it's not clear why you have only started experiencing it now, unless you upgraded from 5.5 or 10.0 or some very old release of 10.1. Was it the case? |
| Comment by Lydie Decoker [ 2017-09-28 ] |
|
Elena, Thx for the reply. The ProtectHome variable was already set to false before the upgrade. As said, everything was working well with the datadir set to /home. I was already running the 10.2 version before the yum update. So this was a minor upgrade in my case. |
| Comment by Lydie Decoker [ 2017-09-28 ] |
|
Elena, Looks like the problem comes from the ProtectSystem. It was set to "full". I forced it to false and now MariaDb is starting. Thx! |
| Comment by Sergey Vojtovich [ 2017-09-28 ] |
|
FYI: ProtectSystem= ProtectHome= |
| Comment by Elena Stepanova [ 2017-11-05 ] |
|
svoj, from your explanation above, it's unclear why ProtectSystem=full would affect server startup (via the service). I can't think what it might need to modify under /etc/. Do you have any ideas on that? |
| Comment by Sergey Vojtovich [ 2017-11-22 ] |
|
elenst, it is unclear to me either. We probably need to try reproducing this on our side. Might be systemd bug? |
| Comment by Daniel Black [ 2021-03-11 ] |
|
Looks like a ProtectHome=yes being default issue. Fix per documentation: https://mariadb.com/kb/en/systemd/#configuring-access-to-home-directories |