Closed stefanmerk closed 11 years ago
It says No such host is known. at:
- git://github.com/FriendsOfSymfony/FOSUserBundle.git
fatal: Unable to look up github.com (port 9418) (No such host is known. )
Seems like dns/network issues, I doubt we can help much :/
@Seldaek Thanks for your quick reply. But I can visit github.com (on the same machine, with the same proxy settings).
And also: Why is https protocols, aborting
?
As I said, I am able to open it in my browser.
Any help is very appreciated.
@stefanmerk, what if you try $ nslookup github.com
or $ telnet github.com 9418
from your CLI?
aborting is just because all protocols failed so it stops.
In the -vvv output, above the exception you should see the last command it tried to execute, you could try to run that in the shell yourself to see if that works or not.
It is really strange, but i guess it was just a proxy related problem (as you thought in the beginning) Thanks everybody for your help
@phansys I am not able to run these commands, due to proxy restrictions. And I guess I was just using a broken proxy.
Thanks.
The same problem(fatal: Unable to look up github.com (port 9418) (No such host is known. )) I faced that I can access github.com from browser with proxy in the company domain internet, but I failed to access the github from CLI , even I reset the git proxy or environment variable http_proxy.
BTW, when I set the http_proxy and then try other tools , for example curl and it works. So I think the case is message about git with proxy. Maybe I wrong. But how I can do?
I get the same problem. I get Failed to clone .... via git, https protocols, aborting.
.
[RuntimeException]
Failed to clone https://github.com/symfony/Filesystem.git via git, https protocols,
aborting.
- git://github.com/symfony/Filesystem.git
fatal: unable to connect to github.com:
github.com: Name or service not known
- https://github.com/symfony/Filesystem.git
error: Couldn't resolve host 'github.com' while accessing https://github.com/symfo
ny/Filesystem.git/info/refs
fatal: HTTP request failed
I was able to successfully run this command somewhere else, at home, but in the office, I just can't. This seems like a DNS issue.
@timothyescopete indeed seems like it's on your end (or your ISP or something), not something we can fix.
@Seldaek How did you get those errors, if you got them? Mine, I just get them via composer install
.
@timothyescopete I don't get them that's my point, it's probably something on your end.
@stefanmerk , If the problem still remains, you can try to ping github.com from your own machine(any other computer without problems) as
ping github.com, then received IP you shouldt write to /etc/hosts as
received_ip github.com wiki.github.com gist.github.com assets0.github.com assets1.github.com assets2.github.com assets3.github.comwhere received_ip == 192.30.252.129 for example. Sorry for my english
My error in Windows was:
Failed to clone git@github.com:symfony/symfony-standard.git via git, https, ssh protocols, aborting.
When I explicitly ran CMD as administrator (although my user had administrator rights) everything went ok.
check your date and time, try reinstall git-scm and try clone witout composer
I am getting the same issues as above and assume it is caused by proxy/firewall at my work. My question is: does Composer use a specific port (or anything else unusual) when calling git?
@tedstrauss no. It just calls git normally and lets it do its work
Mostly a firewall issue enable incoming&outgoing traffic for port 9418 on your environment and try.Port 9418 is used by github
I had the same problem, but i used the github ip instead of www.github.com, use it, it will help you to get your file with ease.
I had the same issues. I just ran "composer clear-cache" to clear the cache after which I ran "composer install" on my project directory folder. that solved it
Tanks uti-james "clear-cache" solved the problem!!
If you are in windows environment, please disable antivirus and try again.
Resolved by turn off the firewalls settings on windows 10.
@uti-james thanks you saved my life i am wasted whole week on it thanks
Manually deleted the composer files, vendor folder and Start install my package again, it got worked.
I want to install laravel/ui but I got this error: Failed to clone https://github.com/laravel/ui.git via https, ssh proto
cols, aborting.
solved by
composer self-update
goto php.ini file and search ";extension=zip" and change it to "extension=zip"
Thank you @yogesh1663 , That worked for me.
Hey there,
it's me again with a new issue.
I am trying to update (install) a package with composer. But if I do this I receive the following ERROR message My command:
php composer.phar update friendsofsymfony/user-bundle
Output:And composer diagnose output:
And also a run with -vvv
The
--prefer-source
option does not help here.Also I am able to call all the websites in my browser with the same proxy settings.