Bitbucket gnutls_handshake() failed: Error in the pull function

anomepani picture anomepani · Apr 12, 2017 · Viewed 7.5k times · Source

I am having an issue on newly created Ubuntu 16.04 OS with bitbucket. When I am cloning repo from bitbucket repository I am getting below error

Cloning into 'my-demos'... fatal: unable to access 'https://[email protected]/amepani/my-demos.git/': gnutls_handshake() failed: Error in the pull function.

I have gone through this link but not able to resolve an issue. I have updated JDK version and also installed the latest version of git but getting the same error.

Let me know how to resolve this issue.

Answer

Tri Chandra Pamungkas picture Tri Chandra Pamungkas · Aug 8, 2017

Bitbucket uses TLS.

If you are running behind a proxy, try to set your https_proxy.

export https_proxy="http://username:[email protected]:yourproxyport/"