We are having a problem that occurs not very often, but it is annoying.
We try to run composer in a pipeline step and to install pimcore v11 packages that sometimes fails.
It is always the same error and we do not have a clue what the problem could be, because these are public repositories but the result is either a connection timeout or permission denied.
Does anyone have a hint what could cause the problem, because we cannot control the connection params, it should just work.
Following the error:
<span>Downloading php-http/discovery (1.19.4)</span>
<span>Failed to download php-http/discovery from dist: curl error 28 while downloading <a href="https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599" rel="noopener nofollow noreferrer" target="_blank">https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599:</a> Connection timeout after 10002 ms</span>
<span>Now trying to download from source</span>
<span> - Syncing php-http/discovery (1.19.4) into cache</span>
<span>In Git.php line 471:</span>
<span>Failed to clone <a href="https://github.com/php-http/discovery.git" rel="noopener nofollow noreferrer" target="_blank">https://github.com/php-http/discovery.git</a> via https, ssh pr</span><span>otocols, aborting. </span>
<span>- <a href="https://github.com/php-http/discovery.git" rel="noopener nofollow noreferrer" target="_blank">https://github.com/php-http/discovery.git</a> </span>
<span>Cloning into bare repository '/composer/cache/vcs/https---github.com-php-</span><span>http-discovery.git'... </span>
<span>fatal: unable to access '<a href="https://github.com/php-http/discovery.git/" rel="noopener nofollow noreferrer" target="_blank">https://github.com/php-http/discovery.git/</a>': Fai</span><span>led to connect to <a href="http://github.com" rel="noopener nofollow noreferrer" target="_blank">github.com</a> port 443 after 131203 ms: Connection timed out </span>
<span>- <a href="mailto:git@github.com" rel="noopener nofollow noreferrer" target="_blank">git@github.com</a>:php-http/discovery.git </span>
<span>Cloning into bare repository '/composer/cache/vcs/https---github.com-php-</span><span>http-discovery.git'... </span>
<span><a href="mailto:git@github.com" rel="noopener nofollow noreferrer" target="_blank">git@github.com</a>: Permission denied (publickey). </span>
<span>fatal: Could not read from remote repository. </span>
<span>Please make sure you have the correct access rights </span><span>and the repository exists. </span>