Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RDS Upgrade Fails despite prepatchcompatibility showing no errors

Tags:

We are looking to upgrade our RDS Mysql From 5.7 to 8.0.11. When try to modify and upgrade the instance from AWS UI we get a

Database instance is in a state that cannot be upgraded: PreUpgrade checks failed: RDS detected Incompatibilities upgrading to MySQL 8.0.15. More details can be found in the PrePatchCompatibility.log file, accessible in the 'logs' section below.

error in the recent events area but when we download the PrePatchCompatibility.log the only messages we see are

3) Usage of utf8mb3 charset The following objects use the utf8mb3 character set. It is recommended to convert them to use utf8mb4 instead, for improved Unicode support. More Information: https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8mb3.html

schema.table.column - column's default character set: utf8

I've looked this message up and the compatibility issues associated with it and this is supposed to be a warning. The bottom of the log shows

Errors: 0 Database Objects Affected: 261

From everything I've Read this should work.

Has anyone successfully upgraded from mysql 5.7 to 8.0 in aws RDS? Would I actually have to change all of my columns from utf8mb3 to utf8mb4 or is there something else going on?

like image 306
Henry He Avatar asked May 22 '19 13:05

Henry He


People also ask

What happens if RDS fails?

The failed state for RDS DB instances usually indicates that the hardware associated with your RDS DB instance failed, and that AWS wasn't able to recover it. If you previously configured a backup solution for your RDS DB instance, restore it from one of the following backups: An automatic or manual backup.

What are some of the common causes why you Cannot connect to a DB instance on AWS?

When you can't connect to a DB instance, the following are common causes: Inbound rules – The access rules enforced by your local firewall and the IP addresses authorized to access your DB instance might not match. The problem is most likely the inbound rules in your security group.


2 Answers

After contacting AWS support team, they disabled pre-upgrade checks for our instance. After which we were able to upgrade successfully from 5.7 to 8.0.

They have informed that AWS has a bug and patch for that is ready and will be released soon. Though they didn't provide any ETA for the same. But in case you are in hurry, you can contact them ask for the private patch (or disabling pre-upgrade checks in this case).

like image 185
Rajat Goel Avatar answered Sep 20 '22 08:09

Rajat Goel


RDS MySQL Engineer here.

This post was sent to us by an RDS customer, so I thought it would be interesting to chime in and provide you some visibility about this issue. Our team is aware of this issue, and a patch deployment was scheduled to address it. This fix will be transparent to all of our RDS MySQL customers, and will require no additional action from your side once it is released.

I would like apologize for any inconvenience this may have caused you and reiterate that we appreciate you bringing this issue to our attention, we have listened :)

With that said this may be a good time to remind you that our team is constantly monitoring our AWS Official channels such as @aws (Twitter), AWS RDS MySQL Forums (forums.aws.amazon.com/forum.jspa?forumID=60) and our support tickets of course.

We recommend you using these channels if you are looking for a faster response from us.

Best regards, Your friends from the RDS MySQL team.

like image 40
Marcello Grechi Lins Avatar answered Sep 20 '22 08:09

Marcello Grechi Lins