Changing external_url including the port

Gitlab web interface not loading when I add the port to the external_url

When I change my external_url in the gitlab.rb file to ‘https://domain.com:18443/’ from ‘https://domain.com’ for example, Gitlab web interface is not available even if I try to get in with the IP address.

I have the name of the certs set, and I run gitlab-ctl reconfigure after making theses changes, but it’s not working. The error logs that I receive when I use gitlab-ctl tail are related to gitlab-exporter:
==> /var/log/gitlab/gitlab-exporter/current <==
2024-05-23_13:14:18.40308 E, [2024-05-23T08:14:18.402994 #69175] ERROR – : Error connecting to the database: PQsocket() can’t get socket descriptor
2024-05-23_13:14:18.40335 E, [2024-05-23T08:14:18.403305 #69175] ERROR – : Error connecting to the database: PQsocket() can’t get socket descriptor
2024-05-23_13:14:18.40361 E, [2024-05-23T08:14:18.403568 #69175] ERROR – : Error connecting to the database: PQsocket() can’t get socket descriptor

those are the only error logs repeating constantly.

I attached a picture of the current version of the components.

I appreciate any help you can provide.

Regards Erick

When changing the external_url in GitLab’s gitlab.rb to include a port, ensure that PostgreSQL is configured to accept connections on that port. Also, check your firewall settings to allow traffic on the new port. aarpmembership