New Users can't seem to push to repo after Gitlab Upgrade to 12.10 and Postgres to 11.1
Background:
We are using the FOSS version of Gitlab, installed from the source. Recently we upgraded our GitLab installation from 11.11 to 12.10, also we have upgraded our Postgres Database from version 9.5 to version 11.1. The upgrade went fine and all services are up and as running as expected.
Problem:
We created a few new users after upgrading and gave them the requisite permissions on a few groups, they are able to clone the repo but whenever they try to push something it throws the following error:
Username for 'https://gitlab.*****.***': test-utsav
Password for 'https://test-utsav@gitlab.*****.*****':
Counting objects: 3, done.
Writing objects: 100% (3/3), 216 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab: The project you were looking for could not be found.
To https://gitlab.*****.****/*****/dev/rnruby-demo-cluster8.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.*****.*****/*****/dev/rnruby-demo-cluster8.git'
This user has owner rights to the full group, so it doesn't seem like a permission issue.
Also, I tried to get the repo URL using the API, as illustrated in
--------------------------------------------------------------------------------
GitLab: 12.10.10 (c8fbe96bbd4) FOSS
GitLab Shell: 12.2.0
PostgreSQL: 11.1
--------------------------------------------------------------------------------
app.get 'https://gitlab.******.******/******/dev/rnruby-demo-cluster8?private_token=*********'Loading production environment (Rails 6.0.2)
irb(main):001:0> app.get 'https://gitlab.******.*****/*******/dev/rnruby-demo-cluster8?private_token=*************'
Started GET "/**********/dev/rnruby-demo-cluster8?private_token=[FILTERED]" for 127.0.0.1 at 2020-06-10 11:01:57 +0000
Processing by ProjectsController#show as HTML
Parameters: {"private_token"=>"[FILTERED]", "namespace_id"=>"dev", "id"=>"rnruby-demo-cluster8"}
Redirected to https://gitlab.*******.******/users/sign_in
Filter chain halted as :project rendered or redirected
Completed 302 Found in 37ms (ActiveRecord: 10.9ms | Elasticsearch: 0.0ms | Allocations: 15258)
=> 302
While everything works for old users (pre-upgrade).
Additional Information:
ubuntu@staging:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.6.5p114
Gem Version: 3.0.3
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 3.0.6
Git Version: 2.22.0
Sidekiq Version:5.2.7
Go Version: go1.13.5 linux/amd64
GitLab information
Version: 12.10.10
Revision: c8fbe96bbd4
Directory: /home/git/gitlab
DB Adapter: PostgreSQL
DB Version: 11.1
URL: https://gitlab.******.*****
HTTP Clone URL: https://gitlab.******.*****/some-group/some-project.git
SSH Clone URL: git@sgitlab.******.******:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 12.2.0
Repository storage paths:
- default: /home/git/repositories
GitLab Shell path: /home/git/gitlab-shell
Git: /usr/bin/git
TIA