Unknown query crashes app
An unknown malformed query is sent to source.manager and the error conduce an app crash.
To-do:
-
Check if the request is a known route in the app -
Better manage badly formed requests in order to avoid app crashes -
Verify which other micro-service sends this query. When ?
Source.manager crash means other containers cannot get any sources. This means no search available.
It's not the first time we encounter this trouble.
How to solve temporarly the problem:
- Restart source.manager, search and search-api
Here is an error log from source.manager container (generated on Prod VM, 2024-06-19)
--> GET /stronghold-status 404 0ms - in-sylva.source.manager | [winston] Attempt to write logs with no transports {"error":"Parse Error: Invalid method encountered","level":"error","message":"Server error"} in-sylva.source.manager | /app/in-sylva.source.manager/server.js:39 in-sylva.source.manager | throw err in-sylva.source.manager | ^ in-sylva.source.manager | [Error: Parse Error: Invalid method encountered] { in-sylva.source.manager | bytesParsed: 70, in-sylva.source.manager | code: 'HPE_INVALID_METHOD', in-sylva.source.manager | reason: 'Invalid method encountered', in-sylva.source.manager | rawPacket: Buffer(93) [Uint8Array] [ in-sylva.source.manager | 71, 69, 84, 32, 47, 99, 111, 110, 116, 101, 110, 116, in-sylva.source.manager | 47, 110, 111, 110, 101, 120, 105, 115, 116, 97, 110, 116, in-sylva.source.manager | 50, 48, 55, 54, 53, 53, 51, 54, 50, 54, 55, 53, in-sylva.source.manager | 50, 54, 49, 48, 53, 50, 49, 55, 54, 49, 53, 56, in-sylva.source.manager | 55, 55, 51, 52, 46, 109, 112, 51, 32, 72, 84, 84, in-sylva.source.manager | 80, 47, 49, 46, 48, 13, 10, 13, 10, 72, 111, 115, in-sylva.source.manager | 116, 58, 32, 49, 52, 55, 46, 49, 48, 48, 46, 49, in-sylva.source.manager | 54, 52, 46, 50, 50, 13, 10, 13, 10 in-sylva.source.manager | ], in-sylva.source.manager | headerSent: true in-sylva.source.manager | } in-sylva.source.manager | [nodemon] app crashed - waiting for file changes before starting...