{"action":"closed","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5154","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5154/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5154/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5154/events","html_url":"https://github.com/composer/composer/issues/5154","id":146148577,"number":5154,"title":"[Composer\\Downloader\\TransportException] Operation timed out","user":{"login":"vicguedez","id":12116228,"avatar_url":"https://avatars.githubusercontent.com/u/12116228?v=3","gravatar_id":"","url":"https://api.github.com/users/vicguedez","html_url":"https://github.com/vicguedez","followers_url":"https://api.github.com/users/vicguedez/followers","following_url":"https://api.github.com/users/vicguedez/following{/other_user}","gists_url":"https://api.github.com/users/vicguedez/gists{/gist_id}","starred_url":"https://api.github.com/users/vicguedez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicguedez/subscriptions","organizations_url":"https://api.github.com/users/vicguedez/orgs","repos_url":"https://api.github.com/users/vicguedez/repos","events_url":"https://api.github.com/users/vicguedez/events{/privacy}","received_events_url":"https://api.github.com/users/vicguedez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-06T00:25:50Z","updated_at":"2016-04-11T13:26:51Z","closed_at":"2016-04-11T13:26:51Z","body":"Hello,\r\n\r\nI'm new to Debian 8, trying to install 'facebook\\xhp-lib'. I've got a 10Mbps connection and can navigate at full speed, but when using composer it just gets timeout.\r\n\r\nI'm using the following composer.json:\r\n\r\n```json\r\n{\r\n    \"config\": {\r\n      \"secure-http\": false,\r\n      \"optimize-autoloader\": true\r\n    },\r\n    \"require\": {\r\n      \"facebook/xhp-lib\": \"2.3\"\r\n    }\r\n}\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\ncomposer install -vvv\r\n```\r\n\r\nI get this output:\r\n\r\n```\r\nReading ./composer.json\r\nLoading config file /home/victor/.composer/config.json\r\nLoading config file /home/victor/.composer/auth.json\r\nLoading config file ./composer.json\r\nChecking CA file /etc/ssl/certs/ca-certificates.crt\r\nExecuting command (/home/victor/www/app): git branch --no-color --no-abbrev -v\r\nExecuting command (/home/victor/www/app): git describe --exact-match --tags\r\nFailed to initialize global composer: Composer could not find the config file: /home/victor/.composer/composer.json\r\nTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ \"Getting Started\" section\r\nLoading composer repositories with package information\r\nDownloading https://packagist.org/packages.json\r\nSlowTimer [7972ms] at curl: https://packagist.org/packages.json\r\nWriting /home/victor/.cache/composer/repo/https---packagist.org/packages.json into cache\r\nUpdating dependencies (including require-dev)\r\nReading /home/victor/.cache/composer/repo/https---packagist.org/p-provider-2013.json from cache\r\nDownloading http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nSlowTimer [60001ms] at curl: http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nThe \"http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\" file could not be downloaded: Failed to open http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json (Operation timed out after 59860 milliseconds with 474681 out of 857622 bytes received)\r\nRetrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info\r\nDownloading http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nSlowTimer [60001ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nDownloading http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nSlowTimer [59999ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nDownloading http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\nSlowTimer [60000ms] at curl: http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b83ff57649232e226864f330c6556e4134ee5d52.json\r\n\r\n                                                                               \r\n  [Composer\\Downloader\\TransportException]                                     \r\n  The \"http://packagist.org/p/provider-2014%246e256ac757a31949f2560c57b83ff57  \r\n  649232e226864f330c6556e4134ee5d52.json\" file could not be downloaded: Faile  \r\n  d to open http://87.98.253.214/p/provider-2014%246e256ac757a31949f2560c57b8  \r\n  3ff57649232e226864f330c6556e4134ee5d52.json (Operation timed out after 5957  \r\n  4 milliseconds with 358836 out of 857622 bytes received)                     \r\n                                                                               \r\n\r\nException trace:\r\n () at phar://composer.phar/bin/../src/../src/Composer/Util/RemoteFilesystem.php:452\r\n Composer\\Util\\RemoteFilesystem->get() at phar://composer.phar/bin/../src/../src/Composer/Util/RemoteFilesystem.php:99\r\n Composer\\Util\\RemoteFilesystem->getContents() at phar://composer.phar/bin/../src/../src/Composer/Repository/ComposerRepository.php:644\r\n Composer\\Repository\\ComposerRepository->fetchFile() at phar://composer.phar/bin/../src/../src/Composer/Repository/ComposerRepository.php:557\r\n Composer\\Repository\\ComposerRepository->loadProviderListings() at phar://composer.phar/bin/../src/../src/Composer/Repository/ComposerRepository.php:288\r\n Composer\\Repository\\ComposerRepository->whatProvides() at phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/Pool.php:204\r\n Composer\\DependencyResolver\\Pool->computeWhatProvides() at phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/Pool.php:193\r\n Composer\\DependencyResolver\\Pool->whatProvides() at phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/RuleSetGenerator.php:168\r\n Composer\\DependencyResolver\\RuleSetGenerator->whitelistFromPackage() at phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/RuleSetGenerator.php:322\r\n Composer\\DependencyResolver\\RuleSetGenerator->getRulesFor() at phar://composer.phar/bin/../src/../src/Composer/DependencyResolver/Solver.php:214\r\n Composer\\DependencyResolver\\Solver->solve() at phar://composer.phar/bin/../src/../src/Composer/Installer.php:498\r\n Composer\\Installer->doInstall() at phar://composer.phar/bin/../src/../src/Composer/Installer.php:228\r\n Composer\\Installer->run() at phar://composer.phar/bin/../src/../src/Composer/Command/InstallCommand.php:134\r\n Composer\\Command\\InstallCommand->execute() at phar://composer.phar/bin/../src/../vendor/symfony/console/Command/Command.php:259\r\n Symfony\\Component\\Console\\Command\\Command->run() at phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:844\r\n Symfony\\Component\\Console\\Application->doRunCommand() at phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:192\r\n Symfony\\Component\\Console\\Application->doRun() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:181\r\n Composer\\Console\\Application->doRun() at phar://composer.phar/bin/../src/../vendor/symfony/console/Application.php:123\r\n Symfony\\Component\\Console\\Application->run() at phar://composer.phar/bin/../src/../src/Composer/Console/Application.php:99\r\n Composer\\Console\\Application->run() at phar://composer.phar/bin/composer:43\r\n include() at /usr/local/bin/composer:24\r\n\r\ninstall [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...\r\n```\r\n\r\n\r\nI have read and tried lot of things (process_timeout, running with hhvm, forcing to https, etc...), and nothing have worked... Is there any workaround this?\r\n\r\nThanks anyway.\r\n\r\nPS: Sorry for bad English.\r\n"}}