We have upgraded Bitbucket Data Center from 5.4.1 to 5.11.1 in Dev env and while testing the upgrade we tried to push code to Repository and seeing below Perl error for all users
git push -u
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 288 bytes | 288.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Can't locate strict.pm in @INC (@INC contains: /usr/local/lib64/perl5 /u sr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl / usr/lib64/perl5 /usr/share/perl5 .) at /usr/lib64/perl5/IO/Handle.pm line 261.
remote: BEGIN failed--compilation aborted at /usr/lib64/perl5/IO/Handle.pm line 261.
remote: Compilation failed in require at /usr/lib64/perl5/IO/Socket.pm line 12.
remote: BEGIN failed--compilation aborted at /usr/lib64/perl5/IO/Socket.pm line 12.
remote: Compilation failed in require at /data/bitbucket/bin/git-hooks/hook-call back.pl line 15.
remote: BEGIN failed--compilation aborted at /data/bitbucket/bin/git-hooks/hook- callback.pl line 15.
To ssh://stashdev.ba.ssa.gov/ptp/rep_1.git
! [remote rejected] mark-test -> mark-test (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@stashdev.ba.ssa.gov/ptp/rep_1.git'
Hi @dheeraj,
Please make sure that a supported Perl version (see Bitbucket Server Supported platforms for details) is available.
I would suggest trying to re-install Perl in the attempt to resolve this.
Cheers,
Caterina - Atlassian
Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.