Unable to login into Gitlab after setting up external database

I am trying to setup a new Gitlab infra. I have created 3 servers for Gitlab application and setup 1
database server for the same using the following documentation:

I have installed Postgres version 13.9 and Gitlab CE version 15.6.

Changes in gitlab.rb:
gitlab_rails[‘auto_migrate’] = false
gitlab_rails[‘db_adapter’] = “postgresql”
gitlab_rails[‘db_encoding’] = “unicode”
gitlab_rails[‘db_password’] = “database_password”
gitlab_rails[‘db_host’] = “my_db_ip”
gitlab_rails[‘db_port’] = “5432”
postgresql[‘enable’] = false
external_url ‘my_url’

Apart from these all the lines are commented. I am able to reconfigure successfully after the above changes.

Issue: Before reconfigure, I successfully logged in using the initial_root_password. After reconfigure, I was not able to login. It threw a 500 error.

I have tried changing the password. It works when I comment the above lines and reconfigure.

The issue is resolved now. I had not yet seeded the database so the database was not setup. Once it was done, I was able to login normally.