T
T
tp1232015-06-29 16:45:26
Composer
tp123, 2015-06-29 16:45:26

WTF The https://packagist.org/packages.json file could not be downloaded: failed to open stream: Connection timed out?

Composer is not updated. I do not understand why the server does not upload these files

# composer -vvv diagnose
Reading ./composer.json
Loading config file ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color -- no-abbrev -v
Reading /root/.composer/composer.json
Loading config file /root/.composer/composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Checking composer.json: Reading ./composer.json
OK
Checking platform settings: OK
Checking git settings: Executing command (CWD): git config color.ui
OK
Checking http connectivity: Downloading https://packagist.org/packages.json
FAIL
[Composer\Downloader\TransportException] The " https://packagist.org/packages.json " file could not be downloaded: failed to open stream: Connection timed out
Checking github.com rate limit: Downloading https://api. github.com/rate_limit
OK
Checking disk free space: OK
Checking composer version: Downloading https://getcomposer.org/version
^[[C
[Composer\Downloader\TransportException]
The " https://getcomposer.org/version " file could not be downloaded: failed to open stream: Connection timed out
Exception trace:
() at phar:///usr/local/bin/composer/src/Composer/Util/RemoteFilesystem.php:267
Composer\Util\RemoteFilesystem->get() at phar:///usr/local/bin/composer /src/Composer/Util/RemoteFilesystem.php:83
Composer\Util\RemoteFilesystem->getContents() at phar:///usr/local/bin/composer/src/Composer/Command/DiagnoseCommand.php:309
Composer\Command \DiagnoseCommand->checkVersion() at phar:///usr/local/bin/composer/src/Composer/Command/DiagnoseCommand.php:132
Composer\Command\DiagnoseCommand->execute() at phar:///usr/ local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin /composer/vendor/symfony/console/Symfony/Component/Console/Application.php:874
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application ->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:146
Composer\Console\Application->doRun() at phar:///usr/local/ bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer /Console/Application.php:83
Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:43
require() at /usr/local/bin/composer: 25
diagnose
[email protected] /var/www/master/data/www/runo.info #

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
P
PRISM, 2018-04-27
@PRISM

sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf" Problem turned out to be due to misconfigured ipv6,
Link https://getcomposer.org/doc/articles/ trouble shooti...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question