[英]Check GitLab API access: FAILED. code: 404
what to do to fix this? 该如何解决?
Thank you! 谢谢!
sudo -u git bin/check
Check GitLab API access: FAILED. code: 404
一个简单的搜索config.yml
: //github.com/gitlabhq/gitlab-shell/issues/37揭示config.yml
为gitlab-shell设置的URL
不正确,并导致404错误。
If you still get 404, review the vhost config. 如果仍然显示404,请查看vhost配置。 Next you can find an example from a Mac OS X apache machine:
接下来,您可以从Mac OS X apache机器中找到一个示例:
<VirtualHost *:443>
ServerName domain.com
DocumentRoot "/Users/git/gitlab/public"
CustomLog /var/log/apache2/access_log combinedvhost
ErrorLog /var/log/apache2/error_log
<IfModule mod_ssl.c>
SSLEngine On
SSLProxyEngine On
SSLCertificateFile "/etc/certificates/domain.com.cert.pem"
SSLCertificateKeyFile "/etc/certificates/domain.com.key.pem"
SSLCertificateChainFile "/etc/certificates/domain.com.chain.pem"
</IfModule>
ProxyPass /uploads !
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
<Location />
ProxyPassReverse /
Order deny,allow
Allow from all
</Location>
</VirtualHost>
Cheers, 干杯,
Make sure in /home/git/gitlab-shell/config.yml gitlab_url: "hostname.example.com" is set to the correct FQDN of the gitlab server. 确保在/home/git/gitlab-shell/config.yml gitlab_url中:“ hostname.example.com”设置为gitlab服务器的正确FQDN。 Sometimes it helps if you add the hostname information in /etc/hosts too.
有时,如果您也在/ etc / hosts中添加主机名信息,也会有所帮助。
Most of the time when I see this error it's due to a DNS problem. 大多数情况下,我看到此错误是由于DNS问题。
我遇到了同样的问题,最终导致我的Apache中的虚拟主机设置出现问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.