Flask app encountering MySQLdb.OperationalError (2002)

I am encountering this error while trying to submit a register form from my site
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

the specific error message from the log is
MySQLdb.OperationalError: (2002, “Can’t connect to MySQL server on ‘did***.******.us-east-1.rds.amazonaws.com’ (110)”)

some information have been stared to avoid compromising the db

Hi there,

Have you configured your RDS database to allow access from Render’s static outbound IP addresses?

Regards,

Keith
Render Support, UTC+10 :australia:

Please how do I do that?

Hi there,

It can be done via a security group: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html

Regards,

Keith
Render Support, UTC+10 :australia:

Thanks Again
I have tried this option but still did not work

Hi there,

Can you open a ticket directly with is? I think we are going to need to ask for details that you don’t want to publish on a public forum.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.