How to change the Gitlab's 8080 port (CE - Omnibus version)?
Edit the GitLab settings file /etc/gitlab/gitlab.rb
and set the parameter external_url
to http://hostname:9999
.
Don't forget to reconfigure GitLab afterwards: gitlab-ctl reconfigure
Gitlab on port 8080
Most likely you have another service listening on 8080, I think the omnibus install have some service hooking 8080 - just use 8081 instead.
Edit: I just did a quick search and found that it's the unicorn server that is listening to 8080 with the original omnibus installer.
Note: You will only need to change the external_url in gitlab.rb, no other config file should have to be edited for this.
Edit#2: As @emeraldjava stated there is an option in the configuration file for using another unicorn port: #unicorn['port'] = '8080'
Gitlab ports 80 & 8080 taken by a separate Gitlab instance?
What I have found is that there were 2 issues causing the errors I had.
First, I removed a "gitlab-ce" package that was installed, following the instructions here: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/135. For some reason, when I restart the machine now I have to restart these services, in order, for Gitlab to run properly redis-server
, gitlab
, nginx
. However, Gitlab does start responding properly after that.
Second, the 404 error was due to a different server that was also listening on that IP address, causing a conflict.
I will likely move to using the omnibus package on a fresh, new server going forward, but at least the immediate issues appear resolved. Thanks for your help, SLY!
Gitlab-omnibus not running on 8080
The solution to my problem was that i did not have git installed.
this i because i followed the instructions on https://about.gitlab.com/downloads/
using dfebian 7 as that is my os. it never said that i had to have git installed on my system before installing gitlab.
(it was wrong of me to assume that gitlab would install this for me and it was an easy fix)
Changing the default Gitlab port
Issue here: https://gitlab.com/gitlab-org/gitlab-ce/issues/20131
Workaround:
add this line to /etc/gitlab/gitlab.rb:
nginx['proxy_set_headers'] = { "X-Forward-Port" => "8080", "Host" => "<hostname>:8080" }
replace port and hostname with your values, then as root or with sudo:
gitlab-ctl reconfigure
gitlab-ctl restart
It helps me on Debian 8.5, gitlab-ce from gitlab repo.
Gitlab Configuration Issues:: NGINX Unicorn Port Conflict
You should override the ports in /etc/gitlab/gitlab.rb
. Don't mess with /var/opt/gitlab/...
because any manual configuration will be lost after a reconfigure. In particular read on Setting the NGINX listen port. In the downloads page there is a sentence: For troubleshooting and configuration options please see the Omnibus GitLab readme. I wonder if this is not seen by people :/ If not we should make it more clear.
Related Topics
Converting a Pcap Trace to Netflow Format
How to Manage Log Verbosity Inside a Shell Script
Assembly Linux System Calls VS Assembly Os X System Calls
Why Does If [ !$(Grep -Q) ] Not Work When If Grep -Q Does
Nacl Helper Process Running Without a Sandbox Error Using Chrome Through Selenium in Linux
Is There a Simple Way to Batch Rename Symlink Targets
Bash Tail the Newest File in Folder Without Variable
Permission Denied in a Folder for a User After Chown and Chmod
Termios Vmin Vtime and Blocking/Non-Blocking Read Operations
Remove a Specific Line from a File Without Using Sed or Awk
Accessing Files Outside the Document Root with Apache
Objdump and Resolving Linkage of Local Function Calls
Why Does Docker Prompt "Permission Denied" When Backing Up the Data Volume