Fatal Protocol Error Bad Line Length Character Inva
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the fatal protocol error bad line length character pass company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Fatal: Protocol Error: Bad Line Length Character: Git@
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million fatal protocol error bad line length character do programmers, just like you, helping each other. Join them; it only takes a minute: Sign up fatal: protocol error: bad line length character: Inva up vote 1 down vote favorite 1 while cloning repositories from bpm fatal: protocol error: bad line length character: logi suite installed in Openshift.I am getting the following git error. fatal: protocol error: bad line length character: Inva Please help me to fix this. git openshift bpm share|improve this question asked Sep 18 '15 at 5:13 John 84 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted This error is generally seen when using an ssh url (like git@aserver:arepo) The usual cause is, on the git repo hosting
Fatal Protocol Error Bad Line Length Character Gitlab
server side, a .profile or .bashrc which includes some echo: see Git FAQ It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode. To test this, do: ssh user@git.example.com echo testing commands You should only see testing commands returned. If there are any other characters, you should examine your dot shell rc file to find any echo or other commands that may produce output. In your case, for Openshift, consider one of the common commands: rhc ssh ls Check if the ls is polluted by any other output. share|improve this answer answered Sep 18 '15 at 7:07 VonC 626k19018011887 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged git openshift bpm or ask your own question. asked 1 year ago viewed 528 times active 1 year ago Related 334How to resolve “Error: bad index – Fatal: index file corrupt” when using Git3200How to force “git pull” to overwrite local files?1git push
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site fatal: protocol error: bad line length character: unab About Us Learn more about Stack Overflow the company Business Learn more about heroku fatal: protocol error: bad line length character: erro hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Git Protocol Error Bad Line Length Character Git@
the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Git and Red Hat http://stackoverflow.com/questions/32644342/fatal-protocol-error-bad-line-length-character-inva Open Shift up vote 1 down vote favorite For RedHat Openshift it has the following instruction for a clone to your local host: git clone ssh://12272296@jimX-jimsapps.rhcloud.com/~/git/jimX.git/ What I want to do is create a folder in c:/xampp/htdocs/rhos (on my local host) So I try: (with a command prompt open and sitting at C:) git clone ssh://12272296@jimX-jimsapps.rhcloud.com/~/git/xampp/htdocs/rhos.git/ And I get an error: fatal: protocol error: bad line http://stackoverflow.com/questions/12873392/git-and-red-hat-open-shift length character: Inva Do you have to clone into something of the form jimX on your local machine? What would be the command to clone into c:/xampp/htdocs/rhos ? Thanks, Jim git clone share|improve this question asked Oct 13 '12 at 13:07 jim dif 2211316 add a comment| 3 Answers 3 active oldest votes up vote 0 down vote The Git FAQ mentions: It likely means you have some extraneous characters, info message or something upon logging into ssh in command mode. To test this, do: ssh ssh://12272296@jimX-jimsapps.rhcloud.com echo testing commands You should only see testing commands returned. If there are any other characters, you should examine your dot shell rc file to find any echo or other commands that may produce output. That was the conclusion as well of this blog post: Ahh! This was the information I needed to solve the problem. In my case the problem was actually that I had an 'echo' in my .bash_profile and .bashrc, which affected the protocol. Removing the echo fixed the problem. share|improve this answer answered Oct 13 '12 at 20:57 VonC 626k19018011887 add a comment| up vote 0 down vote I just ran into
Sign in Pricing Blog Support Search GitHub This repository Watch 3 Star 33 Fork 11 tkisme/gogs-openshift Code Issues 0 Pull requests 0 Projects 0 Pulse https://github.com/tkisme/gogs-openshift/issues/3 Graphs New issue git pull fails with fatal: protocol error: bad line length character: Inva #3 Closed sblu opened this Issue Feb 22, 2016 · 15 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants sblu commented Feb 22, 2016 I can't clone a remote repository in my openshift-gogs environment protocol error via ssh, I get the error: fatal: protocol error: bad line length character: Inva. Openshifts runs on a git checkout the following script: oo-trap-user # replace leading tilde (~) with user's home path realpath = os.path.expanduser(thearg) if not realpath.startswith(config['GEAR_BASE_DIR']): syslog.syslog("Invalid repository: not in openshift_root (%s) - %s: (%s)" % (config['GEAR_BASE_DIR'], thearg, realpath)) print "Invalid repository %s: not in application root" % bad line length thearg sys.exit(3) The repo clone must start with "~" to get it working. Example: ssh://56af47fb33866adbdb00007e@gogs-test.openshift.local.de:tools/test.git don't works ssh://56af47fb33866adbdb00007e@gogs-test.openshift.local.de/~/app-root/data/gogs-repositories/tools/test.git works Is is possible to change the ssh checkout url? Owner tkisme commented Feb 27, 2016 I think this is the issue of rhc command line tool update rhc and try again rhc app create diy diy-0.1 --from-code https://github.com/tkisme/gogs-openshift sblu commented Feb 29, 2016 To get that clear, gogs is running :). But I can't clone repos out of there. With the provided ssh links. This oo-trap-user is part of the openshift not rhc. Also I setup the cartridge with rhc version: 1.38.4 (latest) Owner tkisme commented Mar 1, 2016 this is not an issue of this repo,so I close it tkisme closed this Mar 1, 2016 sblu commented Mar 1, 2016 So this is still a bug, all features of gogs are not running in openshift correctly right now! (I would say a core functionality) Owner tkisme commented Mar 2, 2016 I can not reproduce this bug Update: gogs is installed and all features of gogs are running in openshift