2.3 HTTP 500 on Dashboard
Created by: jhaubrich
We've been running 2.3 for a couple weeks and loving it. Yesterday it failed with a 500 error. We need help understanding the error.
What we tried: We restored the VM image back to 2.2, backing up the database and gitolite directory before doing so. We then upgraded to 2.3, and restored our database and gitolite -- Arriving at the same error.
EDIT: It's apparently just the dashboard that croaks.
Started GET "/" for 10.0.2.2 at 2012-04-18 14:18:01 +0000
Processing by DashboardController#index as HTML
Rendered dashboard/_projects_feed.html.haml (11.5ms)
Rendered events/_commit.html.haml (1.0ms)
Rendered events/_commit.html.haml (0.8ms)
Rendered events/_event_push.html.haml (31.5ms)
Rendered events/_event.html.haml (31.9ms)
Rendered dashboard/_merge_requests_feed.html.haml (3.3ms)
Rendered dashboard/_issues_feed.html.haml (6.1ms)
Rendered events/_commit.html.haml (1.1ms)
Rendered events/_commit.html.haml (1.0ms)
Rendered events/_event_push.html.haml (55.4ms)
Rendered events/_event_push.html.haml (32.7ms)
Rendered events/_event.html.haml (89.0ms)
Rendered dashboard/index.html.haml within layouts/application
(175.2ms)
Completed 500 Internal Server Error in 275ms
ActionView::Template::Error (undefined method `id' for nil:NilClass):
29: = time_ago_in_words(event.created_at)
30: ago.
31: - if event.commits.count > 1
32: = link_to
compare_project_commits_path(event.project, :from =>
event.commits.first.prev_commit_id, :to => event.commits.last.id) do
33: %strong
#{event.commits.first.commit.id[0..7]}...#{event.commits.last.id[0..7]}
34: - project = event.project
35: %ul.unstyled.event_commits
app/models/commit.rb:121:in `prev_commit_id'
app/views/events/_event_push.html.haml:32:in
`_app_views_events__event_push_html_haml__3234644204584943804_21463360'
app/views/events/_event.html.haml:12:in
`_app_views_events__event_html_haml__3925317783565474884_47524480'
app/views/dashboard/index.html.haml:77:in
`_app_views_dashboard_index_html_haml___3423784599750354499_40496020'