git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Access to git repository through squid proxy: The remote end hung up unexpectedly

From
KKKonstantin Khomoutov <flatworm@users.sourceforge.net>
Date
Dec 10, 2011, 15:37 UTC
Message-ID
<20111210193753.994055f2.kostix@domain007.com>
In-Reply-To
<CACjeFCA4h_w2UmYywMBV_P+YZcWAE=zRUz-z5eTfAO+oxWKPjw@mail.gmail.com>

On Sat, 10 Dec 2011 09:56:07 +0100 Mathieu Peltier <mathieu.peltier@gmail.com> wrote:

Show 5 quoted lines
> Hi,
> I am trying to access a git repository (git:// URL) through a squid
> proxy.
> 
> squid allows CONNECT for port 9418:
[...]
Show 5 quoted lines
> 2011/12/09 12:22:44 socat[21428] D shutdown()  -> 0
> fatal: The remote end hung up unexpectedly
> 
> I tried to use also nc but I get the same error.
> Any advice?

I think you have to verify the git-daemon (you did not say you're using git-daemon, but it can be presupposed based on the port number) works by itself before starting to wrap it into layers of complexity. What happens if you try to clone a git repo directly, without any tunneling? If this is not possible, try to clone on the host running git-daemon (use an URL like git://localhost/path/to/repo.git). If it fails (I suppose it will), try increasing the daemon verbosity (see git-daemon) manpage. After all, may be it's as simple as forgetting to `touch` git-export-ok file in the repository you're trying to clone.

P.S. As a side note: why are you trying to implement such a strange setup? Why not just use plain old SSH which just works and provides good level of security (contrary to Basic HTTP authentication you might be using). If you need a level of control about who can do what with the repository you could look at https://github.com/sitaramc/gitolite

Previous: Mathieu PeltierNext: Mathieu Peltier
Message 2 of 5 in “Access to git repository through squid proxy: The remote end hung up unexpectedly”
  1. Mathieu PeltierDec 10, 2011
  2. Konstantin KhomoutovDec 10, 2011
  3. Mathieu PeltierDec 10, 2011
  4. Konstantin KhomoutovDec 10, 2011
  5. Mathieu PeltierDec 12, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.