My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2722: Replication script could not create target repository on mirror controlled by gitosis
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by kungcst...@gmail.com, Jun 19, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.8.5

What steps will reproduce the problem?
1. Set up replication to push change to mirror
[remote "test-mirror"]
  url = git@xxx.com:cust/${name}.git
  push = +refs/heads/*:refs/heads/*
  push = +refs/tags/*:refs/tags/*
  authGroup = Replication
  replicatePermissions = false
  mirror = true

2. Create new repo in gerrit
3. Gerrit keep trying to push repo forever without complete

What is the expected output? What do you see instead?
It should create repository on mirror successfully but log show it keep trying to create the repo

[2014-06-19 16:25:40,102] INFO  com.googlesource.gerrit.plugins.replication.ReplicationQueue : Created remote repository: git@xxx.com:cust/test.git
[2014-06-19 16:25:40,103] WARN  com.googlesource.gerrit.plugins.replication.ReplicationQueue : Missing repository created; retry replication to git@xxx.com:cust/test.git
[2014-06-19 16:26:46,820] INFO  com.googlesource.gerrit.plugins.replication.ReplicationQueue : Created remote repository: git@xxx.com:cust/test.git
[2014-06-19 16:26:46,820] WARN  com.googlesource.gerrit.plugins.replication.ReplicationQueue : Missing repository created; retry replication to git@xxx.com:cust/test.git

Please provide any additional information below.
I have set up gitosis and I can try manual push it to gitosis successfully using git command

$ git remote add origin git@xxx.com:cust/test.git
$ git push origin master

After repository created, gerrit replication script working correctly by mirror change from gerrit to my mirror controlled by gitosis so the problem is only when it try to create the new repository on target mirror.


Jul 14, 2014
Project Member #1 david.pu...@sonymobile.com
Possibly a duplicate of issue 2421.
Jul 21, 2014
#2 joy.hunk...@gmail.com
I am having the same issue, did you find any help?
Aug 28, 2014
#3 kungcst...@gmail.com
I'm afraid not!

How could you work around this issue? 
Do you manual push new project in gerrit to gitosis every time you create new one?
Jan 30, 2015
Project Member #4 huga...@gmail.com
Replication plugin will only create missing repositories when using the shh protocol or when the url is a local folder.

If you want to replicate using the git protocol, you need to configure the adminUrl in the remote section and it will be used to create the repository and the other url (the one using git protocol) will be used to replicate. The adminUrl only must be using the ssh protocol.

There is also a parameter that enable creating missing repositories if there is a replication error because the remote repo does not exist. This is to cover the case when the remote was not available when the repo was created. To enable that, you must add this your remote section:
createMissingRepositories = true





Oct 22, 2015
#5 got...@gmail.com
I solved it by giving write access the replication user

Sign in to add a comment

Powered by Google Project Hosting