2013-09-28 2 views
1

우분투 12.04 시스템에 gitlab 6.0이 설치되어 있습니다. 업그레이드 가이드를 따르는 경우 몇 가지 레이크 명령을 실행해야합니다. 시스템gitlab을 업그레이드하면 "migrate_iids '작업을 빌드하는 방법을 모른다"

[email protected]:/home/git/gitlab# git branch 
    6-0-stable 
* 6-1-stable 

[email protected]:/home/git/gitlab# ruby --version 
ruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu] 

[email protected]:/home/git/gitlab# gem --version 
2.0.7 

[email protected]:/home/git/gitlab# rake --version 
rake, version 10.0.4 

왜 내가 아닌 레이크을 실행할 수 있습니다에 대한

Upgrade from 6-0-stable to 6-1-stable

[email protected]:/home/git/gitlab/lib/tasks/migrate# sudo -u git -H bundle exec rake migrate_iids RAILS_ENV=production --trace 
(in /home/git/gitlab) 
rake aborted! 
Don't know how to build task 'migrate_iids' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/task_manager.rb:49:in `[]' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:148:in `invoke_task' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `each' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:75:in `run' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/bin/rake:33:in `<top (required)>' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load' 
/home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>' 

추가 정보?

답변

1

해결책을 찾았습니다.

6-0 안정에서 6-1 안정으로 분기를 전환하면 해당 파일이 제거 된 것처럼 보입니다.

내가 자식을 실행하는 6-1-0 분기에 --hard 재설정하여 자식 상태

[email protected]:/home/git/gitlab# git status 
# On branch 6-1-stable 
# Changes not staged for commit: 
# (use "git add/rm <file>..." to update what will be committed) 
# (use "git checkout -- <file>..." to discard changes in working directory) 
# 
# deleted: lib/tasks/migrate/migrate_iids.rake 
# 
# Untracked files: 
# (use "git add <file>..." to include in what will be committed) 
# 
# app/models/deprecated/ 
# lib/tasks/migrate/migrate_global_projects.rake 
# lib/tasks/migrate/migrate_groups.rake 
# lib/tasks/migrate/migrate_inline_notes.rake 
# lib/tasks/migrate/migrate_keys.rake 
# lib/tasks/migrate/migrate_milestones.rake 
# lib/tasks/migrate/migrate_mr.rake 
# lib/tasks/migrate/migrate_note_linecode.rake 

을 실행하여이 발견, 나는 레이크

를 실행 할 수 있었다
관련 문제