rake configuration:check reports database connectivity problem
I used to check Greenlight configuration using the command:
$ docker exec -it greenlight-v3 bundle exec rake -vvv configuration:check
And it would produce output like this:
Checking required environment variables:
Passed
Checking connection to Postgres Database:
Passed
Passed
Checking connection to Redis Cache:
Passed
Checking connection to BigBlueButton:
Passed
But since some update (maybe 2-3 months ago) this no longer works, I get the following error instead:
Checking required environment variables:
Passed
Checking connection to Postgres Database:
Failed - Unable to connect to Database
However I don't see any problems in using BigBlueButton / GreenLight, so I suspect it's just a problem with the configuration:check task.
I know nothing about Ruby / Rails, so I can't offer up any more details or a proposed solution.
We have another file health_check_controller.rb This also checks db connection in same way and i am getting error there also.
In new version of gl there is some issue. In earlier version its working correct. I have even check on thier gl deployed on https://demo.bigbluebutton.org/
calling the endpoint https://demo.bigbluebutton.org/health_check gives success but the same doent happen in new version.
If you can take help of chatgpt, it can easily fix this. Else leave this as it is. It wont impact your application.
I can confirm the check fails with greenlight 3.6.3 for postgres, then the script ends, so you don't get any information about e.g. SMTP. Greenlight seems to work fine, though, except sending mail wouldn't work because of an incomplete /etc/hosts. Might or might not be connected to the check failing.