Nakama automatically disconnect the database connection

Here i have a database in the EC2 instance. Sometimes the automatic database is disconnected

{“level”:“error”,“ts”:“2026-01-07T03:49:25.824Z”,“caller”:“server/core_account.go:91”,“msg”:“Error retrieving user account.”,“error”:“context canceled”}{“level”:“error”,“ts”:“2026-01-07T03:49:30.215Z”,“caller”:“server/core_friend.go:235”,“msg”:“Error retrieving friends.”,“error”:“context canceled”}{“level”:“error”,“ts”:“2026-01-07T03:49:31.045Z”,“caller”:“server/core_authenticate.go:193”,“msg”:“Error looking up user by device ID.”,“error”:“context canceled”,“deviceID”:“e460d989-6e09-4f21-a60d-6fac67102d98”,“username”:“LqrORIXmpQ”,“create”:false}

I’m not able to debug that issue. I think when we, the user, connect to a new socket (auth), it comes. Can you suggest a few cases?

Hi @developerdinno,

Unfortunately we cannot help with custom deployments due to the number of variables at play. I’d start by inspecting the database logs, perhaps they provide some insight.

Best.

1 Like