500 error when importing a project...
- I am using recent version 8.9.1 on Ubuntu.
- I created a new project and used a lot of featues: Git reposity, tag, issues, wiki pages, GitLab CI, attachements...
- Export worked.
- Import caused a 500 error.
The log looks as follows:
Started POST "/import/gitlab_project" for IP at 2016-06-27 11:18:53 +0200
Processing by Import::GitlabProjectsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "namespace_id"=>"1", "path"=>"full-import-test", "file"=>#<ActionDispatch::Http::UploadedFile:0x0000000a0f4790 @tempfile=#Tempfile:/tmp/RackMultipart20160627-30083-b9e8j6.gz, @original_filename="2016-06-27_11-15-823_project_export.tar.gz", @content_type="application/gzip", @headers="Content-Disposition: form-data; name="file"; filename="2016-06-27_11-15-823_project_export.tar.gz"\r\nContent-Type: application/gzip\r\n">}
Import job started for root/full-import-test with job ID 24338d967b5ed033d492dbce
Redirected to https://gitlab-ee.sc.dlr.de/root/full-import-test
Completed 302 Found in 269ms (ActiveRecord: 20.1ms)
Started GET "/root/full-import-test" for IP at 2016-06-27 11:18:53 +0200
Processing by ProjectsController#show as HTML
Parameters: {"namespace_id"=>"root", "id"=>"full-import-test"}
Redirected to https://gitlab-ee.sc.dlr.de/root/full-import-test/import
Completed 302 Found in 110ms (ActiveRecord: 7.5ms)
Started GET "/root/full-import-test/import" for IP at 2016-06-27 11:18:54 +0200
Processing by Projects::ImportsController#show as HTML
Parameters: {"namespace_id"=>"root", "project_id"=>"full-import-test"}
Completed 200 OK in 386ms (Views: 262.4ms | ActiveRecord: 17.7ms)
Started POST "/ci/api/v1/builds/register.json" for 129.247.111.59 at 2016-06-27 11:18:55 +0200
Started POST "/ci/api/v1/builds/register.json" for 129.247.111.59 at 2016-06-27 11:18:58 +0200
Started GET "/root/full-import-test/import" for IP at 2016-06-27 11:18:59 +0200
Processing by Projects::ImportsController#show as HTML
Parameters: {"namespace_id"=>"root", "project_id"=>"full-import-test"}
Redirected to https://gitlab-ee.sc.dlr.de/root/full-import-test
Completed 302 Found in 184ms (ActiveRecord: 8.1ms)
Started GET "/root/full-import-test" for IP at 2016-06-27 11:19:00 +0200
Processing by ProjectsController#show as HTML
Parameters: {"namespace_id"=>"root", "id"=>"full-import-test"}
Completed 500 Internal Server Error in 139ms (ActiveRecord: 10.9ms)
ActionView::Template::Error (undefined method `gsub' for nil:NilClass):
1: - if event = last_push_event
2: - if show_last_push_widget?(event)
3: .row-content-block.top-block.clear-block.hidden-xs
4: %div{ class: (container_class) }
lib/gitlab/git.rb:9:in `ref_name'
app/models/event.rb:247:in `branch_name'
app/models/user.rb:524:in `block in recent_push'
app/models/user.rb:520:in `recent_push'
app/helpers/projects_helper.rb:310:in `last_push_event'
app/views/projects/_last_push.html.haml:1:in `_app_views_projects__last_push_html_haml__365029051055177571_97375560'
app/views/projects/show.html.haml:12:in `_app_views_projects_show_html_haml__3701115501344615049_173142360'
app/controllers/projects_controller.rb:111:in `block (2 levels) in show'
app/controllers/projects_controller.rb:103:in `show'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
Started GET "/root/full-import-test/import" for IP at 2016-06-27 11:19:00 +0200
Processing by Projects::ImportsController#show as HTML
Parameters: {"namespace_id"=>"root", "project_id"=>"full-import-test"}
Redirected to https://gitlab-ee.sc.dlr.de/root/full-import-test
Completed 302 Found in 108ms (ActiveRecord: 6.6ms)
Started GET "/root/full-import-test" for IP at 2016-06-27 11:19:00 +0200
Processing by ProjectsController#show as HTML
Parameters: {"namespace_id"=>"root", "id"=>"full-import-test"}
Completed 500 Internal Server Error in 139ms (ActiveRecord: 9.8ms)
ActionView::Template::Error (undefined method `gsub' for nil:NilClass):
1: - if event = last_push_event
2: - if show_last_push_widget?(event)
3: .row-content-block.top-block.clear-block.hidden-xs
4: %div{ class: (container_class) }
lib/gitlab/git.rb:9:in `ref_name'
app/models/event.rb:247:in `branch_name'
app/models/user.rb:524:in `block in recent_push'
app/models/user.rb:520:in `recent_push'
app/helpers/projects_helper.rb:310:in `last_push_event'
app/views/projects/_last_push.html.haml:1:in `_app_views_projects__last_push_html_haml__365029051055177571_66188660'
app/views/projects/show.html.haml:12:in `_app_views_projects_show_html_haml__3701115501344615049_66971180'
app/controllers/projects_controller.rb:111:in `block (2 levels) in show'
app/controllers/projects_controller.rb:103:in `show'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/middleware/readonly_geo.rb:29:in `call'
Started POST "/ci/api/v1/builds/register.json" for 129.247.111.59 at 2016-06-27 11:19:01 +0200
WebHook Error => execution expired