# SerpentRace Backend Logs # Started: 2025-09-21T13:24:36.198Z # Max entries per file: 10000 2025-09-21T13:24:38.668Z | [STARTUP] | SerpentRace Backend starting up | Meta:{"environment":"development","port":"3000","nodeVersion":"v20.19.5","chatInactivityTimeout":"30"} 2025-09-21T13:24:38.689Z | [STARTUP] | Server started successfully | Meta:{"port":"3000","environment":"development","timestamp":"2025-09-21T13:24:38.689Z","endpoints":{"health":"/health","swagger":"/api-docs","users":"/api/users","organizations":"/api/organizations","decks":"/api/decks","chats":"/api/chats"},"websocket":{"enabled":true,"chatInactivityTimeout":"30 minutes"}} 2025-09-21T13:24:39.052Z | [CONNECTION] | Database connection established | Meta:{"connectionType":"postgresql","status":"success","type":"postgres","host":"postgres","database":"serpentrace"} 2025-09-21T13:24:39.057Z | [REQUEST] | WebSocket service initialized | Meta:{"chatTimeoutMinutes":30} 2025-09-21T13:24:39.065Z | [STARTUP] | WebSocket service initialized | Meta:{"chatInactivityTimeout":"30"} 2025-09-21T13:24:39.080Z | [STARTUP] | Redis client connected successfully 2025-09-21T14:18:22.748Z | [ERROR] | Redis connection error | Meta:{"name":"Error","message":"Socket closed unexpectedly","stack":"Error: Socket closed unexpectedly\n at Socket. (/app/node_modules/@redis/client/lib/client/socket.ts:272:29)\n at Object.onceWrapper (node:events:639:26)\n at Socket.emit (node:events:524:28)\n at Socket.emit (node:domain:489:12)\n at TCP. (node:net:343:12)"} 2025-09-21T14:18:22.789Z | [STARTUP] | Received SIGTERM. Shutting down gracefully... 2025-09-21T14:18:22.809Z | [STARTUP] | HTTP server closed 2025-09-21T14:18:22.838Z | [CONNECTION] | Database connection closed | Meta:{"connectionType":"postgresql","status":"success"}