phantom-of-the-capitol icon indicating copy to clipboard operation
phantom-of-the-capitol copied to clipboard

Aborted connection '#' to db: ... Got an error reading communication packets

Open mr-sk opened this issue 7 years ago • 2 comments

Hello,

My .env has MYSQL_HOST=db in my .env and when I run sudo docker-compose up --build I get:

db_1 | 2017-06-21T14:27:52.538551Z 4 [Note] Aborted connection 4 to db: 'phantom_dc_development' user: 'phantom_dc' host: '172.18.0.3' (Got an error reading communication packets)

Any help is appreciated,

mr-sk avatar Jun 26 '17 17:06 mr-sk

This happens for some reason whenever the app disconnects from the database. Several connections are made/closed in the entrypoint.sh script (to check that the database exists, possibly creating it if it doesn't, then updating legislator form data) so you will see a few of these messages when you start the container. They aren't errors per se, the database is aborting connections that the app already closed. Are you seeing any issues or just these lines in the log?

wioux avatar Jun 27 '17 18:06 wioux

I ended up being able to work around the same problem by just standing up an external MySQL database and pointing to that. I don't know if perhaps in the current configuration there's some docker-internal networking that's not quite right.

nilsjesper avatar Jul 11 '17 15:07 nilsjesper