Currently our bitbucket server is hosted on RHEL 8.7. We started getting the issue as we upgraded from RHEL 7.9 to RHEL 8.7. When I am trying to clone git repo from our bitbucket server, I am getting the below error:
$ git clone -v https://bitbucket.com/scm/pythoncode.git
Cloning into 'pythoncode'...
POST git-upload-pack (185 bytes)
POST git-upload-pack (212 bytes)
remote: Can't locate IO/Socket.pm: /usr/local/lib64/perl5/IO/Socket.pm: Permission denied at /appbin/atlassian/application-data/bitbucket/bin/git-hooks/hook-callback.pl line 15.
remote: BEGIN failed--compilation aborted at /appbin/atlassian/application-data/bitbucket/bin/git-hooks/hook-callback.pl line 15.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Can you please let me know how this issue can be resolved?