Reputation: 90
I have been trying to use Composer on Centos 5.5. I managed to install it, but composer install
gets me nowhere, yielding:
Loading composer repositories with package information
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out
Similarly, composer diag
displays the following:
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity: FAIL
[Composer\Downloader\TransportException] The "//packagist.org/packages.json" file could not be downloaded: failed to open stream: Connection timed out
Checking github.com rate limit: OK
Checking disk free space: OK
Checking composer version:
[Composer\Downloader\TransportException]
The "//getcomposer.org/version" file could not be downloaded: failed to open stream: Connection timed out
I've done searches on this error and have turned up discussions of how to get around a proxy. But according to the sysadmin, my IP has complete access, with no firewall or proxy blocking me.
How do I begin to troubleshoot this?
edit to add traceroute results per Sven's suggestion
traceroute to packagist.org (87.98.253.214), 30 hops max, 40 byte packets
1 a9.39.5646.static.theplanet.com (70.86.57.169) 1.258 ms 1.532 ms 1.760 ms
2 po202.dsr01.dllstx2.networklayer.com (70.87.254.145) 0.540 ms 0.579 ms 0.689 ms
3 po21.dsr01.dllstx3.networklayer.com (70.87.255.65) 0.574 ms 0.676 ms 0.796 ms
4 ae17.bbr02.eq01.dal03.networklayer.com (173.192.18.230) 0.406 ms 0.410 ms 0.404 ms
5 * eqx.dal.ovh.net (206.223.118.119) 0.508 ms ae7.bbr01.eq01.dal03.networklayer.com (173.192.18.208) 0.401 ms
6 * dal-1-6k.tx.us (178.32.135.174) 0.559 ms *
7 nwk-1-6k.nj.us (178.32.135.222) 38.725 ms * *
8 nwk-1-6k.nj.us (178.32.135.222) 38.690 ms 38.680 ms 38.773 ms
9 * gra-g1-a9.fr.eu (37.187.36.211) 115.493 ms *
10 gra-3a-a9.fr.eu (37.187.231.86) 113.173 ms gra-g1-a9.fr.eu (37.187.36.211) 113.189 ms 113.294 ms
11 gra-3a-a9.fr.eu (37.187.231.86) 113.022 ms 111.916 ms *
12 * * *
13 * * *
etc until
30 * * *
Upvotes: 3
Views: 4942
Reputation: 90
So it seems that Sven (in comments: Sven, if you will post as an answer I will accept it) had the best answer so far: traceroute shows we are being blocked en route by gra-3a-a9.fr.eu. I don't know what to do about that, so I gave up trying to use composer on the server. Instead, I'm trying to work around it by installing composer on localhost, and was able to connect to packagist just fine. I then uploaded everything to the server, now including the "vendor" directory created by Composer.
Some more discussion on how to install without composer locally... the techniques listed here are specific to Laravel but I found it worked fine for other packages. http://jafty.com/blog/installing-laravel-without-composer/
Can I Install Laravel without using Composer?
Thanks all for your suggestions!
Upvotes: 1