Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3312

Closed
Open
Created Mar 23, 2013 by Administrator@rootOwner

Task gitlab:wiki:migrate fails

Created by: krymen

I'm trying to update from 4.2 to 5.0 and unfortunatelly task gitlab:wiki:migrate is failing:

# sudo -u git -H bundle exec rake gitlab:wiki:migrate RAILS_ENV=production

Migrating Wiki for 'nt3.bundles.bank'
Initialized empty Git repository in /home/git/repositories/nt3.bundles.bank.wiki.git/
  Creating page 'Diagram stanów wniosku kredytowego'...
  Created page 'Diagram stanów wniosku kredytowego' [OK]
    Creating revisions...
rake aborted!
undefined method `update' for nil:NilClass
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:93:in `block in create_revisions'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:82:in `each'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:82:in `create_revisions'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:74:in `create_page_and_revisions'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:50:in `block in create_pages'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:49:in `each'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:49:in `create_pages'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:17:in `block in migrate!'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:14:in `each'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:14:in `migrate!'
/home/git/gitlab/lib/tasks/gitlab/migrate_wiki.rake:17:in `block (3 levels) in <top (required)>'

After running again:

# sudo -u git -H bundle exec rake gitlab:wiki:migrate RAILS_ENV=production

Migrating Wiki for 'nt3.bundles.bank'
  Creating page 'Diagram stanów wniosku kredytowego'...
  Failed to create page 'Diagram-stanów-wniosku-kredytowego' [FAILED]
  Creating page 'Definition of Done'...
rake aborted!
incompatible character encodings: UTF-8 and ASCII-8BIT
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/grit-2.5.0/lib/grit/index.rb:176:in `%'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/grit-2.5.0/lib/grit/index.rb:176:in `block in write_tree'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/grit-2.5.0/lib/grit/index.rb:171:in `each'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/grit-2.5.0/lib/grit/index.rb:171:in `write_tree'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/grit-2.5.0/lib/grit/index.rb:123:in `commit'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/gollum-5dcd3c8c8f68/lib/gollum/committer.rb:163:in `commit'
/home/git/gitlab/vendor/bundle/ruby/1.9.1/bundler/gems/gollum-5dcd3c8c8f68/lib/gollum/wiki.rb:327:in `write_page'
/home/git/gitlab/app/models/gollum_wiki.rb:74:in `create_page'
/home/git/gitlab/app/models/wiki_page.rb:168:in `save'
/home/git/gitlab/app/models/wiki_page.rb:127:in `create'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:69:in `create_page_and_revisions'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:50:in `block in create_pages'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:49:in `each'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:49:in `create_pages'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:17:in `block in migrate!'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:14:in `each'
/home/git/gitlab/lib/wiki_to_gollum_migrator.rb:14:in `migrate!'
/home/git/gitlab/lib/tasks/gitlab/migrate_wiki.rake:17:in `block (3 levels) in <top (required)>'
Assignee
Assign to
Time tracking