Hi experts,
Two questions with replicate All-Project.git.
precondition:
two gerrit v2.11 with new created mysql database are installed into different pc.
--
--
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.
For more options, visit https://groups.google.com/d/optout.
Thanks for your quick response and all necessary info.
I tried with force push and now I finally understand why force push All-Projects to mirror cause that I lost administrator privilege because the group's uuid is changed compared to mysql db's record.
I still have some questions about replications.
1. By default, replication plugin only replicate the projects who has newly changes instead of replicate all projects inside this gerrit server, right?
2. Seems that replication only push the originally created project in host to mirror. Is it true? Because if I copy a mirror git project from outside to host, then run replication and replication.log always said "Missing repository could not be created when replicating gerrit2@xxx:/home/gerrit2/review_site/git/*.git. You can only create missing repositories locally, over SSH or when using adminUrl in replication.config. See documentation for more information"
3. about Cache setting inside gerrit.config. Not sure if it is related with replication plugin.
2015-05-20 6:17 GMT+02:00 <ying...@gmail.com>:Thanks for your quick response and all necessary info.
I tried with force push and now I finally understand why force push All-Projects to mirror cause that I lost administrator privilege because the group's uuid is changed compared to mysql db's record.
I still have some questions about replications.
1. By default, replication plugin only replicate the projects who has newly changes instead of replicate all projects inside this gerrit server, right?Yes, but you may trigger the replication of all projects via SSH using --all option [1].
[1] https://gerrit.googlesource.com/plugins/replication/+/refs/heads/master/src/main/resources/Documentation/cmd-start.md2. Seems that replication only push the originally created project in host to mirror. Is it true? Because if I copy a mirror git project from outside to host, then run replication and replication.log always said "Missing repository could not be created when replicating gerrit2@xxx:/home/gerrit2/review_site/git/*.git. You can only create missing repositories locally, over SSH or when using adminUrl in replication.config. See documentation for more information"Check the 'remote.NAME.createMissingRepositories' parameter in replication.config [2].
[2] https://gerrit.googlesource.com/plugins/replication/+/refs/heads/master/src/main/resources/Documentation/config.md
3. about Cache setting inside gerrit.config. Not sure if it is related with replication plugin.Cache settings shouldn't have an effect on replication.
On Wednesday, May 20, 2015 at 6:44:34 AM UTC-5, Edwin Kempin wrote:2015-05-20 6:17 GMT+02:00 <ying...@gmail.com>:Thanks for your quick response and all necessary info.
I tried with force push and now I finally understand why force push All-Projects to mirror cause that I lost administrator privilege because the group's uuid is changed compared to mysql db's record.
I still have some questions about replications.
1. By default, replication plugin only replicate the projects who has newly changes instead of replicate all projects inside this gerrit server, right?Yes, but you may trigger the replication of all projects via SSH using --all option [1].
[1] https://gerrit.googlesource.com/plugins/replication/+/refs/heads/master/src/main/resources/Documentation/cmd-start.md
2. Seems that replication only push the originally created project in host to mirror. Is it true? Because if I copy a mirror git project from outside to host, then run replication and replication.log always said "Missing repository could not be created when replicating gerrit2@xxx:/home/gerrit2/review_site/git/*.git. You can only create missing repositories locally, over SSH or when using adminUrl in replication.config. See documentation for more information"Check the 'remote.NAME.createMissingRepositories' parameter in replication.config [2].
[2] https://gerrit.googlesource.com/plugins/replication/+/refs/heads/master/src/main/resources/Documentation/config.mdI think you can also set gerrit.defaultForceUpdate to avoid the original problem. But, this error would sound like you're using Git to replicate? As the error says, if you set remote.NAME.adminUrl, it will log in over SSH to create the missing repository if it doesn't exist.
3. about Cache setting inside gerrit.config. Not sure if it is related with replication plugin.Cache settings shouldn't have an effect on replication.Agreed. You *may* need to tune caches in your mirror slightly, as there's currently no way for the master to expire any caches on the mirror when data changes. I think we set things to a 5 minute timeout, and that works okay.
2. Seems that replication only push the originally created project in host to mirror. Is it true? Because if I copy a mirror git project from outside to host, then run replication and replication.log always said "Missing repository could not be created when replicating gerrit2@xxx:/home/gerrit2/review_site/git/*.git. You can only create missing repositories locally, over SSH or when using adminUrl in replication.config. See documentation for more information"
Hi,