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

Re: git-clone works with ssh but not with http/https/git

From
EZErez Zilber <erezzi.list@gmail.com>
Date
Jun 24, 2008, 14:45 UTC
Message-ID
<ce513bcc0806240745l365b2d22ga007deb01a93e4b6@mail.gmail.com>
In-Reply-To
<BC8F2A2A-9817-401B-BAC3-F36ED42976E5@manchester.ac.uk>
On Tue, Jun 24, 2008 at 5:08 PM, Robert Haines <rhaines@manchester.ac.uk> wrote:
Show 31 quoted lines
>>> So your clone address for git:// is wrong, you don't need the /pub/git:
>>> git clone git://erez.zilber@kites/erez.zilber/my_test.git
>>> As you've moved the root of the filesystem as far as git-daemon is
>>> concerned
>>> to /pub/git with the --base-path option.
>>
>> I understand. However, when I try to run it according to your suggestion:
>>
>> [root@kd001 t]# git clone git://erez.zilber@kites/erez.zilber/my_test.git
>> Initialized empty Git repository in
>> /home/erez.zilber/work/tmp/t/my_test/.git/
>> fatal: Unable to look up erez.zilber@kites (port 9418) (Name or
>> service not known)
>> fetch-pack from 'git://erez.zilber@kites/erez.zilber/my_test.git' failed.
>
> That error is saying that the name of the service is wrong, so you're right
> to do it without the "erez.zilber@" bit.
>
>> I also tried to run it without "erez.zilber@":
>>
>> [root@kd001 t]# git clone git://kites/erez.zilber/my_test.git
>> Initialized empty Git repository in
>> /home/erez.zilber/work/tmp/t/my_test/.git/
>> kites[0: 172.16.1.11]: errno=Connection refused
>> fatal: unable to connect a socket (Connection refused)
>> fetch-pack from 'git://kites/erez.zilber/my_test.git' failed.
>
> This looks like that either there is nothing listening (if you're running
> though xinetd have you restarted it? And have you added the right bits to
> /etc/services?) or there's a firewall in the way... git defaults to 9418 so
> check that it's open.

The problem was that it listened to requests coming from the local machine. Now (after fixing that), everything seems to work. Thanks for the help.

BTW - I'm currently running git-daemon in the following way:
sudo git-daemon --base-path=/pub/git/ --export-all
Is there any advantage to run it through xinetd? How do you run it?

Thanks, Erez

Previous: Robert HainesNext: Daniel Barkalow
Message 18 of 20 in “git-clone works with ssh but not with http/https/git”
  1. Erez ZilberJun 24, 2008
  2. Matthias KestenholzJun 24, 2008
  3. Erez ZilberJun 24, 2008
  4. Johannes SchindelinJun 24, 2008
  5. Erez ZilberJun 24, 2008
  6. Jakub NarebskiJun 24, 2008
  7. Erez ZilberJun 24, 2008
  8. Anton GladkovJun 24, 2008
  9. Anton GladkovJun 24, 2008
  10. Matthias KestenholzJun 24, 2008
  11. Erez ZilberJun 24, 2008
  12. Jakub NarebskiJun 24, 2008
  13. Matthieu MoyJun 24, 2008
  14. Johannes SixtJun 24, 2008
  15. Robert HainesJun 24, 2008
  16. Erez ZilberJun 24, 2008
  17. Robert HainesJun 24, 2008
  18. Erez ZilberJun 24, 2008
  19. Daniel BarkalowJun 24, 2008
  20. Erez ZilberJun 25, 2008

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.