Gitolite push to mirror is not working after moving to new server
Created by: sahotay
Greetings Everyone:
I have installed Gitolite but while trying to push to mirror i'm seeing below error,
[atlbitbucket@Mastergitscript01 451]$ git push --mirror git@gitmirror-sbox:repositories/stash/test/test1
SECURITY NOTICE
Use of this system, its equipment, and resources is monitored at all
times. All programs and information held on this system are private and
confidential to CSC Corporation, and are only lawfully available to
authorised users for authorised purposes only.
It is a criminal offence to obtain unauthorised access to any program
or information within this system and/or to make any unauthorised
modifications whatsoever to the contents of this computer system.
If you are not an authorised user you are violating the regulations of
this system and can, and will be prosecuted to the full extent of the
law. Please disconnect immediately.
Total 0 (delta 0), reused 0 (delta 0)
remote: Empty compile time value given to use lib at hooks/update line 6
remote: Use of uninitialized value in require at hooks/update line 7.
remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at hooks/update line 7.
remote: BEGIN failed--compilation aborted at hooks/update line 7.
remote: error: hook declined to update refs/heads/NEWBRANCHSYNC
remote: Empty compile time value given to use lib at hooks/update line 6
remote: Use of uninitialized value in require at hooks/update line 7.
remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at hooks/update line 7.
remote: BEGIN failed--compilation aborted at hooks/update line 7.
remote: error: hook declined to update refs/heads/testbranch
To gitmirror-sbox:repositories/stash/test/test1
! [remote rejected] NEWBRANCHSYNC -> NEWBRANCHSYNC (hook declined)
! [remote rejected] testbranch -> testbranch (hook declined)
error: failed to push some refs to 'git@gitmirror-sbox:repositories/stash/test/test1'
I have tried several things like:-
- Including below in update and update.pm
BEGIN {
exit 0 if exists $ENV{GL_BYPASS_UPDATE_HOOK};
}
-
Setting variable (export)
-
direct ssh to mirror server
Had no luck, can you please help here to fix this issue
Thank you in advance !!