Project

General

Profile

Git clone - problem

Added by Piotr Kuchciak over 10 years ago

Hello
For a few days i have a problem with git clone. Whene i type:

root@Synology_DS713:/home/hts# git clone https://github.com/tvheadend/tvheadend
Cloning into 'tvheadend'...
error: Couldn't resolve host 'github.com' while accessing https://github.com/tvheadend/tvheadend/info/refs
fatal: HTTP request failed
root@Synology_DS713:/home/hts#

On other linux i also the same problem. Please help me.


Replies (11)

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

Can you test and tell what is a problem ?

RE: Git clone - problem - Added by Prof Yaffle over 10 years ago

Looks like a DNS lookup failure. Try nslookup github.com - see what that comes back with (it should be 192.30.252.129 or 192.30.252.130 AFAIK).

You may need to flush a DNS cache (guess) or manually assign the IP address (not good) - or try using a different DNS resolver (e.g. Google's 8.8.8.8 or 8.8.4.4).

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

I try on modem USB 3G and on Cabel WAN. I set DSN google and nothing...

You test and you can git clone ?

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

Result for nslookup github.com

Server: 83.142.201.12
Address 1: 83.142.201.12 dns1.profiline.pl

Name: github.com
Address 1: 192.30.252.128 ip1a-lb3-prd.iad.github.com

RE: Git clone - problem - Added by Prof Yaffle over 10 years ago

I just wiped my local version, and git clone https://github.com/tvheadend/tvheadend worked fine...

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

I set DNS on my router dns google 8.8.8.8 and 8.8.4.4 and still i can not git clone...

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

You try from console ?

RE: Git clone - problem - Added by Prof Yaffle over 10 years ago

From an xterm terminal command line, yes - not from TTY0 or wherever the console really is.

Have you tried simply renaming your current tvheadend git directory and checking it all out again?

cd
mv tvheadend tvheadend.old
git clone https://github.com/tvheadend/tvheadend

... sort of thing?

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

Before i git clone i deleted tvheadend.

hts@Synology_DS713:~$ ls
DVR epguide-1.8.1 icon TimeShift update_tvheadend.sh

RE: Git clone - problem - Added by Piotr Kuchciak over 10 years ago

OK i resolved my problem. On my Debian CHroot i have set bad DNS. In file /etc/resolve.conf i changed the ip server.

RE: Git clone - problem - Added by Prof Yaffle over 10 years ago

Had to be something like that... only DNS made sense. Glad you found it.

    (1-11/11)