
Quiero replicar un proyecto/repositorio de un Gerrit a otro Gerrit. Mi configuración de replicación:
[remote "gerrit3"]
url = 192.168.1.106:29418/${name}
adminUrl = gerrit+ssh://192.168.1.106/
push = refs/*:refs/*
replicatePermissions = true
replicateHiddenProjects = true
mirror = false
projects = tests/test1
replicationDelay = 0
createMissingRepositories = true
Después de activar la replicación, veo los siguientes mensajes en el registro de replicación:
[2019-07-25 14:11:00,249] [] scheduling replication tests/test1:..all.. => 192.168.1.106:29418/tests/test1
[2019-07-25 14:11:00,251] [] scheduled tests/test1:..all.. => [f208c682] push 192.168.1.106:29418/tests/test1 to run after 0s
[2019-07-25 14:11:00,253] [f208c682] Replication to 192.168.1.106:29418/tests/test1 started...
[2019-07-25 14:11:00,463] [f208c682] Missing repository created; retry replication to 192.168.1.106:29418/tests/test1
[2019-07-25 14:12:00,465] [f208c682] Replication to 192.168.1.106:29418/tests/test1 started...
[2019-07-25 14:12:00,689] [f208c682] Missing repository created; retry replication to 192.168.1.106:29418/tests/test1
[2019-07-25 14:13:00,690] [f208c682] Replication to 192.168.1.106:29418/tests/test1 started...
[2019-07-25 14:13:00,996] [f208c682] Missing repository created; retry replication to 192.168.1.106:29418/tests/test1
Las dos últimas líneas se repiten para siempre. Parece que la fuente Gerrit no ve el repositorio remoto, sin importar si el repositorio remoto existe o no. De lo contrario, crea un repositorio vacío correctamente, pero después de esto, Gerrit todavía no lo ve.
Respuesta1
El problema estaba en url
la fila. Los ejemplos de documentación muestran la URL sin el protocolo especificado, pero también mencionan que el url
parámetro es compatible con git push
la sintaxis de la URL. Después de cambiar url
de línea a:
url = ssh://[email protected]:29418/${name}
el problema se ha ido. Gerrit comienza a ver el repositorio remoto.