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
  • #7896

Closed
Open
Created Sep 29, 2014 by Administrator@rootOwner

500 error while accessing dashboard after pushing

Created by: dmb-dz

After cloning a project from a colleague's namespace I was able to successfully push, although it has a visibility level of "private" (not sure if this is related though).

Since the push I'm not able to view the global dashboard as well as the project dashboard.

production.log:

Started GET "/user/repoId" for 127.0.0.1 at 2014-09-29 13:47:14 +0200
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"user/repoId"}
Completed 500 Internal Server Error in 77ms

ActionView::Template::Error (undefined method `[]' for nil:NilClass):
    1: - if show_last_push_widget?(event)
    2:   .event-last-push
    3:     .event-last-push-text
    4:       %span You pushed to
  app/models/event.rb:186:in `branch?'
  app/models/event.rb:257:in `last_push_to_non_root?'
  app/helpers/application_helper.rb:125:in `show_last_push_widget?'
  app/views/events/_event_last_push.html.haml:1:in `_app_views_events__event_last_push_html_haml___1114844305354101162_57006500'
  app/views/projects/show.html.haml:16:in `_app_views_projects_show_html_haml__3523769067830636175_44148240'
  app/controllers/projects_controller.rb:71:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:65:in `show'


Started GET "/" for 127.0.0.1 at 2014-09-29 13:47:30 +0200
Processing by DashboardController#show as HTML
Completed 500 Internal Server Error in 49ms

ActionView::Template::Error (undefined method `[]' for nil:NilClass):
    1: - if show_last_push_widget?(event)
    2:   .event-last-push
    3:     .event-last-push-text
    4:       %span You pushed to
  app/models/event.rb:186:in `branch?'
  app/models/event.rb:257:in `last_push_to_non_root?'
  app/helpers/application_helper.rb:125:in `show_last_push_widget?'
  app/views/events/_event_last_push.html.haml:1:in `_app_views_events__event_last_push_html_haml___1114844305354101162_43641520'
  app/views/dashboard/_activities.html.haml:1:in `_app_views_dashboard__activities_html_haml__3686308594697172168_117091020'
  app/views/dashboard/show.html.haml:4:in `_app_views_dashboard_show_html_haml__1170756654305156191_118203040'
  app/controllers/dashboard_controller.rb:27:in `show'

There is only one "master" branch in the repository and we're using GitLab 7.3.1 1660aa23. Already restarted gitlab, cleared the caches, recompiled assets, removed cookies. Any ideas?

Assignee
Assign to
Time tracking