Bug #97295 | Ubuntu 19.10 upgrade from 5.7.27 to 8.0.17 failed | ||
---|---|---|---|
Submitted: | 19 Oct 2019 1:54 | Modified: | 13 Nov 2019 8:55 |
Reporter: | Cory Cohen | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Data Dictionary | Severity: | S3 (Non-critical) |
Version: | 8.0.17, 8.0.18 | OS: | Ubuntu (Ubuntu 19.10) |
Assigned to: | CPU Architecture: | x86 | |
Tags: | 19.04, 19.10, 5.7.27, 8.0.17, mediawiki, ubuntu, upgrade |
[19 Oct 2019 1:54]
Cory Cohen
[23 Oct 2019 13:17]
MySQL Verification Team
Hello Cory Cohen, Thank you for the report. Observed this issue on OL7 with binary tarball packages and when upgrading from 5.7.27->8.0.17/8.0.18 with one of the schema dir was missing. regards, Umesh
[23 Oct 2019 13:18]
MySQL Verification Team
Upgrading from 5.7.27->8.0.17/8.0.18
Attachment: 97295.results (application/octet-stream, text), 24.53 KiB.
[24 Oct 2019 21:51]
Cory Cohen
I eventually recovered my configuration by: * building 5.7.27 from source * starting the 5.7.27 server * dumping the database in question * shutting down the 5.7.27 server * restarting 8.0.17 (initializing a completely new data directory) * restoring the 5.7.27 dump In the end this solution wasn't that hard, but for a MySQL novice who has mostly just been applying apt package updates until now, the upgrade went a little less smoothly than I had hoped. ;-) I presume that your attachment is a cleaner demonstration of the bug, but I didn't completely understand it. Does this mean that that there's no easier way to recover in the meantime? My solution would have been more difficult if I'd been unable or unwilling to discard my entire data directory. I also encountered some authentication issues related to improved security in 8.0.17 that I'm not 100% certain I handled appropriately. Again, I think I'm ok now, but this might be a problem for people about to upgrade to Ubuntu 19.10 soon. I jumped the gun by a few days when I accepted the "development" upgrade, but my understanding is that this process is near to "release"...
[13 Nov 2019 8:55]
Sivert Sørumgård
Posted by developer: Files have been manipulated directly in the data directory (copied/renamed/removed); and hence, the necessary meta data changes have not been done. The server itself is not able to correct this situation. We will consider updating the 'Upgrade checker' utility with a check to catch situations like this before attempting upgrade.