Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 22
    • Issues 22
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #30382
Closed
Open
Issue created Apr 03, 2017 by xasan@xasanmarabu

Migration from Non-omnibus to omnibus(and mysql to postgresql)

Hello, the main idea was to migrate from source installation Gitlab CE version 8.13.3 to Omnibus inside the docker container with the same version. And then implement turn-based upgrading to recent version of Gitlab through docker.

So, I've pulled official image from dockerhub -- gitlab/gitlab-ce:8.13.3-ce.0. After that I used off doc https://docs.gitlab.com/ee/update/mysql_to_postgresql.html Backup from the old server was created, mysql dump was converted to postgresql and reloaded to the tar file with backup which had been created by gitlab-rake.

Importing with gitlab-rake was completed successfully. All repositories are accessible and we are able to create repos BUT when we try to add file, edit and commit via web we get "JSON syntax check failed:" on the top of the window.

gitlab-ctl tail doesn't show any errors or warnings... all statuses are OK.gitlab_migr_issue_01

I've tried to find out how to enable debug mode for logs, but with no luck.

Our /etc/gitlab/gitlab.rb contains only an option external_url, as I can understand bundled postgres doesn't require configuration in gitlab.rb.

Logs from gitlab-ctl tail when trying to commit edited file:

==> /var/log/gitlab/gitlab-rails/production.log <== Started PUT "/po/potools/update/master/TODO" for 10.67.21.79 at 2017-04-03 12:26:16 +0000 Processing by Projects::BlobController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iZIiTnGV5Xz8umlXe3xt9kIm8jzNzHz1bBxlfaZYUSuZ90g0nx4hUdWoCWgwaRV1D3L2t8tc+WA8O/3ObSqsOQ==", "file_path"=>"TODO", "encoding"=>"text", "commit_message"=>"Update TODO asd", "target_branch"=>"master", "original_branch"=>"master", "last_commit_sha"=>"8bcbc2cec149c82d09ef9873138874c169e994fa", "content"=>"* make SM get instead ping, when host resolving\r\n* add multiprotocol support for liferaytool\r\n###test1", "from_merge_request_id"=>"", "namespace_id"=>"po", "project_id"=>"potools", "id"=>"master/TODO"} Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2017-04-03 12:26:16 +0000

==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <== I, [2017-04-03T12:26:21.690264 #6060 (closed)] INFO -- : POST http://127.0.0.1:8080/api/v3/internal/allowed 5.07751

==> /var/log/gitlab/gitlab-rails/production.log <== Completed 200 OK in 5861ms (Views: 179.2ms | ActiveRecord: 22.0ms)

==> /var/log/gitlab/gitlab-workhorse/current <== 2017-04-03_12:26:21.89286 test.corp @ - - [2017-04-03 12:26:16.009869755 +0000 UTC] "POST /po/potools/update/master/TODO HTTP/1.1" 200 33612 "http://test.corp/po/potools/update/master/TODO" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36" 5.882773

==> /var/log/gitlab/nginx/gitlab_access.log <== 10.67.21.79 - - [03/Apr/2017:12:26:21 +0000] "POST /po/potools/update/master/TODO HTTP/1.1" 200 9133 "http://test.corp/po/potools/update/master/TODO" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36"

Assignee
Assign to
Time tracking