I need to re-IP my GitLab instance after changing machine's IP

I was forced to change the IP address of my existing GitLab CE server.

I can browse to the site, and authenticate as a user; however, when I attempt to web browse/download any files the URL for each files is pointing to the wrong IP address.

What do I do?

I resolved the matter for myself.

I modified variable external_url in the /etc/gitlab/gitlab.rb file, setting the new machine’s IP address into this field:

external_url = '10.57.3.38'

Then on the command prompt, I executed the following two commands in successive order:

gitlab-ctl  reconfigure
gitlab-ctl  restart

Once these three steps were completed everything was fixed. Even the referencing URLs to files within the browser (not in the address bar).

1 Like