Reputation: 157
I've been getting the above error when using two servers to connect to the same Aurora DB.
We're running a simple Django REST Framework on Elastic Beanstalk which connects to an Aurora DB cluster. Whenever we start up the DB and test the API from the EBS server connections go through fine. However, if I then start up my local development server connecting to the same DB, I get the operational error when going to the same route on the local server.
Aborted connection ## to db: 'db_name' user: 'username' host: 'host_ip' (Got an error reading communication packets). Which seems to be pretty generic, and implies something on the dev server is closing the connection.
In addition if I open the Django shell and run a simple query with the models, the Beanstalk server will then start throwing InterfaceError(0, ''). Again this remains until the Aurora DB is rebooted.
I've dug through a number of sources but haven't found a fix yet. Anyone else have some ideas?
Version Info
Upvotes: 4
Views: 1052