Bitbucket Server: Git operations fails with error fatal: unable to access.. Encountered end of file

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible


Problem

Git push fails with below error in console

user@host]$ git push origin master
fatal: unable to access
https://git.url:7999/scm/en/repo.git
Encountered end of file 

Diagnosis


Diagnostic Steps

  • verify the SSH port
  • run git remote -v and  verify the push and fetch remotes set.

Cause

Trying to connect to an SSH port with https.With https, an "Encountered end of file" also means an ssl handshake error

Resolution

Use the right URL and port. If the remotes are set with wrong URL and port correct it with _git remote set-url origin <url>


Last modified on Feb 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.