cancel
Showing results for 
Search instead for 
Did you mean: 

php_network_getaddresses: getaddrinfo failed: Temporary failure i n name resolution

php_network_getaddresses: getaddrinfo failed: Temporary failure i n name resolution

> composer create-project --repository=https://repo.magento.com/ magento/project-community-edition public

 

Spoiler
[Composer\Downloader\TransportException]
The "https://repo.magento.com/archives/magento/project-community-edition/magento-project-community-editio..." file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure i
n name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

 

> composer diagnose:

 

 

Checking composer.json: WARNING
License "GPL-3.0" is a deprecated SPDX license identifier, use "GPL-3.0-only" or "GPL-3.0-or-later" instead
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: [Composer\Downloader\TransportException] The "http://repo.packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
Checking https connectivity to packagist: [Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
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: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
  failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

 

 

2 REPLIES 2

Re: php_network_getaddresses: getaddrinfo failed: Temporary failure i n name resolution

Hi @q2341463261171 

Kindly refer below link :

https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-

It may help to resolve your issue.

If issue resolve, please click on 'Kudos' & Accept as Solution!

Problem solved? Click Accept as Solution!

Re: php_network_getaddresses: getaddrinfo failed: Temporary failure i n name resolution

Thank you for your reply.,Replacing ipv6 with ipv4 did not help me.