{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8717","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8717/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8717/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8717/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8717","id":56337313,"number":8717,"title":"Update from 6.0.0 to 7.6.2, Merge Requests showing error 500","user":{"login":"chrislapa","id":2101314,"avatar_url":"https://avatars.githubusercontent.com/u/2101314?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislapa","html_url":"https://github.com/chrislapa","followers_url":"https://api.github.com/users/chrislapa/followers","following_url":"https://api.github.com/users/chrislapa/following{/other_user}","gists_url":"https://api.github.com/users/chrislapa/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislapa/subscriptions","organizations_url":"https://api.github.com/users/chrislapa/orgs","repos_url":"https://api.github.com/users/chrislapa/repos","events_url":"https://api.github.com/users/chrislapa/events{/privacy}","received_events_url":"https://api.github.com/users/chrislapa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-03T06:01:07Z","updated_at":"2015-02-05T22:11:46Z","closed_at":null,"body":"Hi,\r\n\r\nI just updated our Bitnami Gitlab installation from v6.0.0 to v7.6.2. I did this by restoring a backup of our v6.0.0 stack to a newly installed v7.6.2 stack. I followed this (guide)[https://wiki.bitnami.com/Applications/BitNami_GitLab#How_to_upgrade_Gitlab.3f].\r\n\r\nIts mostly worked. However when we try view some old merge requests Gitlab will fail to display with a 500 error.\r\n\r\nI checked the production.log and its showing this error for one of the broken merge requests:\r\n```\r\nStarted GET \"/**removed**/**removed**/merge_requests/99\" for 172.28.67.70 at 2015-02-03 16:45:21 +1100\r\nProcessing by Projects::MergeRequestsController#show as HTML\r\n  Parameters: {\"project_id\"=>\"**removed**/**removed**\", \"id\"=>\"99\"}\r\nCompleted 500 Internal Server Error in 214ms\r\n\r\nActionView::Template::Error (undefined method `short_id' for nil:NilClass):\r\n     8:     %div\r\n     9:       = link_to_member(@project, note.author, avatar: false)\r\n    10:       started a discussion on commit\r\n    11:       = link_to(note.noteable.short_id, project_commit_path(note.project, note.noteable), class: 'monospace')\r\n    12:     .last-update.hide.js-toggle-content\r\n    13:       - last_note = discussion_notes.last\r\n    14:       last updated by\r\n  app/views/projects/notes/discussions/_commit.html.haml:11:in `_app_views_projects_notes_discussions__commit_html_haml__2845132147773347950_70011764747100'\r\n  app/views/projects/notes/_discussion.html.haml:13:in `_app_views_projects_notes__discussion_html_haml__4139911571170084056_70011764545480'\r\n  app/views/projects/notes/_notes.html.haml:7:in `block in _app_views_projects_notes__notes_html_haml__3180357081038837234_70011764373560'\r\n  app/views/projects/notes/_notes.html.haml:2:in `each'\r\n  app/views/projects/notes/_notes.html.haml:2:in `_app_views_projects_notes__notes_html_haml__3180357081038837234_70011764373560'\r\n  app/views/projects/notes/_notes_with_form.html.haml:2:in `_app_views_projects_notes__notes_with_form_html_haml__1836016726415457532_70011764235460'\r\n  app/views/projects/merge_requests/_show.html.haml:33:in `_app_views_projects_merge_requests__show_html_haml__1144872974554681124_70011765318520'\r\n  app/views/projects/merge_requests/show.html.haml:1:in `_app_views_projects_merge_requests_show_html_haml__3128752638493311084_70011765271720'\r\n  app/controllers/projects/merge_requests_controller.rb:30:in `show'\r\n```\r\n\r\nI've looked in the mysql database and I can see in the merge_requests table theres an entry with iid 99 with the correct title and other info. I'm happy to post more info, I'm just not sure what at this point in time :/\r\n\r\nThanks,\r\nChris"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/73141072","html_url":"https://github.com/gitlabhq/gitlabhq/issues/8717#issuecomment-73141072","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/8717","id":73141072,"user":{"login":"chrislapa","id":2101314,"avatar_url":"https://avatars.githubusercontent.com/u/2101314?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislapa","html_url":"https://github.com/chrislapa","followers_url":"https://api.github.com/users/chrislapa/followers","following_url":"https://api.github.com/users/chrislapa/following{/other_user}","gists_url":"https://api.github.com/users/chrislapa/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislapa/subscriptions","organizations_url":"https://api.github.com/users/chrislapa/orgs","repos_url":"https://api.github.com/users/chrislapa/repos","events_url":"https://api.github.com/users/chrislapa/events{/privacy}","received_events_url":"https://api.github.com/users/chrislapa/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T22:11:46Z","updated_at":"2015-02-05T22:11:46Z","body":"@akzhan Its not a duplicate of #8732. Whilst it is the same problem, the error in the production log is different. I have followed the update procedure, hence I have already ran:\r\n```bundle install --without development test postgres --deployment\r\nbundle exec rake db:migrate RAILS_ENV=production\r\nbundle exec rake migrate_iids RAILS_ENV=production\r\nbundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production```\r\n\r\nI also ran the checker to find any problems: \r\n```bundle exec rake gitlab:check RAILS_ENV=production\r\n```\r\nHowever it returned fine.\r\n\r\nWill it hurt to try run the migrate_iids step again?"}}