[SOLVED] Gitlab on Ubuntu server - url not working
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys, we have an Ubuntu with Gitlab.
One user complaining got 500 error. And rebooted the server.
Before rebooting the server, the https://192.168.1.50 was showing the Gitlab web page.
After rebooting, Gitlab web page is not showing up.
Nginx seems to be running.
This is confusing. Why only one user? Why reboot? And why https://192.168.1.50, that's a local address, no? Have you tried http://192.168.1.50 too? Port 80 is http, port 443 is https.
Are you saying your server works, but gitlab doesn't? Or something more spcific?
This is confusing. Why only one user? Why reboot? And why https://192.168.1.50, that's a local address, no? Have you tried http://192.168.1.50 too? Port 80 is http, port 443 is https.
Are you saying your server works, but gitlab doesn't? Or something more spcific?
Nope Gitlab is not working at all.
The nginx is the one that is built-in to Gitlab.
The server is fine, i am able to SSH.
The Gitlab page was showing up until I rebooted the system.
gitlab-ctl reconfigured seems to reconfigured fine no errors.
We're hoping that the 500 Internal Server Error will be resolved.
Next time, if you're going to reboot, just do the server software - aside from anything else, it should only take seconds not minutes.
(Also, a 500 error should be logging the reason for the error, so once you've got this issue resolved you might want to check into that.)
___
Ok, so Nginx/Gitlab responds locally on 192.168.0.50 port 80 but something is blocking ports 80 and 443 from outside the machine.
If a restart of the machine triggered the change in behaviour, it's unlikely to be a network firewall (unless someone happened to modify config at the same time - worth ruling out to be sure).
Assuming the rest of your security allows it, you could temporarily disable the firewall on that machine, repeat the external tests, then re-enable the firewall.
If that lets the requests through it confirms the issue as a firewall config one, if it doesn't something else is blocking the traffic.
What I did, installed GitLab on a VM and compare the settings on the prod one.
The newly installed GitLab on the VM works fine, so I followed the same settings on the prod one.
I just inherited the prod VM, I believe somebody had changed the settings already. Just saved it but never restarted the GitLab.
So, when the VM Prod server was rebooted then the issue appears.
Anyway, the local Github site is back and can be accessed via browser. But I am not sure though whether internal server error is resolved, will update once the developer gives a feedback.
I never knew about the curl command, it's quite helpful to troubleshoot. Thank you guys.
Marking this as resolved hopefully internal server error is gone as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.