Auth problems - Auth manager service unable to connect to DB
Problem
Auth manager service is unable to connect to the Database server. Along with that, all the services were unable to reach using Swagger
Following error is seen in the logs,
2020/05/05 13:20:38 [error] 961#961: *18574 upstream prematurely closed connection while reading response header from upstream, client: 52.172.41.18, server: preprod.mosip.io, request: "GET /v1/pridgenerator/prid HTTP/1.1", upstream: "https://150.10.30.98:443/v1/pridgenerator/prid", host: "preprod.mosip.io"
2020/05/05 13:20:38 [error] 961#961: *18552 upstream prematurely closed connection while reading response header from upstream, client: 52.172.41.18, server: preprod.mosip.io, request: "GET /v1/pridgenerator/prid HTTP/1.1", upstream: "https://150.10.30.98:443/v1/pridgenerator/prid", host: "preprod.mosip.io"
Solution
The problem might occur due to the Nginx issue. Just restart the Nginx server.
If you see here, all the services are failing. The services are running, but we are unable to access them from the local machines.