Gitlab loads nginx default page instead of the gitlab login page

       

Problem Statement- Recently my gitlab instance stopped showing me the landing page instead showing the default Nginx landing page as shown below
So this way I am stuck to see my gitlab instance login page.

Checking gitlab status

Last login: Thu Jun 20 14:48:55 2019 from 122.163.159.113
root@ubuntu:~# gitlab-ctl status
run: alertmanager: (pid 4358) 5106s; run: log: (pid 3364) 5167s
run: gitaly: (pid 4379) 5105s; run: log: (pid 3378) 5167s
run: gitlab-monitor: (pid 4404) 5105s; run: log: (pid 3371) 5167s
run: gitlab-workhorse: (pid 4412) 5105s; run: log: (pid 3367) 5167s
run: logrotate: (pid 12716) 1504s; run: log: (pid 3377) 5167s
run: nginx: (pid 4453) 5104s; run: log: (pid 3366) 5167s
run: node-exporter: (pid 4465) 5103s; run: log: (pid 3369) 5167s
run: postgres-exporter: (pid 4472) 5103s; run: log: (pid 3370) 5167s
run: postgresql: (pid 4559) 5102s; run: log: (pid 3402) 5167s
run: prometheus: (pid 4564) 5102s; run: log: (pid 3386) 5167s
run: redis: (pid 4590) 5102s; run: log: (pid 3368) 5167s
run: redis-exporter: (pid 4737) 5101s; run: log: (pid 3374) 5167s
run: sidekiq: (pid 4750) 5099s; run: log: (pid 3365) 5167s

run: unicorn: (pid 4763) 5097s; run: log: (pid 3373) 5167s

Seems my gitlab instance is up and running but why UI is not accessible?

Solution
I have checked that an Nginx instance was also running, so I have followed below steps to make my gitlab accessible via UI-

1. Reboot machine 
root@ubuntu:~# init 6

2. Stop Nginx
root@ubuntu:~# systemctl stop nginx
root@ubuntu:~# systemctl status nginx
● nginx.service - nginx - high performance web server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: en
   Active: inactive (dead) since Thu 2019-06-20 14:49:08 IST; 1h 30min ago
     Docs: http://nginx.org/en/docs/
  Process: 4027 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCE
  Process: 1660 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited,
 Main PID: 1723 (code=exited, status=0/SUCCESS)

Jun 20 14:48:50 ubuntu systemd[1]: Starting nginx - high performance web server.
Jun 20 14:48:50 ubuntu systemd[1]: Started nginx - high performance web server.
Jun 20 14:49:08 ubuntu systemd[1]: Stopping nginx - high performance web server.
Jun 20 14:49:08 ubuntu systemd[1]: Stopped nginx - high performance web server.

3. Restart Gitlab
root@ubuntu:~# gitlab-ctl restart

4. Check gitlab status
root@ubuntu:~# gitlab-ctl status
run: alertmanager: (pid 4358) 8728s; run: log: (pid 3364) 8789s
run: gitaly: (pid 4379) 8727s; run: log: (pid 3378) 8789s
run: gitlab-monitor: (pid 4404) 8727s; run: log: (pid 3371) 8789s
run: gitlab-workhorse: (pid 4412) 8727s; run: log: (pid 3367) 8789s
run: logrotate: (pid 20524) 1526s; run: log: (pid 3377) 8789s
run: nginx: (pid 4453) 8726s; run: log: (pid 3366) 8789s
run: node-exporter: (pid 4465) 8725s; run: log: (pid 3369) 8789s
run: postgres-exporter: (pid 4472) 8725s; run: log: (pid 3370) 8789s
run: postgresql: (pid 4559) 8724s; run: log: (pid 3402) 8789s
run: prometheus: (pid 4564) 8724s; run: log: (pid 3386) 8789s
run: redis: (pid 4590) 8724s; run: log: (pid 3368) 8789s
run: redis-exporter: (pid 4737) 8723s; run: log: (pid 3374) 8789s
run: sidekiq: (pid 4750) 8721s; run: log: (pid 3365) 8789s
run: unicorn: (pid 4763) 8719s; run: log: (pid 3373) 8789s

4. Check gitlab UI - Working fine. :)


References







Comments

  1. Thank you so much! I was having this issue, and it's working now! (hosing on vultr, with a pre-existing nginx configuration) using gilab omnibus

    ReplyDelete

Post a Comment

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c