composer: The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Operation now in progress
My composer.json
:
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.2.0",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"magento/product-community-edition": "2.2.0",
"composer/composer": "@alpha"
},
"require-dev": {
"phpunit/phpunit": "~6.2.0",
"squizlabs/php_codesniffer": "3.0.1",
"phpmd/phpmd": "@stable",
"pdepend/pdepend": "2.5.0",
"friendsofphp/php-cs-fixer": "~2.1.1",
"lusitanian/oauth": "~0.8.10",
"sebastian/phpcpd": "2.0.4"
},
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/",
"Magento\\": "app/code/Magento/"
},
"psr-0": {
"": [
"app/code/"
]
},
"files": [
"app/etc/NonComposerComponentRegistration.php"
],
"exclude-from-classmap": [
"**/dev/**",
"**/update/**",
"**/Test/**"
]
},
"autoload-dev": {
"psr-4": {
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
],
"extra": {
"magento-force": "override"
}
}
Output of composer diagnose
:
Dzung:www dzung$ composer diagnose
Failed loading /usr/local/opt/php70-xdebug/xdebug.so: dlopen(/usr/local/opt/php70-xdebug/xdebug.so, 9): image not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Failed loading /usr/local/opt/php70-xdebug/xdebug.so: dlopen(/usr/local/opt/php70-xdebug/xdebug.so, 9): image not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation now in progress
Checking https connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation now in progress
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: failed to open stream: Operation now in progress
Checking disk free space: OK
Checking pubkeys: FAIL
Missing pubkey for tags verification
Missing pubkey for dev verification
Run composer self-update --update-keys to set them up
Checking composer version:
[Composer\Downloader\TransportException]
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Operation now in progress
When I run this command:
composer install
I get the following output:
Loading composer repositories with package information
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation now in progress
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
And I expected this to happen:
I’m not sure what happen after upgrade osx When I run this command:
composer self-update
I have got error
Dzung:www dzung$ composer self-update
Failed loading /usr/local/opt/php70-xdebug/xdebug.so: dlopen(/usr/local/opt/php70-xdebug/xdebug.so, 9): image not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Failed loading /usr/local/opt/php70-xdebug/xdebug.so: dlopen(/usr/local/opt/php70-xdebug/xdebug.so, 9): image not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php70-http/http.so' - dlopen(/usr/local/opt/php70-http/http.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.58.dylib
Referenced from: /usr/local/opt/php70-http/http.so
Reason: image not found in Unknown on line 0
[Composer\Downloader\TransportException]
The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: Operation now in progress
self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (7 by maintainers)
This solved the problem for me: https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-
@johnvandeweghe Check this https://wiki.vpsget.com/index.php/Prefer_IPv4_over_ipv6_._How_to_set_ipv4_precedence
The second command gives you an isolated oneliner proving that your PHP installation is still broken as it can’t execute the first example from the manual. So again, please fix your PHP installation, likely by completely removing it and starting over as stated before.
Thank you so much!
@alcohol
Command line:
Output: