应对gitlab ssh密钥同步错误 [英] Coping with gitlab ssh key syncronization bug

查看:379
本文介绍了应对gitlab ssh密钥同步错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用这里发布的解决方案: GitLab v5.0 git push问题修复ssh键失去同步的问题。

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

但是,当我运行 rake 因为 root & git 存储库服务器上的用户我收到以下消息:

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>'

rake 命令如何用于修复同步问题?

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

推荐答案

它可能类似于此问题3922


您必须在包含Rakefile的GitLab安装目录中执行此命令

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

因此,请务必进入gitlab目录,您可以在其中查看 Rakefile

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

这篇关于应对gitlab ssh密钥同步错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆