[英]Gerrit Replication to gitlab failed
When I configure the replication from Gerrit to gitlab, the replication_log keep reporting: 当我配置从Gerrit到gitlab的复制时,replication_log会继续报告:
[2016-10-10 09:36:07,517] [d0b90d12] Missing repository created; retry replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
[2016-10-10 09:37:07,517] [d0b90d12] Replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git started...
[2016-10-10 09:37:07,874] [d0b90d12] Created remote repository: git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
[2016-10-10 09:37:07,874] [d0b90d12] Missing repository created; retry replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
[2016-10-10 09:38:07,875] [d0b90d12] Replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git started...
[2016-10-10 09:38:08,259] [d0b90d12] Created remote repository: git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
My replication.config file: 我的plication.config文件:
[remote "sprmvc-ui5"]
projects = sprmvc-ui5
url = git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
push = +refs/changes/*:refs/changes/*
threads = 3
My .ssh/config file: 我的.ssh / config文件:
Host mo-3394cf6e0.mo.sap.corp
HostName mo-3394cf6e0.mo.sap.corp
User git
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Can anyone give me an advice? 谁能给我建议?
我通过在gitlab中创建一个新用户并给予其对我的项目的完全访问权限来维护它,并维护了来自gerrit服务器的公共密钥。
Do you really need for replication? 您真的需要复制吗? Just put it to the same server where you have GitLab installed.
只需将其放入安装了GitLab的服务器上即可。
Install: 安装:
# install rpm source: the path took through INSTALL file
sudo rpm -i https://gerritforge.com/gerritforge-repo-1-2.noarch.rpm
#install gerrit
sudo yum install -y gerrit
Init gerrit configuration (can be run multiple times, options are saved). 初始化gerrit配置(可以多次运行,保存选项)。
Here we set path to git bare repos and the same path may be specified that gitlab has . 在这里,我们将路径设置为git nude repos,并且可以指定gitlab具有的相同路径 。
java -jar /var/gerrit/bin/gerrit.war init
Launch: 发射:
java -jar /var/gerrit/bin/gerrit.war daemon --console
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.