Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Self-hosted Gitlab Server Not Accessible

I'm having some major issues with a gitlab instance running on an osx (10.11) server. This is is self-hosted gitlab-ce built from source. It was working fine up until last week when I tried to upgrade from version 8.5 to 8.6. I ended up rolling back to 8.5 after some build issues, but something in the configuration was broken in the process.

Currently, I can access my gitlab site if I open it in a browser running on the osx server if I explicitly include the nginx port. If I try to access it from a remote browser, with or without an explicit port, I get a 'This site can't be reached' error. I have tried everything I can think of to git this back in working order and nothing seems to help. There are so many potential config files and options I don't even know where to look at this point.

Any help would be appreciated.

Update: With some additional trial and error I was able to access my gitlab locally without specifying the port. Unfortunately however, remote access remains stubbornly broken. What I really need is an example of a working NGINX config for gitlab on osx.

Update 2.0 The remote access issue turned out to be a firewall problem. Fixing that has brought me full circle though. I can access gitlab be specifying the port, but I can't figure out how to set up a proxy to use the default web port (80). I understand that binding to that port requires root access, but I get 'permission denied' errors, even when I use sudo.

Update the third As suggested I have posted another question here: https://serverfault.com/questions/960051/nginx-unable-to-bind-to-port-80-in-osx-server since my issue has moved beyond the scope of the original question.

like image 298
pbuchheit Avatar asked Mar 13 '19 15:03

pbuchheit


1 Answers

you only have to include the nginx port if you are not running on a default port like 80 for http and 443 for https

so you might want to change your config file and set it to a default port there and after that run

gitlab-ctl restart

to get it into effect

cheers

like image 55
xzesstence Avatar answered Nov 15 '22 10:11

xzesstence