Error Code 500 when trying to open any project or profile settings
Summary
Log shows this error
ActionView::Template::Error (super: no superclass method `commit_email_hostname' for #<ApplicationSetting:0x000000001367d870>):
12: %li.commit.flex-row.js-toggle-container{ id: "commit-#{commit.short_id}" }
13:
14: .avatar-cell.d-none.d-sm-block
15: = author_avatar(commit, size: 36, has_tooltip: false)
16:
17: .commit-detail.flex-list
18: .commit-content.qa-commit-content
Steps to reproduce
Don't know, maybe my own only. Unicorn and nginx from gitlab is disabled.
What is the current bug behavior?
I see internal server error code 500 from browser
What is the expected correct behavior?
No errors
Relevant logs and/or screenshots
=> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/audition2revival/dancegame" for 88.206.14.127 at 2019-02-10 11:33:53 +0100
Processing by ProjectsController#show as HTML
Parameters: {"namespace_id"=>"audition2revival", "id"=>"dancegame"}
Completed 500 Internal Server Error in 146ms (ActiveRecord: 12.3ms)
ActionView::Template::Error (super: no superclass method `commit_email_hostname' for #<ApplicationSetting:0x000000001367d870>):
12: %li.commit.flex-row.js-toggle-container{ id: "commit-#{commit.short_id}" }
13:
14: .avatar-cell.d-none.d-sm-block
15: = author_avatar(commit, size: 36, has_tooltip: false)
16:
17: .commit-detail.flex-list
18: .commit-content.qa-commit-content
app/models/application_setting.rb:370:in `commit_email_hostname'
lib/gitlab/private_commit_email.rb:9:in `regex'
lib/gitlab/private_commit_email.rb:15:in `user_id_for_email'
lib/gitlab/private_commit_email.rb:22:in `block in user_ids_for_emails'
lib/gitlab/private_commit_email.rb:22:in `map'
lib/gitlab/private_commit_email.rb:22:in `user_ids_for_emails'
app/models/user.rb:371:in `by_any_email'
app/models/commit.rb:236:in `block in lazy_author'
app/models/commit.rb:250:in `author'
lib/gitlab/cache/request_cache.rb:43:in `block (3 levels) in request_cache'
lib/gitlab/cache/request_cache.rb:43:in `block (2 levels) in request_cache'
app/helpers/avatars_helper.rb:52:in `author_avatar'
app/views/projects/commits/_commit.html.haml:15:in `_app_views_projects_commits__commit_html_haml__2599431056254577917_173131020'
app/views/shared/_commit_well.html.haml:4:in `_app_views_shared__commit_well_html_haml__101539621414542804_173212020'
app/views/projects/_files.html.haml:13:in `_app_views_projects__files_html_haml___61749361132074815_177261620'
app/views/projects/show.html.haml:34:in `_app_views_projects_show_html_haml___4069087294578226380_149270200'
app/controllers/application_controller.rb:113:in `render'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:417: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:20: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'
Started GET "/favicon.ico" for 88.206.14.127 at 2019-02-10 11:33:53 +0100
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/audition2revival/dancegame","format":"html","controller":"ProjectsController","action":"show","status":500,"error":"ActionView::Template::Error: super: no superclass method `commit_email_hostname' for #<ApplicationSetting:0x000000001367d870>","duration":146.62,"view":0.0,"db":12.33,"time":"2019-02-10T10:33:53.667Z","params":[{"key":"namespace_id","value":"audition2revival"},{"key":"id","value":"dancegame"}],"remote_ip":"88.206.14.127","user_id":2,"username":"Wadimich","ua":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36","gitaly_calls":7,"correlation_id":"3ece1d8b-9397-403f-aa10-6d08d7fa44d4"}
Output of checks
This bug is on community edition
Results of GitLab environment info
System information
System: Ubuntu 16.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.2
Redis Version: 3.2.12
Git Version: 2.18.1
Sidekiq Version:5.2.3
Go Version: unknown
GitLab information
Version: 11.7.5
Revision: c5b5b18
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://gitlab.wadimich.ru
HTTP Clone URL: http://gitlab.wadimich.ru/some-group/some-project.git
SSH Clone URL: git@gitlab.wadimich.ru:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 8.4.4
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
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4)
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? ... skipped (no tmp uploads folder yet)
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/1 ... yes
4/2 ... yes
4/3 ... yes
4/5 ... yes
2/6 ... 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: ... 3
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished