gitab-ci-multi-runner 503 HTTP请求失败

时间:2015-11-03 10:57:35

标签: http gitlab gitlab-ci gitlab-ci-runner

在写这篇文章之前,我一直在四处寻找,但我找不到任何适合我的工作。

我一直在centos 6上安装gitlab-omnibus和gitlab-ci-multi-runner。 使用apache配置,似乎一切正常(我可以克隆,推送repo等没有任何问题)。

我可以注册跑步者,我可以看到他们被工具选中。 但每次我收到此错误:

gitlab-ci-multi-runner 0.6.2 (3227f0a)
Using Shell executor...
stdin: is not a tty
Running on vps.mycompany.uk...

Cloning repository...
Cloning into 'builds/d613c191/0/efesto/testrunner'...
error: The requested URL returned error: 503 Service Temporarily      Unavailable while accessing http://gitlab-ci-    token:xxxxxx@git.mycompany.uk/efesto/testrunner.git/info/refs
fatal: HTTP request failed

ERROR: Build failed with: exit status 1

这是我的apache配置:

<VirtualHost *:80>
ServerName git.mycompany.uk
ServerAlias www.git.mycompany.uk
ServerAdmin webmaster@forge.mycompany.uk
UseCanonicalName On
ProxyRequests Off
ServerSignature Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
ProxyPassMatch ^(/[^/]+\.(html|png|ico|css|txt))$ !

ProxyPass /assets !
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8181
ProxyPassReverse / http://127.0.0.1:8080/   
ProxyPassReverse / http://git.mycompany.uk

RewriteEngine on
#Forward these requests to gitlab-git-http-server
RewriteCond %{REQUEST_URI} ^/[\w\.-]+/[\w\.-]+/repository/archive [OR]
RewriteCond %{REQUEST_URI} ^/api/v3/projects/.*/repository/archive [OR]
RewriteCond %{REQUEST_URI} ^/[\w\.-]+/[\w\.-]+/(info/refs|git-upload-pack|git-receive-pack)$
RewriteCond %{REQUEST_URI} .*\.(git)
RewriteRule .* http://127.0.0.1:8181%{REQUEST_URI} [P,QSA]

#Forward any other requests to GitLab Rails app (Unicorn)
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_URI} ^/uploads
RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA,NE]


DocumentRoot /opt/gitlab/embedded/service/gitlab-rails/public


#Set up apache error documents, if back end goes down (i.e. 503 error) then a maintenance/deploy page is thrown up.
ErrorDocument 404 /404.html
ErrorDocument 422 /422.html
ErrorDocument 500 /500.html
ErrorDocument 503 /deploy.html

<Directory /opt/gitlab/embedded/service/gitlab-rails/public/>
        Order allow,deny
        Allow from all
</Directory>

<Location />
    AddOutputFilterByType SUBSTITUTE text/html
    Order allow,deny
    Allow from all
</Location>

要完成图片,请参阅gitlab.rb

的配置
external_url 'http://git.mycompany.uk/'
gitlab_rails['gitlab_email_from'] = 'gitlab@mycompany.uk'
gitlab_rails['gitlab_email_reply_to'] = 'noreply@mycompany.uk'
gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = false
gitlab_rails['omniauth_block_auto_created_users'] = true

gitlab_git_http_server['enable'] = false
user['username'] = "git"
user['group'] = "git"
user['shell'] = "/bin/sh"
user['home'] = "/var/opt/gitlab"
unicorn['port'] = 8080
nginx['enable'] = false

知道可能导致它的原因吗? 谢谢。 升。

0 个答案:

没有答案