问题描述
VPS,清除 Ubuntu 18.04 LTS,2 核,4 GB RAM,25 GB 磁盘;
我按照 GitLab 文档做了所有三点。
在 /var/opt/gitlab 上为 git 用户添加授予权限并安装 ruby-dev && nodejs。
之后,GitLab出现在子域中,我定义了管理员密码,一般网页版看起来可以。
但我无法从 GitLab 克隆项目,它会收到 502 错误:
$ git clone https://git.myserver.com/root/tock.git cloning into
'tock'... remote: GitLab is not responding fatal: unable to access
'https://git.myserver.com/root/tock.git/': The requested URL returned
error: 502
当我尝试克隆时,以下条目出现在 var/log/gitlab/Nginx/gitlab_access.log 的内置 Nginx 日志中:
81.30.208.16 - - [03/May/2021:13:51:42 +0300] "GET /root/tock.git/info/refs?service=git-upload-pack HTTP/1.1" 502 24 "-" "git/2.29.2.windows.2"
当我在浏览器中打开 git.myserver.com 页面时,以下条目会出现在 var/log/gitlab/Nginx/gitlab_access.log 的内置 Nginx 日志中:
81.30.208.16 - - [03/May/2021:13:56:02 +0300] "GET /users/sign_in HTTP/1.1" 200 15487 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/90.0.4430.93 Safari/537.36"
但是在 var/log/Nginx/access.log 和 var/log/Nginx /error.log 的“正常”(预安装的、外部的)Nginx 的日志是空的。
也许内置的 Nginx 没有完全禁用?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)