2017-01-26 1 views
2

도커 러너를 설정하려고 시도하고 gitlab-ce로 러너를 등록했습니다.Gitlab-ci-token 사용자가 저장소를 복제 할 수 없습니다.

Running with gitlab-ci-multi-runner 1.10.2 (d171b73) 
Using Docker executor with image python:3.4 ... 
Starting service postgres:latest ... 
Pulling docker image postgres:latest ... 
Waiting for services to be up and running... 
Pulling docker image python:3.4 ... 
Running on runner-b35ff618-project-96-concurrent-0 via toucan... 
Cloning repository... 
Cloning into '/builds/amrstratus/webportal'... 
fatal: unable to access 'https://gitlab-ci-token:[email protected]/amrstratus/webportal.git/': Failed to connect to gitlab.xxxxxx port 443: Connection refused 
ERROR: Build failed: exit code 1 

내가 저장소를 복제 단순히 노력과 유사한 오류가있어 : 그러나 작업이 항상 실행하면 다음과 실패 HTTPS를 통해

[email protected]:/tmp# git clone https://gitlab-ci-token:[email protected]/amrstratus/webportal.git/ 
Cloning into 'webportal'... 
remote: HTTP Basic: Access denied 
fatal: Authentication failed for 'https://gitlab-ci-token:[email protected]/amrstratus/webportal.git/' 

액세스가 작동하는 것 같다 미세하고 다른 모든 것들 작동하는 것 같습니다.

아이디어가 있으십니까? 나는 완전히 붙어있다.

시스템 정보 :이 문제가있을 수 있음을

Debian 8 (Jessie) 
GitLab 8.16.2 
GitLab Shell 4.1.1 
GitLab Workhorse v1.3.0 
GitLab API v3 
Git 2.10.2 
Ruby 2.3.3p222 
Rails 4.2.7.1 
PostgreSQL 9.6.1 

답변

1

참고. fatal: unable to access

당신은 당신이 통신 할 수 있는지 확인해야 : 토큰 자체 (및 fatal: Authentication failed), this thread

The CI token is now securely generated for each build. It's available in $CI_BUILD_TOKEN .
If you're cloning a different repository from .gitlab-ci.yml (like we were) your best bet is to use SSH.

Another solution is to use your personal private token:

git clone https://<username>:<private-token>@gitlab.anydomainhere.com/developers/<projectname>.git 

(please realize this token gives access to all your projects)

다른 문제는 부두 노동자와 관련된보고에 관한

Gitlab 인스턴스 (as in here 또는 issue 305).
check the ownership as in this thread.

+0

감사합니다. 게시물을 보내 주시면 문제를 파악하는 데 도움이됩니다. 인증 문제는 아니지만 방화벽이 요청을 차단하는 고정 표시기와 관련된 문제였습니다. docker를 사용하여 python을 실행합니다. 3.4/usr/bin/curl https : //gitlab.xxxx 나를 해결하는 데 도움이되었습니다. –

0

나는이 문제가 해결 된 것이 this comment의 주력 장치에 대한 수정이라고 생각합니다.

gitlab_workhorse['listen_network'] = "tcp" 
gitlab_workhorse['listen_addr'] = "127.0.0.1:8181" 

다음이 대신 유니콘에 리버스 프록시를 가리 웹 서버의 구성을 수정 추가 이들 2 줄

의 주석이 광고

gitlab_workhorse['enable'] = true 

다음과 같이

/etc/gitlab/gitlab.rb을 수정.

관련 문제