docker icon indicating copy to clipboard operation
docker copied to clipboard

Degraded mode allways

Open ruben-farma opened this issue 5 years ago • 1 comments

Hello all,

When I execute inside jenkins pipeline the next:

  • docker run --rm --interactive --volume /var/jenkins-slave/workspace/stagging/stg-pipelines/pipe-calendlyapi-stg:/app /composer install --ignore-platform-reqs --no-dev

Allways I have the error of degraded mode and a very very slow download rate (with all projects)

Loading composer repositories with package information
                                                      Updating dependencies

The "https://repo.packagist.org/p/phpunit/phpunit%2436814e6d2af8ab53d640e21dc2ad1e56385fad58d935715065c5f5ce0750e7e4.json" file could not be downloaded: failed to open stream: Operation timed out
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info

I'm executing on a machine of google cloud, so I discard problem of connection:

Testing from Google Cloud (35.xx.xx.xx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by FSIT AG (Dietikon) [53.77 km]: 21.325 ms
Testing download speed................................................................................
Download: 576.07 Mbit/s

IPv6 is disabled:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

Also, I do the Workaround Linux: sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"

root@jenkins-slave-01:~# grep --color "precedence ::ffff:0:0/96 100" /etc/gai.conf
precedence ::ffff:0:0/96 100

I can do anything more?

More info:

docker run --rm --interactive --volume ${PWD}:/app eu.gcr.io/farmapremium-647cb/composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys: 
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: You are not running the latest stable version, run `composer self-update` to update (1.9.1 => 1.9.2)
Composer version: 1.9.1
PHP version: 7.3 - Package overridden via config.platform (actual: 7.4.1)
PHP binary path: /usr/local/bin/php

ruben-farma avatar Jan 14 '20 15:01 ruben-farma

Unfortunately this is very hard to reproduce since I do not have access to your host and everything works fine on all of the host machines I own myself.

alcohol avatar Jul 22 '20 08:07 alcohol