-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 #2149
Comments
A problem causing the server daemon to crash and recover would be my first suspicion based on this report. Recovery from a crash can -- in some cases -- be quick enough to otherwise go unnoticed, but connections would be destroyed across such an event. This query fetches the current uptime for In any event, |
That's a good thought to check @sqlbot ! @TomYeoman please let us know what you find from that. As far as some of the original post: (1) since both |
Thanks for the suggestion @sqlbot , I just tested it out but it seems that i'm not experiencing any down time when running that command after my node server times out. This would make sense as i'm able to run a node server on localhost fine ( with mysql in docker ), but only when the node server is running within docker do I experience issues. Perhaps if I post some of configuration it might help
|
So your original post was about ECONNRESET. But now you're saying ECONNTIMEOUT which is a different error. Was that just a typo or are you getting both? Is it possible to enumerate each setup you tried and which error it was you got? That may help narrow down what is going on. |
We can close this issue, I was being stupid it was another library throwing the ECONNRESET ( ended up being puppeteer with a terrible stackdump ) 😠 . Thanks for the help anyway! |
HI. I am facing the same issue, please help thanks |
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:3306Error
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? #2110 )
The text was updated successfully, but these errors were encountered: