Pull replication for gerrit-multisite

32 views
Skip to first unread message

Aankhi Talukdar

unread,
Jul 1, 2024, 8:40:30 AM (2 days ago) Jul 1
to Repo and Gerrit Discussion
Hi Team,

I am trying to do a pull replication from a remote pod to my target pod. While running the pull replication command on the target pod, getting the error:

[2024-07-01 12:24:23,432] [b9d53c78] ASYNC replication from ssh://admin@localhost:29418/multisite_region.git started for refs [..all..] ...
[2024-07-01 12:24:23,435] [b9d53c78] Fetch references [+refs/*:refs/*] from ssh://admin@localhost:29418/multisite_region.git
[2024-07-01 12:24:23,492] [b9d53c78] Cannot replicate from ssh://admin@localhost:29418/multisite_region.git: ssh://admin@localhost:29418/multisite_region.git: [ssh-connection]: Failed (UnsupportedCredentialItem) to execute: ssh://admin@localhost:29418: org.eclipse.jgit.transport.CredentialItem$YesNoType:Accept and store this key, and continue connecting?

Somehow the Gerrit replication process is encountering an interactive prompt to accept and store the SSH key. Since this interaction can't occur in an automated replication process, it is failing. 
NOTE: I have put the public key of each pod into the other pod as well. 

My remote config file:

[remote]
   url = ssh://admin@localhost:29418/${name}.git
   projects = multisite_region
   fetch = +refs/*:refs/*


Can someone help me on this?

Thanks
Aankhi

Luca Milanesio

unread,
Jul 1, 2024, 6:02:12 PM (2 days ago) Jul 1
to Repo and Gerrit Discussion, Luca Milanesio, Aankhi Talukdar
Any reasons for using Git/SSH for replication?

I would recommend using:
- Git/HTTP
- apiUrl

P.S. I do not see any reason for using Git/SSH for pull-replication, but I am open to change my opinion if you have good points to raise.

HTH

Luca.

Reply all
Reply to author
Forward
0 new messages