I’m trying to enable replication from our existing gerrit to newer gerrit instance.
Source (Master) gerrit environment details.
Gerrit version – 3.2.3
Total repos – 600+
replication.config has below information.
[remote "replica-1"]
url = ssh://ad...@gerrit-review.com:29418/${name}.git
push = refs/*:refs/*
timtout = 30
threads = 3
replicatePermissions = true
replicateHiddenProjects = true
mirror = false
replicationDelay = 0
createMissingRepositories = true
lockErrorMaxRetries = 5
Target (Replica) gerrit environment details.
Gerrit version – 3.6.1
Total repos – 2 (All-Projects.git All-Users.git)
replication_log from source server as follows.
[2022-07-18 06:10:02,880] Created remote repository: ssh://ad...@gerrit-review.com:29418/member/test.git [CONTEXT pushOneId="9cce7596" ]
[2022-07-18 06:10:02,881] Missing repository created; retry replication to ssh://ad...@gerrit-review.com:29418/ member/test.git [CONTEXT pushOneId="9cce7596" ]
[2022-07-18 06:10:02,927] Created remote repository: ssh://ad...@gerrit-review.com:29418/lab/usa/project.git [CONTEXT pushOneId="dcd86d61" ]
[2022-07-18 06:10:02,927] Missing repository created; retry replication to ssh://ad...@gerrit-review.com:29418/lab/usa/project.git [CONTEXT pushOneId="dcd86d61" ]
Please give me an advise to resolve this issue.
Hello Matthias,
Except (All-Projects.git & All-Users.git) i can't see other repos in my target server and in the source replication log constitutionally showing above provided message.Still i'm i missing any configurations to replicate my source server gerrit data?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/ef805cb3-f531-4363-b34a-aaee6da7cf1en%40googlegroups.com.
On Mon, Jul 18, 2022 at 8:44 AM Mk <moha...@gmail.com> wrote:Hello Matthias,Please avoid top posting on this list as it makes it hard to follow the discussion thread.Instead use interleaved posting and reply inline.Except (All-Projects.git & All-Users.git) i can't see other repos in my target server and in the source replication log constitutionally showing above provided message.Still i'm i missing any configurations to replicate my source server gerrit data?You didn't set gerrit.replicateOnStartup = true. This means replication is triggered only when some ref is updated.If for a repository there was no refupdate since you configured replication then nothing will happen.You can use the replicate start --all command to trigger an initial replication for all repos.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/89644a6a-26a9-4a23-b2d9-7f0871036914n%40googlegroups.com.
All Git repositories have been replicated successfully after (index start projects --force) executing for replica server.Since i have "push = +refs/*:refs/*" in my replication.config file, but changes are missing in my replica server. How can I fix this problem?On Monday, July 18, 2022 at 2:36:24 PM UTC+5:30 Matthias Sohn wrote:On Mon, Jul 18, 2022 at 10:29 AM Mk <moha...@gmail.com> wrote:Please find my reply in line.On Monday, July 18, 2022 at 1:11:29 PM UTC+5:30 Matthias Sohn wrote:On Mon, Jul 18, 2022 at 8:44 AM Mk <moha...@gmail.com> wrote:Hello Matthias,Please avoid top posting on this list as it makes it hard to follow the discussion thread.Instead use interleaved posting and reply inline.Except (All-Projects.git & All-Users.git) i can't see other repos in my target server and in the source replication log constitutionally showing above provided message.Still i'm i missing any configurations to replicate my source server gerrit data?You didn't set gerrit.replicateOnStartup = true. This means replication is triggered only when some ref is updated.If for a repository there was no refupdate since you configured replication then nothing will happen.You can use the replicate start --all command to trigger an initial replication for all repos.My updated configurations file as follows,$ cat replication.config
[remote "replica-1"]
url = ssh://ad...@gerrit-review.com:29418/gerrit-storage/projects/${name}.git
push = +refs/*:refs/*
threads = 3
timtout = 30
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/9aab81d5-dab2-4faa-a91f-038dd8f0a603n%40googlegroups.com.
replication.config has below information.[remote "replica-1"]
url = ssh://ad...@gerrit-review.com:29418/${name}.git
This url look problematic, generally replication should not push to Gerrit's ssh port. Either use ssh port 22, or setup git-daemon on the git port or over http(s) on the replica to receive pushes,
-Martin
Hello Martin & Matthias,Thanks for your response. I have successfullyreplicated the data to target. However after replication on target server replicated repositories on GUI didn't show in the list automatically. I had to run (index start projects --force) to make it available on GUI.Also I can't see the changes. Though I had used (push = +refs/*:refs/*). Anything additionally I need to take care to view the grrrit changes?Even I have executed (index start changes). Still same result.
On Tue, 19 Jul 2022, 12:58 am Martin Fick, <quic_...@quicinc.com> wrote:On 7/18/22 12:21 AM, Mk wrote:
replication.config has below information.[remote "replica-1"]
url = ssh://ad...@gerrit-review.com:29418/${name}.git
This url look problematic, generally replication should not push to Gerrit's ssh port. Either use ssh port 22, or setup git-daemon on the git port or over http(s) on the replica to receive pushes,
-Martin
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CA%2B4Hw5YGAPGLEH2xyTVKV8EGX0MZGwkH2hiZCJQHZHnxeu22CQ%40mail.gmail.com.
Hi Matthias,Thanks. Serverid mismatch was the issue.Another query: Have created and merged couple of changes in master node, the same not getting loaded on replica GUI.
Should I include any additional configuration in my replication.config file? Please let me know. Thank you.
Hi Matthias,Thanks. Serverid mismatch was the issue.Another query: Have created and merged couple of changes in master node, the same not getting loaded on replica GUI.
On 22 Jul 2022, at 14:08, Mohan <moha...@gmail.com> wrote:Hi Matthias & Bjorn,Ok. Thanks for the clarification. I was thinking that replica too serve completely as master node.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CA%2B4Hw5ayfPX_tL%2BZDxE3ccbBUQ1g%2BwzLLuXJi1hXmQJeUaa7zw%40mail.gmail.com.