Bug #106382 | 5.7.37 drops support for symbolic links in the data directory | ||
---|---|---|---|
Submitted: | 4 Feb 2022 18:07 | Modified: | 7 Feb 2022 17:40 |
Reporter: | Curtis OReilly | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.7.37 | OS: | Ubuntu (18.04.6 LTS) |
Assigned to: | CPU Architecture: | Any | |
Tags: | symbolic link |
[4 Feb 2022 18:07]
Curtis OReilly
[7 Feb 2022 13:42]
MySQL Verification Team
HI Mr. OReilly, Thank you for your bug report. We have tried to repeat the behaviour that you are reporting, but we were not successful. We upgraded from 5.7.36 to 5.7.37 with an entire schema being pointed to another disk and it worked like a charm. However, in cases like yours, the operation can fail. This is because you have got the error from the operating system that the permissions are all denied. In that case, the upgrade will not work. But, that is the error of the administrator that has attempted the upgrade and not our bug. We are not able to repeat your error. We are also not prone to make errors in the installations or upgrades.
[7 Feb 2022 17:37]
Curtis OReilly
Thank you for looking into this. Good news... I found the problem. One of the symbolic links was pointing to a directory that had extra permissions enabled ("other" read/execute). Which is strange, since extra permissions do not usually cause a "permission denied" issue. So, the fix was running this: chmod o-rx /path/to/database Write "other" permissions were not enabled, but I suspect it would also be an issue, in which case the following would be safer: chmod o-rwx /path/to/database
[7 Feb 2022 17:40]
Curtis OReilly
Something else I might add... I have no way of knowing if it was the upgrade that caused this problem or if the permissions had changed while mysql was running and that any restart could have caused the issue.
[8 Feb 2022 13:32]
MySQL Verification Team
Hi, The important fact is that you have found the problem and that symbolic links are supported properly in 5.7.37. Do also note that real permissions are not those of the link , but of the target directory / file.