All of lore.kernel.org
 help / color / mirror / Atom feed
* fatal: protocol error: bad line length character: GET <<<<<
@ 2011-01-26  4:53 Alan Sargent
  2011-01-26  5:59 ` Ilari Liusvaara
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Sargent @ 2011-01-26  4:53 UTC (permalink / raw)
  To: git

Hello,

The "fatal: protocol error: bad line length character" seems fairly
common, but in the archive and the faq there isn't reference to this
particular instances - GET.

alan@toaster:~$ git init myrepo
Initialized empty Git repository in /home/nev/myrepo/.git/
alan@toaster:~$ cd myrepo
alan@toaster:~/myrepo$ git daemon
fatal: protocol error: bad line length character: GET  << just hitting
F5 in the browser
fatal: protocol error: bad line length character: GET
browser showing Error 101 (net::ERR_CONNECTION_RESET): Unknown error.
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET
fatal: protocol error: bad line length character: GET

This is on Ubuntu, git installed fresh or built it from latest stable
source. Same on a repo that has stuff in it.

Anyone know why?

Cheers.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fatal: protocol error: bad line length character: GET <<<<<
  2011-01-26  4:53 fatal: protocol error: bad line length character: GET <<<<< Alan Sargent
@ 2011-01-26  5:59 ` Ilari Liusvaara
  2011-01-26  6:40   ` Alan Sargent
  0 siblings, 1 reply; 3+ messages in thread
From: Ilari Liusvaara @ 2011-01-26  5:59 UTC (permalink / raw)
  To: Alan Sargent; +Cc: git

On Wed, Jan 26, 2011 at 12:53:11PM +0800, Alan Sargent wrote:
> Hello,
> 
> The "fatal: protocol error: bad line length character" seems fairly
> common, but in the archive and the faq there isn't reference to this
> particular instances - GET.
> 
> alan@toaster:~$ git init myrepo
> Initialized empty Git repository in /home/nev/myrepo/.git/
> alan@toaster:~$ cd myrepo
> alan@toaster:~/myrepo$ git daemon
> fatal: protocol error: bad line length character: GET  << just hitting
> F5 in the browser
> fatal: protocol error: bad line length character: GET
[...]

Git daemon serves git:// protocol, not HTTP, you can't access it from
web browser.

If you are looking for Git repository web interface, look at gitweb
or cgit.

The error is because HTTP begins the request with "GET " and git
daemon is trying to interpret that as length of packet, failing
and spitting out a fatal error.

-Ilari

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fatal: protocol error: bad line length character: GET <<<<<
  2011-01-26  5:59 ` Ilari Liusvaara
@ 2011-01-26  6:40   ` Alan Sargent
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Sargent @ 2011-01-26  6:40 UTC (permalink / raw)
  To: Ilari Liusvaara; +Cc: git

Ah! Thank you very much.

:)

On Wed, Jan 26, 2011 at 1:59 PM, Ilari Liusvaara
<ilari.liusvaara@elisanet.fi> wrote:
> On Wed, Jan 26, 2011 at 12:53:11PM +0800, Alan Sargent wrote:
>> Hello,
>>
>> The "fatal: protocol error: bad line length character" seems fairly
>> common, but in the archive and the faq there isn't reference to this
>> particular instances - GET.
>>
>> alan@toaster:~$ git init myrepo
>> Initialized empty Git repository in /home/nev/myrepo/.git/
>> alan@toaster:~$ cd myrepo
>> alan@toaster:~/myrepo$ git daemon
>> fatal: protocol error: bad line length character: GET  << just hitting
>> F5 in the browser
>> fatal: protocol error: bad line length character: GET
> [...]
>
> Git daemon serves git:// protocol, not HTTP, you can't access it from
> web browser.
>
> If you are looking for Git repository web interface, look at gitweb
> or cgit.
>
> The error is because HTTP begins the request with "GET " and git
> daemon is trying to interpret that as length of packet, failing
> and spitting out a fatal error.
>
> -Ilari
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-26  6:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26  4:53 fatal: protocol error: bad line length character: GET <<<<< Alan Sargent
2011-01-26  5:59 ` Ilari Liusvaara
2011-01-26  6:40   ` Alan Sargent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.