v11.6.1: 503 error loading viewer on README.md files and signatures - Gitlab::Git::CommandError (2:TypeError: The given OID is too long)
Summary
I updated our Gitlab installation from version 10.8.7 to 11.6.1, and since the update I continuously the error message:
- "Error loading viewer"
- "An error occurred while loading signatures"
The README.md file is not rendered, and instead the loading spinner icon is displayed.
Steps to reproduce
- Just accessing the repo on the Gitlab, and display the files/folder. There are some error message at the top of the screen.
- does not happen on other project of the same group (those projects only have the master branch)
Example Project
None provided
What is the current bug behavior?
On my main active project, I get 2 503 responses from README.md file and signatures, causing an error message on the main page of the reposition file browser, and readme files are not rendered.
The problem happens right after the migration from 10.8.7 to 11.6.1.
The problem happens also when trying to "edit" the file, or modifying it in the WebIDE editor.
Interestingly enough, I do not have the problem when displaying the "Blame" of the README.md file.
Worth noting as well that it happens only on my main project which has a very rich history (many many branches created over time). It does not happen on my other projects which only have the master branch.
Also, in Gitlab, the tags pages are properly displayed. The branches pages are properly displayed. The wiki pages are properly displayed.
What is the expected correct behavior?
There must not be any error. It worked perfectly fine on the previous version 10.8.7, and not anymore on 11.6.1. It also works perfectly fine on other projects of the group, also having README.md files.
Relevant logs and/or screenshots
logs
In the console of the browser, there are 2 503 responses for:
http://10.40.16.198/git/pa-tools/etcs-pa-tools/blob/integration/README.md?format=json&viewer=rich
http://10.40.16.198/git/pa-tools/etcs-pa-tools/commits/integration/signatures
Edit: I also have a 503 on:
http://10.40.16.198/git/pa-tools/etcs-pa-tools/commits/integration
On the server, in the gitlab-rails log files (production.log), I noticed a lot of:
Started GET "/git/pa-tools/etcs-pa-tools/commits/integration/signatures" for 127.0.0.1 at 2019-01-03 10:32:53 +0100
Processing by Projects::RefsController#logs_tree as JS
Parameters: {"namespace_id"=>"pa-tools", "project_id"=>"etcs-pa-tools", "id"=>"integration"}
Processing by Projects::BlobController#show as JSON
Parameters: {"viewer"=>"rich", "namespace_id"=>"pa-tools", "project_id"=>"etcs-pa-tools", "id"=>"integration/README.md"}
Processing by Projects::CommitsController#signatures as JSON
Parameters: {"namespace_id"=>"pa-tools", "project_id"=>"etcs-pa-tools", "id"=>"integration"}
Gitlab::Git::CommandError (2:TypeError: The given OID is too long):
lib/gitlab/git/wraps_gitaly_errors.rb:13:in `rescue in wrapped_gitaly_errors'
lib/gitlab/git/wraps_gitaly_errors.rb:6:in `wrapped_gitaly_errors'
lib/gitlab/git/repository.rb:334:in `log'
lib/gitlab/git/commit.rb:44:in `where'
app/models/repository.rb:146:in `commits'
app/controllers/projects/commits_controller.rb:71:in `set_commits'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:420:in `set_locale'
lib/gitlab/middleware/multipart.rb:103:in `call'
lib/gitlab/request_profiler/middleware.rb:16:in `call'
lib/gitlab/middleware/go.rb:19:in `call'
lib/gitlab/etag_caching/middleware.rb:13:in `call'
lib/gitlab/middleware/correlation_id.rb:16:in `block in call'
lib/gitlab/correlation_id.rb:15:in `use_id'
lib/gitlab/middleware/correlation_id.rb:15:in `call'
lib/gitlab/middleware/read_only/controller.rb:40:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/basic_health_check.rb:25:in `call'
lib/gitlab/request_context.rb:20:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:29:in `call'
lib/gitlab/middleware/release_env.rb:13:in `call'
Completed 503 Service Unavailable in 64ms (Views: 0.6ms | ActiveRecord: 9.3ms)
screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 14.04 Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.1 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.3 Go Version: unknown
GitLab information Version: 11.6.1 Revision: 598c5a7 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://10.40.16.198/git HTTP Clone URL: http://10.40.16.198/git/some-group/some-project.git SSH Clone URL: git@10.40.16.198:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.4.3 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.3 ? ... OK (8.4.3) 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 Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
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: ... 2/1 ... yes 2/2 ... yes 2/3 ... yes 6/4 ... yes 6/5 ... yes 2/8 ... yes 2/9 ... yes 23/10 ... yes 3/11 ... yes 2/12 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 22
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished