Gerrit - 复制到 github?

发布于 2024-11-19 06:44:01 字数 1505 浏览 3 评论 0原文

努力让 gerrit 复制正常工作。这是我的replication.config 的示例,

[remote "github"]
  url = [email protected]:dbousamra/${name}.git
  push = +refs/heads/*:refs/heads/*
  push = +refs/tags/*:refs/tags/*
  timeout = 5
  replicationDelay = 0
  authGroup = Administrators

我认为我已经正确完成了它,但是当我强制执行手动 gerrit 复制时,我会看到

    at java.lang.Thread.run(Thread.java:619)
[2011-07-11 14:43:41,386] ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to [email protected]:dbousamra/gitanalysis.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/gitanalysis.git: push not permitted

ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to [email protected]:dbousamra/All-Projects.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/All-Projects.git: invalid privatekey: /home/git/.ssh/x.pub

Struggling to get gerrit replication working. Here is a sample of my replication.config

[remote "github"]
  url = [email protected]:dbousamra/${name}.git
  push = +refs/heads/*:refs/heads/*
  push = +refs/tags/*:refs/tags/*
  timeout = 5
  replicationDelay = 0
  authGroup = Administrators

I think I've done it correctly, but when I force a manual gerrit replication I am presented with:

    at java.lang.Thread.run(Thread.java:619)
[2011-07-11 14:43:41,386] ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to [email protected]:dbousamra/gitanalysis.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/gitanalysis.git: push not permitted

and now

ERROR com.google.gerrit.server.git.PushReplication : Cannot replicate to [email protected]:dbousamra/All-Projects.git
org.eclipse.jgit.errors.TransportException: [email protected]:dbousamra/All-Projects.git: invalid privatekey: /home/git/.ssh/x.pub

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忆伤 2024-11-26 06:44:01

听起来像是 SSH 密钥和 Github 身份验证的问题。您是否为运行 Gerrit 的用户创建了 SSH 密钥并将该 SSH 密钥添加到您的 Github 帐户?

Sounds like a problem with the SSH key and the authentication at Github. Did you create an SSH key for the user, which is running Gerrit and add that SSH key to your Github account?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文