Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
ECONNRESET when deploying to docker swarm with mysql 5.7 #9739
When deploying ghost on docker swarm with mysql 5.7.22, I got the following error after some time of inactivity.
The bug is very similar to #9694
Here is the full trace from logs:
Here is what I did, I am not sure if the bug occurs also in non-swarm mode.
docker network create --driver overlay --attachable system_mysql_attachable-net
docker stack deploy -c mysql-stack.yml mysql
docker stack deploy -c ghost-stack.yml ghost
This bug is probably related to knex. Current ghost uses 0.14.6. However, I don't see any fix related to this problem in last 0.15 release: https://github.com/tgriesser/knex/blob/master/CHANGELOG.md
Many questions can be answered by reviewing our docs for self-hosters, our theme API, or our public API. If you can't find an answer then our forum is a great place to get community support, plus it helps create a central location for searching problems/solutions.
FYI: Many projects have their own support guidelines and GitHub will highlight them for you, or the project owners will use issue templates to point you in the right direction, please read them before opening issues
My apologies, I just realize that docker environment is not supported, so I guess you can close the issue.
For those interested, I solved the problem by pinging periodically the server (not ideal solution, but easy one).
I found this solution: