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:
- Created a repo.
- 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.