Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to github.com... #1468

Closed
ronaldpabilonia opened this issue Apr 30, 2015 · 11 comments
Closed

Unable to connect to github.com... #1468

ronaldpabilonia opened this issue Apr 30, 2015 · 11 comments

Comments

@ronaldpabilonia
Copy link

Hi, trying to use bower install --save Polymer/polymer#^0.5 but I get

Additional error details: fatal: unable to connect to github.com: github.com[0: 192.30.252.129]: errno=No such file or directory

I was just following the instruction on www.polymer-project.org and I also have a bower.json file already. Am I doing something wrong? Please help. Thanks.

@arthurevans
Copy link

Just tried running the command locally and it worked for me. The error you report sounds like some kind of connectivity problem with github. If you're behind a proxy, you may get better results by configuring git to use https:// URLs instead of git:// URLs, by running the following command:

git config --global url."https://".insteadOf git://

(Found in this bug thread over here:
DefinitelyTyped/tsd#84)

You don't mention what OS you're on, but there are also some issues reported on Debian Linux and on Windows that came up when I searched for that error (unable to connect to github.com No such file).

@ronaldpabilonia
Copy link
Author

Yeah I am on windows. And yeah I'll try first the git config --global url

@ronaldpabilonia
Copy link
Author

Oh wow the config worked. Thanks so much! :)

@jandiralceu
Copy link

jandiralceu commented Oct 25, 2016

Thanks @arthurevans, it's worked!

@yasirrose
Copy link

yasirrose commented Jul 25, 2017

@arthurevans @ronaldpabilonia @jandiralceu @mbleigh @usergenic I am using mac and tried you connection but it is not working.
This is what I am getting.when i run vagrant provision

"failed": true, "msg": "fatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.112]: errno=Connection refused\ngithub.com[1: 192.30.253.113]: errno=Connection refused\n\nfatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.113]: errno=Connection refused\ngithub.com[1: 192.30.253.112]: errno=Connection refused\n\nfatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.112]: errno=Connection refused\ngithub.com[1: 192.30.253.113]: errno=Connection refused\n\nfatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.113]: errno=Connection refused\ngithub.com[1: 192.30.253.112]: errno=Connection refused", "rc": 11, "stderr": "fatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.112]: errno=Connection refused\ngithub.com[1: 192.30.253.113]: errno=Connection refused\n\nfatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.113]: errno=Connection refused\ngithub.com[1: 192.30.253.112]: errno=Connection refused\n\nfatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.112]: errno=Connection refused\ngithub.com[1: 192.30.253.113]: errno=Connection refused\n\nfatal: unable to connect to github.com:\ngithub.com[0: 192.30.253.113]: errno=Connection refused\ngithub.com[1: 192.30.253.112]: errno=Connection refused\n\n", "stderr_lines": ["fatal: unable to connect to github.com:", "github.com[0: 192.30.253.112]:

@prasadheeramani
Copy link

Finally it works. Because i am behind proxy. So used https: instead of git:

@Siddhant9868
Copy link

@arthurevans thanks, It worked

@topdeveloper2210
Copy link

Thanks, that's very helpful!
Thanks again.

@GuddyV
Copy link

GuddyV commented May 22, 2022

Thanks so much, it worked flawlessly

@maalejahmed55
Copy link

Just tried running the command locally and it worked for me. The error you report sounds like some kind of connectivity problem with github. If you're behind a proxy, you may get better results by configuring git to use https:// URLs instead of git:// URLs, by running the following command:

git config --global url."https://".insteadOf git://

(Found in this bug thread over here: DefinitelyTyped/tsd#84)

You don't mention what OS you're on, but there are also some issues reported on Debian Linux and on Windows that came up when I searched for that error (unable to connect to github.com No such file).

thanks bro it worked for me
i had a problem : cant connecte to github while i was trying to install floodlight

@suzukidavid
Copy link

You can fix this issue just by deleting some configuration on .gitconfig file.
It is normally located at C:/Users/[Username]/.gitconfig
Remote this and try.
[url "git@github.com"]
insteadOf = https://github.com/:
[url "git://"]
insteadOf = https://
[url "https://"]
insteadOf = git://

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants