Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mr-sk opened this issue Jun 26, 2017 · 2 comments
Open

Comments

@mr-sk
Copy link

mr-sk commented Jun 26, 2017

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,

@wioux
Copy link
Member

wioux commented Jun 27, 2017

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?

@nilsjesper
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants