ActionView::Template::Error (comparison of String with 2 failed) in Russian locale
Summary
«ActionView::Template::Error (comparison of String with 2 failed)» on /admin/gitaly_servers page when Russian locale set in profile.
Steps to reproduce
- Go to Profile
- Choose «Русский» in Preferred language.
- Update profile settings.
- Got to Admin area → Gitaly Servers
What is the current bug behavior?
HTTP 500 error page.
What is the expected correct behavior?
Gitaly servers info page.
Relevant logs and/or screenshots
web_1 | ==> /var/log/gitlab/gitlab-rails/production_json.log <==
web_1 | {"method":"GET","path":"/admin/gitaly_servers","format":"html","controller":"Admin::GitalyServersController","action":"index","status":500,"error":"ActionView::Template::Error: comparison of String with 2 failed","duration":62.78,"view":0.0,"db":5.66,"time":"2018-03-19T18:14:12.020Z","params":[],"remote_ip":"172.18.0.3","user_id":2,"username":"mekras"}
web_1 |
web_1 | ==> /var/log/gitlab/gitlab-rails/production.log <==
web_1 |
web_1 | ActionView::Template::Error (comparison of String with 2 failed):
web_1 | 9: %thead.hidden-sm.hidden-xs
web_1 | 10: %tr
web_1 | 11: %th= _("Storage")
web_1 | 12: %th= n_("Gitaly|Address")
web_1 | 13: %th= _("Server version")
web_1 | 14: %th= _("Git version")
web_1 | 15: %th= _("Up to date")
web_1 | app/views/admin/gitaly_servers/index.html.haml:12:in `_app_views_admin_gitaly_servers_index_html_haml__1942829938871587855_69866189395700'
web_1 | lib/gitlab/i18n.rb:47:in `with_locale'
web_1 | lib/gitlab/i18n.rb:53:in `with_user_locale'
web_1 | app/controllers/application_controller.rb:325:in `set_locale'
web_1 | lib/gitlab/middleware/multipart.rb:95:in `call'
web_1 | lib/gitlab/request_profiler/middleware.rb:14:in `call'
web_1 | lib/gitlab/middleware/go.rb:17:in `call'
web_1 | lib/gitlab/etag_caching/middleware.rb:11:in `call'
web_1 | lib/gitlab/middleware/read_only.rb:31:in `call'
web_1 | lib/gitlab/request_context.rb:18:in `call'
web_1 | lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: 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: unknownGitLab information Version: 10.5.4 Revision: 8d768f9 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://… HTTP Clone URL: http://…/some-group/some-project.git SSH Clone URL: git@…:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 6.0.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 Shell ...GitLab Shell version >= 6.0.3 ? ... OK (6.0.3) 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: ... 5/1 ... ok 16/2 ... ok 16/3 ... ok 16/4 ... ok 16/5 ... ok 20/6 ... ok 16/7 ... ok 5/15 ... ok 16/17 ... ok 11/18 ... repository is empty 16/19 ... ok 16/20 ... ok 16/21 ... ok 16/22 ... ok 16/23 ... ok 2/25 ... repository is empty 16/26 ... ok 13/27 ... ok 13/28 ... ok 13/29 ... ok 13/31 ... ok 13/32 ... repository is empty 11/33 ... repository is empty 16/34 ... ok 16/36 ... ok 16/38 ... ok 16/40 ... ok 11/41 ... ok 13/42 ... ok 13/44 ... ok 2/45 ... ok 16/46 ... ok 5/47 ... ok 16/48 ... ok 13/49 ... repository is empty 13/50 ... ok 16/51 ... ok 13/52 ... ok 13/53 ... ok 16/54 ... ok 27/91 ... ok 27/92 ... ok 27/93 ... repository is empty 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: ... 5/1 ... yes 16/2 ... yes 16/3 ... yes 16/4 ... yes 16/5 ... yes 20/6 ... yes 16/7 ... yes 5/15 ... yes 16/17 ... yes 11/18 ... yes 16/19 ... yes 16/20 ... yes 16/21 ... yes 16/22 ... yes 16/23 ... yes 2/25 ... yes 16/26 ... yes 13/27 ... yes 13/28 ... yes 13/29 ... yes 13/31 ... yes 13/32 ... yes 11/33 ... yes 16/34 ... yes 16/36 ... yes 16/38 ... yes 16/40 ... yes 11/41 ... yes 13/42 ... yes 13/44 ... yes 2/45 ... yes 16/46 ... yes 5/47 ... yes 16/48 ... yes 13/49 ... yes 13/50 ... yes 16/51 ... yes 13/52 ... yes 13/53 ... yes 16/54 ... yes 27/91 ... yes 27/92 ... yes 27/93 ... 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: ... 16
Checking GitLab ... Finished