Medic API is failing to start

Error message shows timeout. I am not sure what is timing out as it is not indicated. I tried to hit haproxy from the medic-os container using telnet and curl and I get a response

Env: Docker container
Version: 3.13
Below is the error message found in medic-api.log

2022-04-22 08:43:31] 2022-04-22 08:43:31 ERROR: Fatal error initialising medic-api
[2022-04-22 08:43:31] 2022-04-22 08:43:31 ERROR: { error: ‘timeout’,
[2022-04-22 08:43:31] reason: ‘The request could not be processed in a reasonable amount of time.’,
[2022-04-22 08:43:31] ref: 311204983,
[2022-04-22 08:43:31] status: 500,
[2022-04-22 08:43:31] name: ‘timeout’,
[2022-04-22 08:43:31] message: ‘The request could not be processed in a reasonable amount of time.’ }

Hello @melema

The error would indicate that CouchDb is still indexing required views.
Please take a look at this related thread.
Do you have access to fauxton? Can you check https://<host>/_utils/#/activetasks to see if you have any active indexer tasks?

1 Like