Coping with gitlab ssh key syncronization bug

浪子不回头ぞ 提交于 2019-12-08 03:45:07

问题


I attempted to use a solution posted here: GitLab v5.0 git push problems to fix the ssh keys getting out of sync problem.

However, when I run the rake command as both root & git users on the repository server I get the following message:

root@gitlab /home/git# rake gitlab:shell:setup RAILS_ENV=production --TRACE

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:495:in `raw_load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'

How is the rake command supposed to be used to fix the synchronization problem?


回答1:


It could be similar to this issue 3922:

You must execute this command in the GitLab installation directory containing the Rakefile

So make sure to go in the gitlab directory where you can see the Rakefile.



来源:https://stackoverflow.com/questions/17113047/coping-with-gitlab-ssh-key-syncronization-bug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!