Error 500 in admin page - ActionView::Template::Error (13:exit status 128)
Summary
get http error 500 when login as admin user (root user)
Steps to reproduce
When login to gitlab as admin user it response 500 error page.
What is the current bug behavior?
Error 500 when loading admin projects page
What is the expected correct behavior?
See admin project page
Relevant logs and/or screenshots
/var/log/gitlab/gitlab-rails/production.log:
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/","format":"html","controller":"RootController","action":"index","status":500,"error":"ActionView::Template::Error: 13:exit status 128","duration":2558.98,"view":0.0,"db":105.76,"time":"2020-05-07T15:24:38.158Z","params":[],"remote_ip":"134.209.34.17","user_id":1,"username":"root","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0","queue_duration":4.83,"gitaly_calls":14,"gitaly_duration":106.53,"correlation_id":"DhFbC8vCXC9"}
Completed 500 Internal Server Error in 2555ms (ActiveRecord: 105.8ms | Elasticsearch: 0.0ms)
ActionView::Template::Error (13:exit status 128):
23: - if project.creator && use_creator_avatar
24: = image_tag avatar_icon_for_user(project.creator, 48), class: "avatar s48", alt:''
25: - else
26: = project_icon(project, alt: '', class: 'avatar project-avatar s48', width: 48, height: 48)
27: .project-details.d-sm-flex.flex-sm-fill.align-items-center
28: .flex-wrapper
29: .d-flex.align-items-center.flex-wrap.project-title
lib/gitlab/gitaly_client.rb:158:in `call'
lib/gitlab/gitaly_client/ref_service.rb:42:in `default_branch_name'
lib/gitlab/git/repository.rb:110:in `root_ref'
app/models/repository.rb:535:in `root_ref'
lib/gitlab/metrics/instrumentation.rb:161:in `block in _uncached_root_ref'
lib/gitlab/metrics/method_call.rb:36:in `measure'
Output of checks
This bug happens on self hosted omnibus gitlab-ce v12.0.2
Results of GitLab application Check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0)
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: ...
4/3 ... yes
6/4 ... yes
8/7 ... yes
4/8 ... yes
4/9 ... yes
4/10 ... yes
1/14 ... yes
4/15 ... yes
9/16 ... yes
17/17 ... yes
17/18 ... yes
1/19 ... yes
20/21 ... yes
20/22 ... yes
22/23 ... yes
22/24 ... yes
22/25 ... yes
23/26 ... yes
25/28 ... yes
27/60 ... yes
27/61 ... yes
20/62 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.5.3 ? ... yes (2.6.3)
Git version >= 2.21.0 ? ... yes (2.21.0)
Git user has default SSH configuration? ... yes
Active users: ... 17
Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
and other checks was OK too.
What I have been done
I also tried gitlab-ctl restart and researched about this kind of error (ActionView::Template::Error) and did other commands recommended in other issues related, but not working and also updated gitlab from verison 11.10 to 12.0.2 but it didn't worked too.
Edited by Amirhossein
