Ubuntu 20.04, fatal: unable to access 'https://bitbucket.org/*.git/': gnutls_handshake() failed:

Pritam Kumar Satapathy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2022

Hi Team,

I am facing an issue in Ubuntu 20.04 while cloning from bitbucket.

The error is - 
fatal: unable to access 'https://bitbucket.org/*.git/': gnutls_handshake() failed: An unexpected TLS packet was received

I have gone through earlier resolution available but those are for lower version of git and lower version of Ubuntu i.e. 14.04 or 16.

Need an response on the same. Thanking you!!

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 9, 2022

Hi @Pritam Kumar Satapathy

Welcome to the community.

Based on the error message you've shared, it seems to be some kind of network or environment issue (e.g. Curl, Git versions etc.).
I looked at it and found some of the links below that might be of help:

Hope it helps and let me know how it goes.

Regards,
Mark C

Pritam Kumar Satapathy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2022

Hi @Mark C

Thanks for the revert. 

My none of the servers are behind any proxy. They are all accessible over VPN or Office network including https://bitbucket.org/.

We got a work around, where we could re-compiling git with openssl instead of gnutls.

The complete details available here - https://github.com/paul-nelson-baker/git-openssl-shellscript.

This is easy and helped a lot. Hope this would help someone.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events