27
remote: Verifying deploy... done.
fatal: protocol error: bad line length character: fata
error: error in sideband demultiplexer

This just randomly started showing up. My changes are being saved in git and pushing successfully to Heroku. I have no idea what this means or what caused it as I have not done anything new at all.

Timmy Von Heiss
  • 2,160
  • 17
  • 39
  • 2
    We're seeing the same thing in our Heroku deploys since today. All from build servers where we didn't change any deployment configuration. Think I'm gonna open a Heroku support issue for this one. – NickDK Mar 21 '16 at 12:46
  • please let me know if you figure anything out. I am also starting to occasionally get strange errors were my push to heroku fails and then when I push it again it will work. example: `remote: error: cannot lock ref 'refs/heads/master': ref refs/heads/master is at ae943f5f0b6bd283ds486ab6e9676ae973194a70a but expected 69e4ee4446428e4cef84756ff6381ae64e7ea1a24ff5c69` – Timmy Von Heiss Mar 23 '16 at 01:54
  • The error messages disappeared today. I did not do anything. – Timmy Von Heiss Mar 25 '16 at 05:48

5 Answers5

37

Just had this issue myself. What worked for me was this response directly from Heroku Support

$ Upgrade GIT on your local machine
$ heroku plugins:install heroku-repo
$ heroku repo:reset -a <app-name>
$ git commit --allow-empty -m "Reset repo"
$ git push heroku master
IT_puppet_master
  • 702
  • 5
  • 20
4

Having spoken to Heroku support recently regarding this, you can pass the below environment variables when pushing to your Heroku remote to reveal more about what's going on:

GIT_CURL_VERBOSE=1 GIT_TRACE=1 git push https://heroku:key@git.heroku.com/app-name.git develop:develop
adaam
  • 3,700
  • 7
  • 27
  • 51
0

There is a problem on the server.
Your remote git server didn't reply with the expected git response.

First of all check your server .bashrc file. It might print error or there is a syntax problem with it.

Possible related questions:

https://askubuntu.com/questions/210381/git-fatal-protocol-error-bad-line-length-character-ssh

Git push results in fatal: protocol error: bad line length character: This

Strange error in gitlab: fatal: protocol error: bad line length character: Depl

Community
  • 1
  • 1
CodeWizard
  • 128,036
  • 21
  • 144
  • 167
0

This was resolved by Heroku and was apparently an error on their end.

Timmy Von Heiss
  • 2,160
  • 17
  • 39
0

Cleaning the heroku repo and then pushing again from scratch did the trick for me.

https://stackoverflow.com/a/37925714

AndresSRG
  • 89
  • 1
  • 3