Gitlab::Git::Repository::NoRepository (no repository for such path)
Summary Gitlab returns 500 "Whoops, something went wrong on our end." The git repositories have been removed.
Relevant logs
Gitlab::Git::Repository::NoRepository (no repository for such path):
lib/gitlab/git/repository.rb:129:in `rescue in rugged'
lib/gitlab/git/repository.rb:124:in `rugged'
lib/gitlab/git/repository.rb:658:in `lookup'
lib/gitlab/git/blob.rb:182:in `find_by_rugged'
lib/gitlab/git/blob.rb:29:in `block in find'
lib/gitlab/gitaly_client.rb:255:in `block (2 levels) in migrate'
lib/gitlab/gitaly_client.rb:297:in `allow_n_plus_1_calls'
lib/gitlab/gitaly_client.rb:250:in `block in migrate'
lib/gitlab/metrics/influx_db.rb:98:in `measure'
lib/gitlab/gitaly_client.rb:248:in `migrate'
lib/gitlab/git/blob.rb:25:in `find'
lib/gitlab/git/repository.rb:1174:in `blob_at'
lib/gitlab/git/attributes_at_ref_parser.rb:8:in `initialize'
lib/gitlab/git/repository.rb:1013:in `new'
lib/gitlab/git/repository.rb:1013:in `attributes_at'
app/models/repository.rb:457:in `method_missing'
app/services/lfs/file_modification_handler.rb:29:in `lfs_file?'
app/services/lfs/file_modification_handler.rb:13:in `new_file'
app/services/files/create_service.rb:6:in `create_commit!'
app/services/commits/create_service.rb:17:in `execute'
app/controllers/concerns/creates_commit.rb:23:in `create_commit'
app/controllers/projects/blob_controller.rb:30:in `create'
lib/gitlab/i18n.rb:50:in `with_locale'
lib/gitlab/i18n.rb:56:in `with_user_locale'
app/controllers/application_controller.rb:338:in `set_locale'
lib/gitlab/middleware/multipart.rb:95:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/read_only/controller.rb:28:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Result Gitlab Rake Check
Checking GitLab Shell ...
GitLab Shell version >= 6.0.4 ? ... OK (6.0.4)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
26/15 ... ok
26/16 ... repository is empty
7/21 ... ok
27/23 ... ok
7/24 ... ok
62/28 ... ok
7/29 ... ok
33/30 ... ok
29/31 ... repository is empty
26/33 ... ok
62/35 ... ok
7/38 ... repository is empty
7/53 ... repository is empty
6/56 ... repository is empty
71/60 ... repository is empty
71/62 ... wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks /data1/git-data/repositories
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section "GitLab Shell"
Please fix the error above and rerun the checks.
62/63 ... ok
62/64 ... ok
62/65 ... ok
62/66 ... ok
75/67 ... repository is empty
71/69 ... wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks /data1/git-data/repositories
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section "GitLab Shell"
Please fix the error above and rerun the checks.
71/71 ... repository is empty
79/73 ... ok
71/74 ... wrong or missing hooks
Try fixing it:
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks /data1/git-data/repositories
Check the hooks_path in config/gitlab.yml
Check your gitlab-shell installation
For more information see:
doc/install/installation.md in section "GitLab Shell"
Please fix the error above and rerun the checks.
86/75 ... ok
55/76 ... ok
55/77 ... ok
84/78 ... ok
84/79 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ...
26/15 ... yes
26/16 ... yes
7/21 ... yes
27/23 ... yes
7/24 ... yes
62/28 ... yes
7/29 ... yes
33/30 ... yes
29/31 ... yes
26/33 ... yes
62/35 ... yes
7/38 ... yes
7/53 ... yes
6/56 ... yes
71/60 ... yes
71/62 ... yes
62/63 ... yes
62/64 ... yes
62/65 ... yes
62/66 ... yes
75/67 ... yes
71/69 ... yes
71/71 ... yes
79/73 ... yes
71/74 ... yes
86/75 ... yes
55/76 ... yes
55/77 ... yes
84/78 ... yes
84/79 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.3.6)
Git version >= 2.9.5 ? ... yes (2.14.3)
Git user has default SSH configuration? ... yes
Active users: ... 82
Elasticsearch version 5.1 - 5.5? ... skipped (elasticsearch is disabled)
Checking GitLab ... Finished
I dont know why nothing happen for this command :
sudo -u git -H /opt/gitlab/embedded/service/gitlab-shell/bin/create-hooks /data1/git-data/repositories
Result Gitlab environment info
System information
System: RedHatEnterpriseServer 7.5
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.3.6p384
Gem Version: 2.6.13
Bundler Version:1.13.7
Rake Version: 12.3.0
Redis Version: 3.2.11
Git Version: 2.14.3
Sidekiq Version:5.0.5
Go Version: unknown
GitLab information
Version: 10.6.4-ee
Revision: 42f072e
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
DB Version: 9.6.8
URL: https://repos.******.com
HTTP Clone URL: https://repos.*****.com/some-group/some-project.git
SSH Clone URL: git@repos.******.com:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 6.0.4
Repository storage paths:
- default: /data1/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Edited by Immanuel Andrew