goryn-clade / pathfinder-containers

A Docker-compose solution for Pathfinder mapping tool using Traefik
Other
62 stars 66 forks source link

SQLSTATE[HY000] [2006] MySQL server has gone away #97

Closed HaxtonFale closed 1 month ago

HaxtonFale commented 1 month ago

When trying to set up Pathfinder on my machine, I get to the setup page and see the error above for both DB connections. I have tried all sorts of password combinations, but they just won't work. Could it be related to me also having a mysql instance on the same machine? Would it simplify things if I instead used the on-prem one?

Also, since I use nginx for other services as well as HTTPS on the same machine, I removed Traefik as per #72.

HaxtonFale commented 1 month ago

Turns out the issue was caused by not having a root password for DB set. The container exits with status 1 without the right params, requesting that either the password is set or a "no root password" environment variable is added.