2016-10-19 3 views
0

어제 GitLab Community Edition을 내 서버에 설치했습니다. 설치는 잘 갔다,하지만 우리는 GitLab 서버에 데이터 나 파일을 누를 때이 오류가 발생합니다원격 GitLab API에 액세스 할 수 없습니다.

Password for 'http://[email protected]@112.196.23.228': 
Counting objects: 6, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (2/2), done. 
Writing objects: 100% (6/6), 431 bytes | 0 bytes/s, done. 
Total 6 (delta 0), reused 0 (delta 0) 
remote: GitLab: API is not accessible 
To http://112.196.23.228/Naman/mt-test.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'http://112.196.23.228/Naman/mt-test.git' 
+0

'gitlab.rb'에'external_url'을 설정 했습니까? – Fairy

+0

예, gitlab.rb 파일에 external_url을 설정했습니다. –

+0

[Git push error pre-receive hook가 거부 됨]의 가능한 복제본 (http://stackoverflow.com/questions/28318599/git-push-error-pre-receive-hook-declined) –

답변

1

확인이 지점 마스터가 보호하지 않아야합니다. 내 이해를 위해 마스터 브랜치는 기본적으로 보호됩니다. Example

프로젝트 설정에서 분기를 보호 해제/보호 할 수 있습니다.

/opt/gitlab/embedded/service/gitlab-shell/config.yml에있는 gitlab-shell 구성에서 gitlab_url이 올바르게 설정되어 있는지 확인할 수도 있습니다. 이 파일을 편집 한 후에 sudo gitlab-ctl restart을 실행하십시오.

관련 문제