Unable to push to the newly setup mirror / slave.

81 views
Skip to first unread message

Gyana Ranjan

unread,
Aug 20, 2017, 3:59:09 AM8/20/17
to gitolite, gyanaran...@gmail.com
Unable to push to the newly setup mirror / slave.

I have setup a new mirror server i.e mirror004.
But becuase of some reason, I am unable to push to it from my master server i.e. master001.

I am getting below error while pushing from master001:
-bash-4.1$ ~/bin/gitolite mirror push mirror004 gitolite-admin
FATAL: mirror004: 'gitolite-admin' is mirrored but not here
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


ON mirror004 server:
git@mirror004:~/repositories$ ~git/bin/gitolite git-config -r gitolite-admin .
gitolite-admin gitolite-options.ENV.STASH_ADMIN_EMAIL x...@gmail.com
gitolite-admin gitolite-options.mirror.master master001
gitolite-admin gitolite-options.mirror.slaves mirror001 mirror002 mirror003


ON master001 server:
repo gitolite-admin
RW+ = Bob
RW+ = Alice
RW+ = Carol
option ENV.STASH_ADMIN_EMAIL = "x...@gmail.com"
option mirror.master = master001
option mirror.slaves = mirror001 mirror004 mirror002 mirror003


ON mirror001 server:
-bash-4.2$ ~git/bin/gitolite git-config -r gitolite-admin .
gitolite-admin gitolite-options.ENV.STASH_ADMIN_EMAIL x...@gmail.com
gitolite-admin gitolite-options.mirror.master master001
gitolite-admin gitolite-options.mirror.slaves mirror001 mirror004 mirror002 mirror003
-bash-4.2$


The servers are talking to each other without any issues.
I can able to verify using "ssh master001 info" and "ssh mirror004 info"

Please advise.

Sitaram Chamarty

unread,
Aug 20, 2017, 5:47:18 AM8/20/17
to Gyana Ranjan, gitolite, gyanaran...@gmail.com
Hi,

You basically pushed a change that *removed* mirror004 from the
list of slaves, after which mirror004 will no longer respond to
any more pushes.

Instead of writing up the details here, I decided to add to the
documentation. Please see the following (new) section of the
mirroring page:

http://gitolite.com/gitolite/mirroring/#appendix-d-fixing-a-broken-slave

Also, sorry for the late reply. I've been kinda tied up the
last couple of days.

regards
sitaram

PS: on a completely unrelated note, why oh why do people add
sensitive information to their EMAIL addresses? Oh well,
anyway, happy birthday in 6 days time ;-)
> --
> You received this message because you are subscribed to the Google Groups "gitolite" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gyana Ranjan

unread,
Aug 22, 2017, 4:15:37 AM8/22/17
to Sitaram Chamarty, gitolite, gyanaran...@gmail.com
Thanks Sitaram for the reply.

I figured out I have mentioned wrong server name in my mirror config file.
After I corrected the entry,  I rsynced the file from master and then tried to push and it worked!!


ON mirror004 server:
git@mirror004 :~/repositories$ cat ~/.gitolite/conf/gitolite.conf
repo gitolite-admin
   RW+     =   git
option mirror.master = server-master001 ===> (instead of master001)
option mirror.slaves = mirror004
repo testing
   RW+     =   @all
git@mirror004 :~/repositories$



Thank you,
Gyana Ranjan Swain
Mobile: +601123249066



> To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+unsubscribe@googlegroups.com.

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "gitolite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitolite+unsubscribe@googlegroups.com.

Georg Faerber

unread,
Aug 22, 2017, 5:26:56 AM8/22/17
to gito...@googlegroups.com
Hi Sitaram,

On 17-08-20 15:17:11, Sitaram Chamarty wrote:
> You basically pushed a change that *removed* mirror004 from the
> list of slaves, after which mirror004 will no longer respond to
> any more pushes.
>
> Instead of writing up the details here, I decided to add to the
> documentation. Please see the following (new) section of the
> mirroring page:
>
> http://gitolite.com/gitolite/mirroring/#appendix-d-fixing-a-broken-slave

I not only like gitolite, but also your style of writing (docs), a lot.
Thanks for all the work you're doing, much appreciated!

Cheers,
Georg
signature.asc

Sitaram Chamarty

unread,
Aug 22, 2017, 12:03:14 PM8/22/17
to Georg Faerber, gito...@googlegroups.com
Thank you for the kind words :-)

regards
sitaram
Reply all
Reply to author
Forward
0 new messages