ministryofjustice / cloud-platform

Documentation on the MoJ cloud platform
MIT License
86 stars 44 forks source link

CCCD nginx 503 errors in testing environment #231

Closed lostie closed 6 years ago

lostie commented 6 years ago

Service name

Claim-for-Crown-Court-Defence (CCCD)

Service environment

Impact on the service

This has no impact on the service as its a testing branch.

Problem description

Currently testing the upgrade of the application from Rails 5.0 to Rails 5.2. Docker container is up running after deploying the app, logs show no apparent sign of errors but Nginx cannot connect to the app, returning a 503 error.

Contact person

Sergio Marques, @smarques on slack.

nayoa commented 6 years ago

Deployed to environment 'disaster'

nayoa commented 6 years ago

In the Jenkins job, it appears that when it deployed to CCCD disaster, it did not pull the DB_HOST, DB_USER and DB_PASS. This was visible when the docker logs showed PG::ConnectionBad: fe_sendauth: no password supplied . The environment variables were also missing from the app container. After discussion with Sergio, it appears someone manually updated CCCD disaster without the DB vars configuration. A new image has been built with the DB vars - https://ci.service.dsd.io/view/ADP/job/advocate-defence-payments-build/2325/ (using master branch) and has been deployed to CCCD disaster successfully.

The next step is to discover if the branch with Rails 5.2 will deploy successfully to the disaster environment.

nayoa commented 6 years ago

A fab update has fixed the above issue.