ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

git clone error

asked 2017-11-15 01:58:11 -0500

1059682127@qq.com gravatar image

fatal: unable to access 'https://github.com/pirobot/rbx1.git/': Failed to connect to 127.0.0.1 port 35173: Connection refused

edit retag flag offensive close merge delete

Comments

3

That looks like a local IP address and port number; not the public address for github. Do you have a proxy or something else installed that might be interfering with your network connectivity?

ahendrix gravatar image ahendrix  ( 2017-11-15 01:59:43 -0500 )edit

How can I check if I have a proxy?Thank you|

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-15 02:08:00 -0500 )edit

The error appears when I git clone,show as follows: $ git clone https://github.com/pirobot/rbx1.git Cloning into 'rbx1'... fatal: unable to access 'https://github.com/pirobot/rbx1.git/': Failed to connect to 127.0.0.1 port 35173: Connection refused

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-15 02:10:15 -0500 )edit

I can successfully view https://github.com/pirobot/rbx1.git in the browser,and I can successfully ping 127.0.0.1

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-15 02:35:13 -0500 )edit

127.0.0.1 is address of your own computer.

l4ncelot gravatar image l4ncelot  ( 2017-11-15 06:29:38 -0500 )edit

Make sure you can ping github.com . If you can't, there are lots of networking help sites. This might help: https://unix.stackexchange.com/questi...

clyde gravatar image clyde  ( 2017-11-15 10:28:31 -0500 )edit
1

I can ping github.com . The result is shown below: PING github.com (192.30.255.112) 56(84) bytes of data. 64 bytes from lb-192-30-255-112-sea.github.com (192.30.255.112): icmp_seq=1 ttl=128 time=348 ms 64 bytes from lb-192-30-255-112-sea.github.com (192.30.255.112): icmp_seq=2 ttl=128 time=316 ms 64

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-15 10:37:37 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-11-15 05:00:06 -0500

Chrizzl gravatar image

updated 2017-11-15 05:01:55 -0500

I have a very dirty fix for you, it should work.

git config --global http.sslVerify false

And then

git clone http://192.30.253.113/pirobot/rbx1.git

It works for me (though I don't have the local IP problem), hope it works for you too. If it does not work, you might want to set the sslVerify back to true

edit flag offensive delete link more

Comments

1

Thank you for your answer! I follow your method,but get the following error!

gzh@gzh-virtual-machine:/etc$ git config --global http.sslVerify false gzh@gzh-virtual-machine:/etc$ git clone http://192.30.253.113/pirobot/rbx1.git fatal: could not create work tree dir 'rbx1'.: Permission denied

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-15 10:30:08 -0500 )edit

@1059682127@qq.com">@1059682127@qq.com Sounds good. Now you just have to get user permissions to write in the folder where you are trying to clone. Right now you are cloning into /etc which is not a good idea. Try the command: cd ~ Before calling the git clone

Chrizzl gravatar image Chrizzl  ( 2017-11-15 11:21:20 -0500 )edit

It may not be the main problem! I change it still get the mistake!

gzh@gzh-virtual-machine:~$ git clone http://192.30.255.112/pirobot/rbx1.git Cloning into 'rbx1'... fatal: unable to access 'http://192.30.255.112/pirobot/rbx1.git/': Couldn't connect to server

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-15 18:41:54 -0500 )edit

Yes, it is probably not the main problem, my solution tries to fix symptoms instead of the source. As mentioned by others, review your networking connection. I see you are on a Virtual Machine, so there are a lot of things that might go wrong.

Chrizzl gravatar image Chrizzl  ( 2017-11-16 02:38:21 -0500 )edit

Thanks! I have tried many ways but can't solve the problem! I can ping github.com but I can't ping https://github.com

1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-16 07:35:20 -0500 )edit

I have solve the question by unset http.proxy and https.proxy! And check it as below:

env|grep -i proxy
1059682127@qq.com gravatar image 1059682127@qq.com  ( 2017-11-16 09:48:20 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-11-15 01:58:11 -0500

Seen: 3,076 times

Last updated: Nov 15 '17