restore to new machine , Integrations page get an Error 500 in version 11.4.0 +
Summary
- When I back up and restore to new machine,I access the Integrations page get an Error 500.
- But this problem only occurs in the repository where webhook is set.
- This problem does not appear in versions below 11.3.8.
- I tried the versions:11.4.0,11.4.3,11.4.4
Steps to reproduce
- 1.set the webhook in repository
- 2.backup and restore to new machine
- 3.Get Integrations page
What is the expected correct behavior?
Successful access integration page
Relevant logs and/or screenshots
When I access the Integrations page:
# gitlab-ctl tail
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/root/server/settings/integrations" for 192.168.1.254 at 2018-11-02 03:44:59 +0000
Processing by Projects::Settings::IntegrationsController#show as HTML
Parameters: {"namespace_id"=>"root", "project_id"=>"server"}
Completed 500 Internal Server Error in 240ms (ActiveRecord: 45.8ms)
ActionView::Template::Error ():
1: %li
2: .row
3: .col-md-8.col-lg-7
4: %strong.light-header= hook.url
5: %div
6: - ProjectHook.triggers.each_value do |event|
7: - if hook.public_send(event)
app/models/hooks/web_hook.rb:62:in `url'
app/views/projects/settings/integrations/_project_hook.html.haml:4:in `_app_views_projects_settings_integrations__project_hook_html_haml___2908511769404831340_69835415296480'
app/views/projects/hooks/_index.html.haml:20:in `block in _app_views_projects_hooks__index_html_haml___4087453399254919278_69835417591480'
app/views/projects/hooks/_index.html.haml:19:in `_app_views_projects_hooks__index_html_haml___4087453399254919278_69835417591480'
app/views/projects/settings/integrations/show.html.haml:4:in `_app_views_projects_settings_integrations_show_html_haml__1707195231195882385_69835419422080'
app/controllers/application_controller.rb:114:in `render'
lib/gitlab/i18n.rb:53:in `with_locale'
lib/gitlab/i18n.rb:59:in `with_user_locale'
app/controllers/application_controller.rb:424: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/rails_queue_duration.rb:22:in `call'
lib/gitlab/metrics/rack_middleware.rb:15:in `block in call'
lib/gitlab/metrics/transaction.rb:53:in `run'
lib/gitlab/metrics/rack_middleware.rb:15: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:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Started GET "/favicon.ico" for 192.168.1.254 at 2018-11-02 03:45:00 +0000
==> /var/log/gitlab/gitlab-rails/production_json.log <==
{"method":"GET","path":"/root/server/settings/integrations","format":"html","controller":"Projects::Settings::IntegrationsController","action":"show","status":500,"error":"ActionView::Template::Error: ","duration":241.89,"view":0.0,"db":45.85,"time":"2018-11-02T03:44:59.856Z","params":[{"key":"namespace_id","value":"root"},{"key":"project_id","value":"server"}],"remote_ip":"192.168.1.254","user_id":1,"username":"root","ua":"Mozilla/5.0 (Windows NT 10.0; Win64;x64; rv:63.0) Gecko/20100101 Firefox/63.0"}
==> /var/log/gitlab/gitlab-workhorse/current <==
2018-11-02_03:45:00.10553 192.168.1.2 @ - - [2018/11/02:03:45:00 +0000] "GET /root/server/settings/integrations HTTP/1.1" 500 2926 "http://192.168.1.2/root/server" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0" 0.266
2018-11-02_03:45:00.19419 192.168.1.2 @ - - [2018/11/02:03:45:00 +0000] "GET /favicon.ico HTTP/1.1" 301 168 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0" 0.054
==> /var/log/gitlab/nginx/gitlab_access.log <==
192.168.1.254 - - [02/Nov/2018:03:45:00 +0000] "GET /root/server/settings/integrations HTTP/1.1" 500 2926 "http://192.168.1.2/root/server" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"
192.168.1.254 - - [02/Nov/2018:03:45:00 +0000] "GET /favicon.ico HTTP/1.1" 301 168 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"