-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
Random ECONNRESET when talking to docker mysql #897
Comments
I have the same problems. |
Same issue here :| |
Just a heads up I was actually receiving it from another part of my application ( unrelated to MySql in the end - I believe it was puppeteer playing up in a docker environment ) so just make sure you've completely eliminated that as a case! |
Facing the same sort of problem in my docker setup Error: read ECONNRESET |
@paramsinghvc is there a reliable way to reproduce? |
The problem is related to docker swarm and pooling. Disable pooling (in knex file : pool: {min:0} ) Or check out this: |
I had the same problem until I added Example docker-compose:
Here's a link to the MariaDB documentation: |
If somebody still has this issue, try to update docker. In my case update solves the problem |
Do you use Docker Swarm? |
Nope, I was not using docker swarm |
Hi all,
I have a big issue where I randomly get ECONNRESET every 1-5 minutes when using mysql / mysql2 npm package. ( Works fine up until this point )
Environment
mysql server
running in docker, mapped to host port 3306node server
running within docker, talking to mysql via host_ip:3306Errot
Fix attempts
I've tried all sorts to try and get the connection to remain - including
Using pools
Creating a new connection on every request! ( Somehow this still gets ECONNRESET! )
I'm running out of ideas here it's stopping me being able to use this in production :(
My best assumption after trying all the above is there an issue with the TCP Keep-Alive on the socket perhaps that is only triggered when running node / mysql within docker ( I stumbled on this MR - could this be a solution? mysqljs/mysql#2110 )
The text was updated successfully, but these errors were encountered: