Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8175

Closed
Open
Created Oct 27, 2014 by Administrator@rootOwner

Repo Browser causes 500 Internal Server Error

Created by: rumpelsepp

My gitlab 7.4.2 causes a 500 Error in a particular repository while clicking on the Files menu entry. Here is the production.log. It seems like a trivial template error.

Started GET "/stefan/sublime-config" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:25 +0100
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"stefan/sublime-config"}
Completed 200 OK in 30ms (Views: 16.8ms | ActiveRecord: 3.8ms)
Started GET "/stefan/sublime-config?limit=20&offset=0" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:25 +0100
Processing by ProjectsController#show as JSON
Parameters: {"limit"=>"20", "offset"=>"0", "id"=>"stefan/sublime-config"}
Read fragment views/events/41-20141026221116099163000/c91ba9ea57e7f993fc3adeb2ae533568 (0.2ms)
Read fragment views/events/40-20141026220937815067000/c91ba9ea57e7f993fc3adeb2ae533568 (0.1ms)
Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 1.3ms)
Started GET "/stefan/sublime-config/tree/master" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:26 +0100
Processing by Projects::TreeController#show as HTML
Parameters: {"project_id"=>"stefan/sublime-config", "id"=>"master"}
Completed 500 Internal Server Error in 25ms
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
1: - tree, commit = submodule_links(submodule_item)
2: %tr{ class: "tree-item" }
3: %td.tree-item-file-name
4: %i.fa.fa-archive
app/models/repository.rb:162:in `method_missing'
app/models/repository.rb:228:in `submodule_url_for'
app/helpers/submodule_helper.rb:6:in `submodule_links'
app/views/projects/tree/_submodule_item.html.haml:1:in `_app_views_projects_tree__submodule_item_html_haml___3445974868723698354_16188400'
app/helpers/tree_helper.rb:19:in `render_tree'
app/views/projects/tree/_tree.html.haml:42:in `_app_views_projects_tree__tree_html_haml___2497431146227591856_47998320'
app/views/projects/tree/show.html.haml:9:in `_app_views_projects_tree_show_html_haml___102056269179763191_46880640'
app/controllers/projects/tree_controller.rb:13:in `show'
Started GET "/stefan/sublime-config/tree/master" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:26 +0100
Processing by Projects::TreeController#show as HTML
Parameters: {"project_id"=>"stefan/sublime-config", "id"=>"master"}
Completed 500 Internal Server Error in 36ms
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
1: - tree, commit = submodule_links(submodule_item)
2: %tr{ class: "tree-item" }
3: %td.tree-item-file-name
4: %i.fa.fa-archive
app/models/repository.rb:162:in `method_missing'
app/models/repository.rb:228:in `submodule_url_for'
app/helpers/submodule_helper.rb:6:in `submodule_links'
app/views/projects/tree/_submodule_item.html.haml:1:in `_app_views_projects_tree__submodule_item_html_haml___3445974868723698354_16188400'
app/helpers/tree_helper.rb:19:in `render_tree'
app/views/projects/tree/_tree.html.haml:42:in `_app_views_projects_tree__tree_html_haml___2497431146227591856_47998320'
app/views/projects/tree/show.html.haml:9:in `_app_views_projects_tree_show_html_haml___102056269179763191_46880640'
app/controllers/projects/tree_controller.rb:13:in `show'
Started GET "/stefan/sublime-config?limit=20&offset=0" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:28 +0100
Processing by ProjectsController#show as JSON
Parameters: {"limit"=>"20", "offset"=>"0", "id"=>"stefan/sublime-config"}
Read fragment views/events/41-20141026221116099163000/c91ba9ea57e7f993fc3adeb2ae533568 (0.2ms)
Read fragment views/events/40-20141026220937815067000/c91ba9ea57e7f993fc3adeb2ae533568 (0.1ms)
Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 1.3ms)
Started GET "/admin" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:30 +0100
Processing by Admin::DashboardController#index as HTML
Completed 200 OK in 27ms (Views: 22.4ms | ActiveRecord: 2.5ms)
Started GET "/admin/logs" for XXX.XXX.XXX.XXX at 2014-10-27 08:44:33 +0100
Processing by Admin::LogsController#show as HTML
Assignee
Assign to
Time tracking