- Newest
- Most votes
- Most comments
Hi again, I tried the CLI snapshot one more time and verified with the describe-db-snapshots that before the upgrade the copy had the status "Available". Tried to apply the upgrade once again, it took the status of "upgrading", followed after a few minutes into "Failed".
Ok - I went with another route and restored a copy snapshot of the test db instance (the initial, still existing 5.7.44 one). For this I enabled the error logs into cloudwatch. Then I went to "Modify" the new db instance, and changed the engine version from 5.7.44 to 8.0.35, kept other parameters as they were and pressed continue to start. This did not ultimately go through, but I was able now to look at the error at cloudwatch - it had failed the PrePatchCompatibility, and the specific failure was with
mysql.flush_rewrite_rules - at line 5,8: unexpected token 'QUERY'
Looks like an issue someone else has had too, and gotten resolved with a bit of help, referencing this post https://repost.aws/questions/QU_jfgd2gURk6TzL8JcQCO9Q/error-upgrading-mysql-5-7-to-8-0
"the mysql.flush_rewrite_rules procedure had to be dropped by the internal AWS RDS development team" - what would be the way to have this applied for my db too, if that is the preventing issue?
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html Did you look at RDS logs, Look for entries around the time the upgrade failed.
Thanks SriniV, I did have a look there, but no entries related to these operations unfortunately - should the snapshot modification logs appear there (database instance logs) or am I not looking at the right place?
Thanks for the response, wondering did you try describe-db-snapshots just to make sure CLI is working correctly for the snapshot created. Certainly we need to see error logs, to identify problem, hopefully the identifier is a valid string with format rules (https://docs.aws.amazon.com/cli/latest/reference/rds/create-db-snapshot.html)