2015-01-16 2 views
1

나는 gitlab과 특히 gitlab-shell을 몇 시간 동안 시험해 보았습니다. 내가 필요로하는 샘플 설정을 찾은 설명서에 의해 트롤링 된 후 API 500 오류가 발생합니다. Running /home/git/gitlab-shell/bin/check Check GitLab API access: FAILED. code: 500 gitlab-shell self-check failed Try fixing it: Make sure GitLab is running; Check the gitlab-shell configuration file: sudo -u git -H editor /home/git/gitlab-shell/config.yml Please fix the error above and rerun the checks.gitlab-shell ssl cert issues

To explain my current setup:

#/home/git/gitlab-shell/config.yml 
user: git 
gitlab_url: https://[myfqdn]/ 
http_settings: 
    ca_file: "/etc/gitlab-ssl/git-mydomain-chain.pem" 
    ca_path: "/etc/gitlab-ssl" 
    self_signed_cert: false 
repos_path: "/home/git/repositories/" 
auth_file: "/home/git/.ssh/authorized_keys" 
redis: 
    bin: "/usr/bin/redis-cli" 
    namespace: resque:gitlab 
    host: localhost 
    port: 6379 
log_level: INFO 
audit_usernames: false 

In the /etc/gitlab-ssl 디렉토리는 두 파일입니다. * 내 개인 키 git-mydomain-key.pem * 결합 된 공개 키와 CA 키 git-mydomain -chain.pem

또한 ca-certificates에 ca-key를 추가했습니다 (이것은 cacert 서명 된 것입니다).

아무도 도와 줄 수 있고 무엇이 잘못되었는지 말할 수 있습니까?

답변

1

이 오류는 gitlab과 아무런 관련이 없습니다. 이것은 순수한 YAML 파서 (Psych 귀하의 경우) 오류입니다.

5 호선 3 열은 다음과 같습니다 당신이 바로 위의 이상한 종결되지 않은 문자열이 말했다

ca_path: 
⇑ HERE 

:

            ⇓⇓⇓ WTF?! 
ca_file: "/etc/gitlab-ssl/git-mydomain-chain.pem #This file contains my public key and the ca key 

모든 것을 제거 후 해시 (포함) 및 문자열 따옴표를 닫습니다.

희망이 있습니다.

+0

댓글을 삭제하고 따옴표를 추가했습니다. 결과로 내가 API 오류로 백업했습니다. /home/git/gitlab-shell/bin/check를 실행하십시오. GitLab API 액세스 : FAILED를 확인하십시오. code : 500 gitlab-shell자가 점검이 실패했습니다. – Tamwyn

+0

새 정보로 질문을 업데이트하십시오. – mudasobwa