The pipeline has been working well for quite some time, until yesterday out of the blue started having 2 problems in all branches and pipelines (including the ones that had been successful, we rerun it and the problem continues), when running either (composer install) or (composer update).
Pipeline:
image: maven:3.3.9
definitions:
variables:
...
steps:
- step: &build
image: bitnami/laravel
runs-on:
- 'self.hosted'
- 'linux'
name: 'Build'
caches:
- composer
script:
- apt-get update && apt-get install -y zip
- ls -la
- rm -r .history .idea .vscode dockerfiles
- rm docker-compose.yml
- cd src/
- rm -r .history __mock
- composer clear-cache
- composer update --no-interaction --no-progress #problem here
- composer install --no-interaction --no-progress #or here if the one before is removed
- php artisan optimize:clear
- npm install --quiet
- npm run build
#- rm -r .git
- cd ..
- zip -r app-build-$BITBUCKET_BUILD_NUMBER.zip .
artifacts:
- "*.zip"
pipelines:
branches:
release/*:
- step: *build
# - step: *deploy
Problem 1: SSL connection timeout in all the packages:
- composer update --no-interaction --no-progress
<span><span><a href="https://api.github.com/repos/spatie/ignition/zipball/e3a68e137371e1eb9edc7f78ffa733f3b98991d2" rel="noopener nofollow noreferrer" target="_blank">https://api.github.com/repos/spatie/ignition/zipball/e3a68e137371e1eb9edc7f78ffa733f3b98991d2:</a> SSL connection timeout</span></span>
<span><span>Now trying to download from source</span></span><span><span>Failed to download spatie/laravel-ignition from dist: curl error 28 while downloading <a href="https://api.github.com/repos/spatie/laravel-ignition/zipball/3c067b75bfb50574db8f7e2c3978c65eed71126c" rel="noopener nofollow noreferrer" target="_blank">https://api.github.com/repos/spatie/laravel-ignition/zipball/3c067b75bfb50574db8f7e2c3978c65eed71126c:</a> SSL connection timeout</span></span><span><span>Now trying to download from source</span></span><span><span>Failed to download microsoft/azure-storage-queue from dist: curl error 28 while downloading <a href="https://api.github.com/repos/Azure/azure-storage-queue-php/zipball/750974f7a888bb7a93cacb873b3280c45e970a23" rel="noopener nofollow noreferrer" target="_blank">https://api.github.com/repos/Azure/azure-storage-queue-php/zipball/750974f7a888bb7a93cacb873b3280c45e970a23:</a> SSL connection timeout</span></span><span><span>Now trying to download from source</span></span><span><span>Failed to download squigg/azure-queue-laravel from dist: curl error 28 while downloading <a href="https://api.github.com/repos/squigg/azure-queue-laravel/zipball/e579e02e7b0828c2e8bb1842c12b1a7061ee6d29" rel="noopener nofollow noreferrer" target="_blank">https://api.github.com/repos/squigg/azure-queue-laravel/zipball/e579e02e7b0828c2e8bb1842c12b1a7061ee6d29:</a> SSL connection timeout</span></span><span><span>Now trying to download from source</span></span><span><span>Failed to download tightenco/ziggy from dist: curl error 28 while downloading <a href="https://api.github.com/repos/tighten/ziggy/zipball/939576ad0f3d3e633a9401c8c377bc7bc873ff35" rel="noopener nofollow noreferrer" target="_blank">https://api.github.com/repos/tighten/ziggy/zipball/939576ad0f3d3e633a9401c8c377bc7bc873ff35:</a> SSL connection timeout</span></span><span><span>Now trying to download from source</span></span>
Problem 2 (fail pipeline):
<span><span>In GitDownloader.php line 82:</span></span>
<span><span>git was not found in your PATH, skipping source download</span></span>
<span><span>update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-m|--minimal-changes] [-i|--interactive] [--root-reqs] [--] [<packages>...]</span></span>