[MDEV-27888] Errors upgrading from Mariadb 10.2.15 to 10.6.7 Created: 2022-02-18 Updated: 2022-04-04 Resolved: 2022-04-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Upgrades |
| Affects Version/s: | 10.6.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Ritwik C Pandav | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Environment: |
RHEL 3.10.0-1160.25.1.el7.x86_64 |
||
| Description |
|
Was performing an upgrade from Mariadb 10.2.15 to 10.6.7, by first completely unistalling and then installing the upgraded version:
Proceeded to start mariadb service:
Run upgrade:
Got the following errors:
Reading from other similar issues, attempted to fix the definer does not exist by running the following commands:
Re-running mysql upgrade, see the permission denied errors only:
Here are the privileges for /tmp:
|
| Comments |
| Comment by Ritwik C Pandav [ 2022-02-21 ] |
|
Added config to read another temp directory in /etc/my.cnf [mysqld] Where [root@xsdclxmdndb001 logsdb]$ namei -om /logsdb/ This seems to work |
| Comment by Ritwik C Pandav [ 2022-02-21 ] |
|
Noticed the following errors in the mysql upgrade script:
Any idea why this happens? What's the repercussion of this error and how to avoid it? |
| Comment by Sergei Golubchik [ 2022-02-22 ] |
|
First, try to select from mysql.user. If it works — the view is fine. If not: |
| Comment by Elena Stepanova [ 2022-03-05 ] |
|
FLUSH PRIVILEGES or server restart should do the trick, I think. The mystery here is why the permission denied error occurred. The sticky bit alone doesn't cause it, not even on RHEL 7 (I checked). But assuming there was a valid reason for permission denied errors, the rest seems clear enough.
Maybe it's possible to reshuffle mysql_upgrade actions a bit or make it less tolerant to intermediate errors (so that it didn't create views after failing to create the definer, for example), but I'm not sure it's worth the risk of causing some other problems. It would be still good to understand the cause of the "access denied" errors. twix1312, did you ever figure out why they were happening? |