pre-receive hook declined on 8.5.4
Dear gitlab team.
Thanks for that really good solution with gitlab.
I struggle now with this 'protected branch feature'.
I have tried the solution suggested here
[#27 (closed)] (#27 (closed))
[https://gitlab.com/gitlab-com/support-forum/issues/40] (https://gitlab.com/gitlab-com/support-forum/issues/40)
But even when I have added 'Developers can push' to the master branch I get the
[remote rejected] master -> master (pre-receive hook declined)
I use the project owner for
git push -u origin master
attached the requested infos.
Installed and updated via yum.
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce
yum update
gitlab-rake gitlab:check SANITIZE=true
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:10: warning: already initialized constant Asana::Errors::APIError
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:10: warning: previous definition of APIError was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:20: warning: already initialized constant Asana::Errors::NotAuthorized
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:20: warning: previous definition of NotAuthorized was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:29: warning: already initialized constant Asana::Errors::Forbidden
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:29: warning: previous definition of Forbidden was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:38: warning: already initialized constant Asana::Errors::NotFound
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:38: warning: previous definition of NotFound was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:49: warning: already initialized constant Asana::Errors::ServerError
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:49: warning: previous definition of ServerError was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:65: warning: already initialized constant Asana::Errors::InvalidRequest
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:65: warning: previous definition of InvalidRequest was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:80: warning: already initialized constant Asana::Errors::RateLimitEnforced
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:80: warning: previous definition of RateLimitEnforced was here
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/version.rb:4: warning: already initialized constant Asana::VERSION
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/version.rb:4: warning: previous definition of VERSION was here
Checking GitLab Shell ...
GitLab Shell version >= 2.6.10 ? ... OK (2.6.10)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
hooks directories in repos are links: ...
2/1 ... ok
2/2 ... ok
6/3 ... repository is empty
2/4 ... ok
7/5 ... repository is empty
2/6 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/opt/gitlab/git-data/repositories: OK
/var/opt/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.21
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ...
2/1 ... yes
2/2 ... yes
6/3 ... yes
2/4 ... yes
7/5 ... yes
2/6 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.8)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 1.7.10 ? ... yes (2.6.2)
Active users: 5
Checking GitLab ... Finished
gitlab-rake gitlab:env:info
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:10: warning: already initialized constant Asana::Errors::APIError
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:10: warning: previous definition of APIError was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:20: warning: already initialized constant Asana::Errors::NotAuthorized
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:20: warning: previous definition of NotAuthorized was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:29: warning: already initialized constant Asana::Errors::Forbidden
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:29: warning: previous definition of Forbidden was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:38: warning: already initialized constant Asana::Errors::NotFound
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:38: warning: previous definition of NotFound was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:49: warning: already initialized constant Asana::Errors::ServerError
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:49: warning: previous definition of ServerError was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:65: warning: already initialized constant Asana::Errors::InvalidRequest
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:65: warning: previous definition of InvalidRequest was here
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:80: warning: already initialized constant Asana::Errors::RateLimitEnforced
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/errors.rb:80: warning: previous definition of RateLimitEnforced was here
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/version.rb:4: warning: already initialized constant Asana::VERSION
/disk003/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/asana-0.4.0/lib/asana/version.rb:4: warning: previous definition of VERSION was here
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.1.8p440
Gem Version: 2.5.1
Bundler Version:1.10.6
Rake Version: 10.5.0
Sidekiq Version:4.0.1
GitLab information
Version: 8.5.4
Revision: 2c6618b
Directory: /disk003/opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://versioning.<my_domain>
HTTP Clone URL: http://versioning.<my_domain>/some-group/some-project.git
SSH Clone URL: git@versioning.<my_domain>:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.6.10
Repositories: /disk003/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Please can you tell me how I can remove this protection? This gitlab installation is in a protected area so we don't need this feature.
Aleks
Edited by 🤖 GitLab Bot 🤖