Error 500 while accessing Admin > System Hooks
Summary
The page Admin > System Hooks is returning error 500 when accessed.
Steps to reproduce
Access Admin > System Hooks
What is the current bug behavior?
The page cannot be accessed.
What is the expected correct behavior?
View the page with to manage the System Hooks
Relevant logs and/or screenshots
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/admin/hooks" for 192.168.0.1 at 2018-11-27 14:29:11 +0000
Processing by Admin::HooksController#index as HTML
Completed 500 Internal Server Error in 176ms (ActiveRecord: 8.1ms)
ActionView::Template::Error ():
25: = render 'shared/web_hooks/test_button', triggers: SystemHook.triggers, hook: hook, button_class: 'btn-sm'
26: = link_to 'Edit', edit_admin_hook_path(hook), class: 'btn btn-sm'
27: = link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-remove btn-sm'
28: .monospace= hook.url
29: %div
30: - SystemHook.triggers.each_value do |event|
31: - if hook.public_send(event)
app/views/admin/hooks/index.html.haml:28:in `block in _app_views_admin_hooks_index_html_haml___3882035321763305112_69888539752020'
app/views/admin/hooks/index.html.haml:22:in `_app_views_admin_hooks_index_html_haml___3882035321763305112_69888539752020'
app/controllers/application_controller.rb:116:in `render'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:426:in `set_locale'
lib/gitlab/middleware/multipart.rb:101: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:38:in `call'
lib/gitlab/middleware/read_only.rb:16: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:27:in `call'
lib/gitlab/middleware/release_env.rb:10: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.4.5p335 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.1 Go Version: unknown
GitLab information Version: 11.5.0 Revision: b7b1e8e Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://git.disud.intranet.com.br HTTP Clone URL: http://git.disud.intranet.com.br/some-group/some-project.git SSH Clone URL: ssh://git@git.disud.intranet.com.br:2222/some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.4.1 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 >= 8.4.1 ? ... OK (8.4.1) hooks directories in repos are links: ... 2/1 ... ok 3/2 ... ok 2/3 ... ok 30/4 ... ok 27/5 ... ok 4/6 ... ok 4/7 ... ok 4/9 ... ok 4/10 ... ok 3/11 ... ok 5/13 ... ok 5/15 ... ok 5/16 ... ok 14/17 ... ok 5/18 ... ok 6/19 ... ok 3/20 ... ok 3/21 ... ok 3/22 ... ok 6/24 ... ok 8/25 ... ok 8/26 ... ok 8/27 ... ok 2/28 ... ok 2/29 ... ok 27/30 ... ok 8/32 ... ok 30/33 ... ok 4/34 ... ok 2/35 ... ok 5/36 ... repository is empty 5/39 ... ok 5/40 ... ok 3/44 ... ok 2/45 ... ok 5/46 ... ok 12/47 ... ok 2/48 ... ok 2/49 ... ok 13/50 ... ok 10/51 ... ok 13/54 ... repository is empty 13/55 ... repository is empty 3/58 ... ok 13/59 ... repository is empty 13/60 ... repository is empty 14/61 ... ok 14/62 ... ok 4/63 ... ok 3/64 ... ok 15/65 ... ok 16/66 ... ok 17/67 ... ok 13/68 ... repository is empty 2/69 ... repository is empty 22/70 ... ok 2/71 ... ok 2/73 ... ok 2/74 ... ok 2/75 ... ok 30/76 ... ok 13/78 ... repository is empty 2/79 ... ok 13/80 ... ok 5/81 ... ok 4/82 ... ok 16/83 ... repository is empty 4/86 ... ok 3/87 ... ok 5/88 ... ok 5/89 ... ok 5/90 ... repository is empty 27/91 ... ok 30/92 ... ok 13/94 ... ok 2/96 ... ok 3/97 ... ok 21/98 ... ok 22/99 ... ok 2/100 ... ok 2/102 ... ok 2/103 ... ok 23/104 ... ok 30/105 ... ok 30/106 ... ok 30/107 ... ok 5/109 ... ok 2/110 ... ok 2/111 ... ok 2/112 ... ok 30/113 ... ok 2/114 ... ok 30/115 ... ok 21/116 ... ok 5/117 ... ok 2/119 ... ok 2/120 ... ok 30/121 ... ok 30/122 ... ok 2/124 ... ok 2/125 ... ok 2/126 ... ok 22/127 ... ok 2/132 ... ok 2/133 ... ok 2/134 ... ok 24/135 ... ok 2/136 ... ok 2/137 ... ok 2/138 ... ok 2/139 ... ok 2/140 ... ok 2/141 ... ok 2/142 ... ok 2/143 ... ok 2/144 ... ok 2/145 ... ok 5/146 ... ok 6/147 ... ok 2/148 ... ok 2/149 ... ok 2/150 ... ok 2/151 ... ok 6/152 ... ok 2/153 ... ok 2/154 ... ok 2/155 ... ok 12/156 ... ok 2/157 ... ok 2/158 ... ok 2/159 ... ok 2/160 ... ok 2/161 ... ok 2/162 ... ok 6/163 ... ok 2/164 ... ok 2/165 ... ok 2/166 ... ok 30/168 ... ok 2/169 ... ok 5/171 ... ok 35/172 ... ok 2/173 ... ok 30/174 ... ok 23/175 ... ok 2/176 ... ok 5/177 ... ok 2/178 ... ok 5/179 ... ok 2/180 ... ok 2/181 ... ok 2/182 ... ok 5/183 ... ok 5/184 ... ok 2/185 ... ok 2/186 ... ok 2/187 ... ok 5/188 ... ok 2/189 ... ok 2/190 ... ok 21/191 ... ok 30/192 ... ok 17/193 ... ok 2/194 ... ok 2/195 ... ok 2/196 ... ok 5/197 ... ok 2/198 ... ok 2/200 ... ok 2/201 ... ok 2/202 ... ok 2/203 ... ok 2/205 ... ok 2/206 ... ok 2/207 ... ok 15/208 ... ok 2/209 ... ok 2/210 ... ok 30/211 ... ok 2/212 ... ok 2/213 ... ok 4/214 ... ok 27/215 ... ok 2/216 ... ok 27/217 ... ok 26/218 ... ok 27/219 ... ok 30/220 ... ok 2/221 ... ok 2/222 ... ok 2/223 ... ok 2/224 ... ok 2/225 ... ok 27/226 ... ok 2/227 ... ok 2/228 ... ok 2/229 ... ok 2/230 ... ok 29/231 ... ok 2/232 ... ok 27/233 ... ok 30/234 ... ok 2/235 ... ok 2/236 ... ok 26/237 ... ok 26/238 ... ok 26/239 ... ok 26/240 ... ok 2/241 ... ok 28/242 ... ok 2/243 ... ok 2/244 ... ok 2/245 ... ok 2/246 ... ok 14/247 ... ok 2/248 ... ok 2/249 ... ok 2/250 ... ok 2/251 ... ok 26/252 ... ok 2/253 ... ok 2/255 ... ok 2/256 ... ok 2/257 ... ok 4/258 ... ok 2/259 ... ok 2/260 ... ok 2/261 ... ok 2/263 ... ok 2/264 ... ok 2/265 ... ok 2/266 ... ok 2/267 ... ok 2/268 ... ok 2/269 ... ok 29/270 ... ok 29/271 ... ok 2/272 ... ok 2/273 ... ok 2/274 ... ok 2/275 ... ok 2/276 ... ok 2/277 ... ok 29/278 ... ok 2/279 ... ok 2/280 ... ok 2/281 ... ok 2/282 ... ok 2/283 ... ok 2/284 ... ok 2/285 ... ok 2/286 ... ok 2/287 ... ok 27/290 ... ok 35/291 ... 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 Gitaly ...
default ... OK
Checking Gitaly ... 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: ... 2/1 ... yes 3/2 ... yes 2/3 ... yes 30/4 ... yes 27/5 ... yes 4/6 ... yes 4/7 ... yes 4/9 ... yes 4/10 ... yes 3/11 ... yes 5/13 ... yes 5/15 ... yes 5/16 ... yes 14/17 ... yes 5/18 ... yes 6/19 ... yes 3/20 ... yes 3/21 ... yes 3/22 ... yes 6/24 ... yes 8/25 ... yes 8/26 ... yes 8/27 ... yes 2/28 ... yes 2/29 ... yes 27/30 ... yes 8/32 ... yes 30/33 ... yes 4/34 ... yes 2/35 ... yes 5/36 ... yes 5/39 ... yes 5/40 ... yes 3/44 ... yes 2/45 ... yes 5/46 ... yes 12/47 ... yes 2/48 ... yes 2/49 ... yes 13/50 ... yes 10/51 ... yes 13/54 ... yes 13/55 ... yes 3/58 ... yes 13/59 ... yes 13/60 ... yes 14/61 ... yes 14/62 ... yes 4/63 ... yes 3/64 ... yes 15/65 ... yes 16/66 ... yes 17/67 ... yes 13/68 ... yes 2/69 ... yes 22/70 ... yes 2/71 ... yes 2/73 ... yes 2/74 ... yes 2/75 ... yes 30/76 ... yes 13/78 ... yes 2/79 ... yes 13/80 ... yes 5/81 ... yes 4/82 ... yes 16/83 ... yes 4/86 ... yes 3/87 ... yes 5/88 ... yes 5/89 ... yes 5/90 ... yes 27/91 ... yes 30/92 ... yes 13/94 ... yes 2/96 ... yes 3/97 ... yes 21/98 ... yes 22/99 ... yes 2/100 ... yes 2/102 ... yes 2/103 ... yes 23/104 ... yes 30/105 ... yes 30/106 ... yes 30/107 ... yes 5/109 ... yes 2/110 ... yes 2/111 ... yes 2/112 ... yes 30/113 ... yes 2/114 ... yes 30/115 ... yes 21/116 ... yes 5/117 ... yes 2/119 ... yes 2/120 ... yes 30/121 ... yes 30/122 ... yes 2/124 ... yes 2/125 ... yes 2/126 ... yes 22/127 ... yes 2/132 ... yes 2/133 ... yes 2/134 ... yes 24/135 ... yes 2/136 ... yes 2/137 ... yes 2/138 ... yes 2/139 ... yes 2/140 ... yes 2/141 ... yes 2/142 ... yes 2/143 ... yes 2/144 ... yes 2/145 ... yes 5/146 ... yes 6/147 ... yes 2/148 ... yes 2/149 ... yes 2/150 ... yes 2/151 ... yes 6/152 ... yes 2/153 ... yes 2/154 ... yes 2/155 ... yes 12/156 ... yes 2/157 ... yes 2/158 ... yes 2/159 ... yes 2/160 ... yes 2/161 ... yes 2/162 ... yes 6/163 ... yes 2/164 ... yes 2/165 ... yes 2/166 ... yes 30/168 ... yes 2/169 ... yes 5/171 ... yes 35/172 ... yes 2/173 ... yes 30/174 ... yes 23/175 ... yes 2/176 ... yes 5/177 ... yes 2/178 ... yes 5/179 ... yes 2/180 ... yes 2/181 ... yes 2/182 ... yes 5/183 ... yes 5/184 ... yes 2/185 ... yes 2/186 ... yes 2/187 ... yes 5/188 ... yes 2/189 ... yes 2/190 ... yes 21/191 ... yes 30/192 ... yes 17/193 ... yes 2/194 ... yes 2/195 ... yes 2/196 ... yes 5/197 ... yes 2/198 ... yes 2/200 ... yes 2/201 ... yes 2/202 ... yes 2/203 ... yes 2/205 ... yes 2/206 ... yes 2/207 ... yes 15/208 ... yes 2/209 ... yes 2/210 ... yes 30/211 ... yes 2/212 ... yes 2/213 ... yes 4/214 ... yes 27/215 ... yes 2/216 ... yes 27/217 ... yes 26/218 ... yes 27/219 ... yes 30/220 ... yes 2/221 ... yes 2/222 ... yes 2/223 ... yes 2/224 ... yes 2/225 ... yes 27/226 ... yes 2/227 ... yes 2/228 ... yes 2/229 ... yes 2/230 ... yes 29/231 ... yes 2/232 ... yes 27/233 ... yes 30/234 ... yes 2/235 ... yes 2/236 ... yes 26/237 ... yes 26/238 ... yes 26/239 ... yes 26/240 ... yes 2/241 ... yes 28/242 ... yes 2/243 ... yes 2/244 ... yes 2/245 ... yes 2/246 ... yes 14/247 ... yes 2/248 ... yes 2/249 ... yes 2/250 ... yes 2/251 ... yes 26/252 ... yes 2/253 ... yes 2/255 ... yes 2/256 ... yes 2/257 ... yes 4/258 ... yes 2/259 ... yes 2/260 ... yes 2/261 ... yes 2/263 ... yes 2/264 ... yes 2/265 ... yes 2/266 ... yes 2/267 ... yes 2/268 ... yes 2/269 ... yes 29/270 ... yes 29/271 ... yes 2/272 ... yes 2/273 ... yes 2/274 ... yes 2/275 ... yes 2/276 ... yes 2/277 ... yes 29/278 ... yes 2/279 ... yes 2/280 ... yes 2/281 ... yes 2/282 ... yes 2/283 ... yes 2/284 ... yes 2/285 ... yes 2/286 ... yes 2/287 ... yes 27/290 ... yes 35/291 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.5) Git version >= 2.9.5 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 11
Checking GitLab ... Finished