This error is an unintended side effect of API's pm2 file-watch feature (run inside API docker container). When workers upload a report html to the API server, it gets stored in one of the sub-directories under /api and this triggers the pm2 to auto-restart the api server. Nginx could not forward the requests from UI while the server restarts and these are reported as 502 - Bad Gateway. (edited)
Observed in xenium
This error is an unintended side effect of API's pm2 file-watch feature (run inside API docker container). When workers upload a report html to the API server, it gets stored in one of the sub-directories under
/api
and this triggers the pm2 to auto-restart the api server. Nginx could not forward the requests from UI while the server restarts and these are reported as 502 - Bad Gateway. (edited)