tengen-io / server

:white_circle: Server implementation of the board game Go
MIT License
13 stars 4 forks source link

Investigate dropped db connection #12

Closed camirmas closed 5 years ago

camirmas commented 5 years ago

After leaving the server alone for a while, the first request fails, then subsequent ones succeed.

{
  "data": {
    "game": null
  },
  "errors": [
    {
      "message": "runtime error: invalid memory address or nil pointer dereference",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "game"
      ]
    }
  ]
}
camirmas commented 5 years ago

possible fix here https://serverfault.com/questions/885877/docker-swarm-database-connection-reset-by-peer

camirmas commented 5 years ago

No longer necessary since we're changing our deployments