2016-10-19 28 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フックが拒否されました]の重複している可能性があります(http://stackoverflow.com/questions/28318599/git-push-error-pre-receive-hook-declined) –

答えて

1

チェックが分岐マスターが保護されていないことを確認します。私の理解では、マスターブランチはデフォルトで保護されています。 Example

プロジェクト設定でブランチの保護を解除/保護することができます。

gitlab_urlが/opt/gitlab/embedded/service/gitlab-shell/config.ymlにあるgitlab-shellコンフィグレーションで正しく設定されていることを確認することもできます。このファイルを編集した後にsudo gitlab-ctl restartを実行してください。

関連する問題