Gerrit to Gerrit replication issue

270 views
Skip to first unread message

Raj Aravind

unread,
Aug 4, 2022, 11:41:18 AM8/4/22
to repo-d...@googlegroups.com
Hi All,
         I am trying to do Gerrit to Gerrit replication via http.All my projects are replicated but i am getting below error.
Failed replicate of refs/changes/. ..reason:Notedb update requires -o Notedb=Allow .Please help me to resolve this.Thanks in advance.

Nasser Grainawi

unread,
Aug 4, 2022, 11:44:03 AM8/4/22
to Raj Aravind, repo-d...@googlegroups.com
On Thu, Aug 4, 2022 at 9:41 AM Raj Aravind <rajarav...@gmail.com> wrote:
Hi All,
         I am trying to do Gerrit to Gerrit replication via http.All my projects are replicated but i am getting below error.

Are you trying to replicate from one Gerrit primary to another Gerrit primary (different "instances" - uncommon) or from a primary to a replica (same "instance" - commonly used to distribute read-only load)?
 
Failed replicate of refs/changes/. ..reason:Notedb update requires -o Notedb=Allow .Please help me to resolve this.Thanks in advance.

--
--
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/CABvLcErkgb1%3DN%2Bu8-Ad1f-3wru8Lw%3DXfkmUc_fBPV_58ETzaZA%40mail.gmail.com.

Raj Aravind

unread,
Aug 4, 2022, 11:47:44 AM8/4/22
to Nasser Grainawi, repo-d...@googlegroups.com
Hi Nasser,
            I am trying to do Gerrit primary (say 10.0.0.2:8082) to another Gerrit instance(10.0.0.3:8082

Nasser Grainawi

unread,
Aug 4, 2022, 11:51:43 AM8/4/22
to Raj Aravind, repo-d...@googlegroups.com


On Thu, Aug 4, 2022 at 9:47 AM Raj Aravind <rajarav...@gmail.com> wrote:
Hi Nasser,

Please try not to top-post and instead reply inline. It's easier to follow the conversation that way.
 

On Thu, 4 Aug 2022, 9:13 pm Nasser Grainawi, <nasser....@linaro.org> wrote:


On Thu, Aug 4, 2022 at 9:41 AM Raj Aravind <rajarav...@gmail.com> wrote:
Hi All,
         I am trying to do Gerrit to Gerrit replication via http.All my projects are replicated but i am getting below error.

Are you trying to replicate from one Gerrit primary to another Gerrit primary (different "instances" - uncommon) or from a primary to a replica (same "instance" - commonly used to distribute read-only load)? 

            I am trying to do Gerrit primary (say 10.0.0.2:8082) to another Gerrit instance(10.0.0.3:8082

That's not typically expected to work. The different Gerrit instances have separate tracking of code review changes (the change numbers will conflict) and their metadata and there's no published process for how to reconcile those.

Why are you trying to do that?

Raj Aravind

unread,
Aug 4, 2022, 12:02:19 PM8/4/22
to repo-d...@googlegroups.com

---------- Forwarded message ---------
From: Raj Aravind <rajarav...@gmail.com>
Date: Thu, 4 Aug 2022, 9:29 pm
Subject: Re: Gerrit to Gerrit replication issue
To: Nasser Grainawi <nasser....@linaro.org>


Hi Nasser,

            My use case is that I have a Gerrit server instance running in one Linux machine whatever repos are created it should be replicated to another gerrit server which acts as just a back up for first Linux instance. 
          Second Gerrit server can be accessed by users when the first Gerrit server goes down

Martin Fick

unread,
Aug 4, 2022, 1:04:51 PM8/4/22
to Raj Aravind, repo-d...@googlegroups.com
To best be able to help you, we would need more details about your
setup, the config and URLs would be very helpful.

It sounds like you are trying to replicate to the Gerrit ssh port 29418?
That is not recommended,


-Martin

Nasser Grainawi

unread,
Aug 4, 2022, 4:34:43 PM8/4/22
to Raj Aravind, repo-d...@googlegroups.com
On Thu, Aug 4, 2022 at 10:02 AM Raj Aravind <rajarav...@gmail.com> wrote:
Hi Nasser,

As I noted earlier, please don't top-post. See https://en.wikipedia.org/wiki/Posting_style#Bottom-posting for more info. Moved your reply inline below.
 

On Thu, 4 Aug 2022, 9:21 pm Nasser Grainawi, <nasser....@linaro.org> wrote:

On Thu, Aug 4, 2022 at 9:47 AM Raj Aravind <rajarav...@gmail.com> wrote:

On Thu, 4 Aug 2022, 9:13 pm Nasser Grainawi, <nasser....@linaro.org> wrote:

On Thu, Aug 4, 2022 at 9:41 AM Raj Aravind <rajarav...@gmail.com> wrote:
Hi All,
         I am trying to do Gerrit to Gerrit replication via http.All my projects are replicated but i am getting below error.

Are you trying to replicate from one Gerrit primary to another Gerrit primary (different "instances" - uncommon) or from a primary to a replica (same "instance" - commonly used to distribute read-only load)? 

            I am trying to do Gerrit primary (say 10.0.0.2:8082) to another Gerrit instance(10.0.0.3:8082

That's not typically expected to work. The different Gerrit instances have separate tracking of code review changes (the change numbers will conflict) and their metadata and there's no published process for how to reconcile those.

Why are you trying to do that?
My use case is that I have a Gerrit server instance running in one Linux machine whatever repos are created it should be replicated to another gerrit server which acts as just a back up for first Linux instance. 
Second Gerrit server can be accessed by users when the first Gerrit server goes down

Having a second server available as a "hot standby" is a supported scenario, but you need to configure replication and Gerrit correctly for it to work. Some of that required configuration is documented in the high-availability plugin, but other parts (like replication) might only be in recorded talks or presentations from past user summits. Specific to your issue, it looks like you're trying to replicate to the standby Gerrit instance service, but instead you should be replicating to something lower-level like a filesystem, a git-daemon service, or a git-http-backend service.

Nasser

Raj Aravind

unread,
Aug 5, 2022, 8:29:17 AM8/5/22
to repo-d...@googlegroups.com
---------- Forwarded message ---------
From: Raj Aravind <rajarav...@gmail.com>
Date: Fri, 5 Aug 2022, 5:57 pm
Subject: Re: Gerrit to Gerrit replication issue
To: Nasser Grainawi <nasser....@linaro.org>


>>Having a second server available as a "hot standby" is a supported scenario, but you need to configure replication and Gerrit correctly for it to work. Some of that required configuration is documented in the high-availability plugin, but other parts (like replication) might only be in recorded talks or presentations from past user summits. Specific to your issue, it looks like you're trying to replicate to the standby Gerrit instance service, but instead you should be replicating to something lower-level like a filesystem, a git-daemon service, or a git-http-backend service.

      I am trying using replication plugin.All projects and branches are replicated but i m getting error for only refs/changes/xx/xxx/meta . Is it possible to replicate refs/changes/xx/xxx/meta of project via replication plugin .please see below the error message 






IMG_20220805_175613.jpg

Nasser Grainawi

unread,
Aug 8, 2022, 1:09:29 PM8/8/22
to Raj Aravind, repo-d...@googlegroups.com
I think you need to re-read my earlier reply. It's definitely possible to replicate refs/changes/.../meta via the replication plugin.
 






--
--
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.
Reply all
Reply to author
Forward
0 new messages