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

Closed
Open
Created Sep 26, 2014 by Administrator@rootOwner

500 error on every page for a user. Gitlab 7.3.1

Created by: spotzero

We're having a strange issue with Gitlab 7.3.1

Steps:

  1. Created a repo.
  2. Pushed master branch. 3, Pushed another branch.

The user who pushed the branches then gets a 500 error on every single gitlab page. Gitlab works normally for other users, expect for the activity feed on that project, which is blank.

Another user pushed a commit to the second branch of the offending project, and now that user also gets 500 errors on every page.

We see the following in the gitlab/log/production.log file:

Started GET "/" for <IP> at 2014-09-26 16:28:37 +0000
Processing by DashboardController#show as HTML
Completed 500 Internal Server Error in 538ms

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__1603907172325218351_72281520'
  app/views/dashboard/_activities.html.haml:1:in `_app_views_dashboard__activities_html_haml__1905904604618385927_69086220'
  app/views/dashboard/show.html.haml:4:in `_app_views_dashboard_show_html_haml__1202433802199533898_45914720'
  app/controllers/dashboard_controller.rb:27:in `show'

We've tried clearing the asset cache and restarting gitlab, but the problem persists.

Assignee
Assign to
Time tracking