Problems after moving gitlab CE to a new server
Created by: toreau
Most seems to work, but commit history is broken. When I click on "Commits" for a project, I get this error message in the log:
Started GET "/gamedev/outset/commits/develop" for 80.241.88.10 at 2014-10-13 11:22:12 +0200 Processing by Projects::CommitsController#show as HTML Parameters: {"project_id"=>"gamedev/outset", "id"=>"develop"} Completed 500 Internal Server Error in 125ms
ActionView::Template::Error (No route matches {:action=>"show", :controller=>"projects/issues", :id=>"OUT-19", :project_id=>#<Project id: 25, name: "Outset", path: "outset", description: "", created_at: "2014-06-07 10:40:30", updated_at: "2014-10-13 08:40:45", creator_id: 3, issues_enabled: true, wall_enabled: true, merge_requests_enabled: true, wiki_enabled: true, namespace_id: 14, issues_tracker: "jira", issues_tracker_id: "OUT", snippets_enabled: true, last_activity_at: "2014-10-13 08:40:45", import_url: "", visibility_level: 0, archived: false, import_status: "none", repository_size: 3165.77, star_count: 0>} missing required keys: [:id]): 3: = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id" 4: 5: %span.str-truncated 6: = link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message" 7: - if commit.description? 8: %a.text-expander.js-toggle-button ... 9: app/helpers/issues_helper.rb:45:in
url_for_issue' lib/gitlab/markdown.rb:186:in
reference_issue' lib/gitlab/markdown.rb:168:inreference_link' lib/gitlab/markdown.rb:128:in
block in parse_references' lib/gitlab/markdown.rb:117:ingsub!' lib/gitlab/markdown.rb:117:in
parse_references' lib/gitlab/markdown.rb:93:inparse' lib/gitlab/markdown.rb:58:in
gfm' app/helpers/gitlab_markdown_helper.rb:22:inlink_to_gfm' app/views/projects/commits/_commit.html.haml:6:in
_app_views_projects_commits__commit_html_haml__1848956833924599131_70297514231000' app/views/projects/commits/_commits.html.haml:10:inblock in _app_views_projects_commits__commits_html_haml__2922043301155869836_70297513980680' app/views/projects/commits/_commits.html.haml:1:in
each' app/views/projects/commits/_commits.html.haml:1:in_app_views_projects_commits__commits_html_haml__2922043301155869836_70297513980680' app/views/projects/commits/show.html.haml:18:in
_app_views_projects_commits_show_html_haml___2308178896301083230_70297513013140' app/controllers/projects/commits_controller.rb:19:in `show'
The way I moved the service to a new server was like this:
- Upgraded to 7.3.2 on the OLD server, saw that everything was working as expected, created a backup and shut down the service.
- Installed 7.3.2 from scratch on the NEW server and restored the backup from the old server.
Any ideas what's wrong? The only difference in the setup is that I changed the unicorn port from 8080 to 8090, because I have JIRA running on port 8080 on the new server. I also changed the hostname in the configuration files.