Gitlab: "/var/opt/gitlab/nginx/html/index.html" is not found (2: No such file or directory)

时间:2018-07-24 10:23:47

标签: ubuntu nginx gitlab gitlab-ci

I have a fresh install of gitlab-ee on a EC2 instance. Followed the instructions to the letter.

The external url is http://<IP_ADDR>/gitlab (since I don't have a domain I can use)

My problem is that while gitlab successfully installs, when I try to access it, it gives me a 502 error. cat /var/log/gitlab/nginx/gitlab_error.log shows me the error in the title.

I tried to install it on my local machine and the same problem occurs. I should mention I did have apache installed on both machines prior to installing gitlab.

Steps I've tried:

  • Uncomment nginx['enable'] = True in gitlab.rb

  • Uninstall and reinstall gitlab-ee

  • Run gitlab-ctl reconfigure several times.

1 个答案:

答案 0 :(得分:0)

我认为问题是我正在运行的实例的内存太少。在使用单独的Nginx服务器后证明了这一点,该服务器在runsvdir或该服务中的任何一个上显示一些“内存不足”错误。

通过一键安装DigitalOcean小滴解决了该问题。

要运行gitlab,您至少需要 4 GB RAM,至少对于版本11 +。

感谢大家的帮助,希望这个问题对某人有所帮助。