Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudden pecl errors with self-hosted runner #569

Closed
3 of 5 tasks
Jamesking56 opened this issue Feb 25, 2022 · 18 comments
Closed
3 of 5 tasks

Sudden pecl errors with self-hosted runner #569

Jamesking56 opened this issue Feb 25, 2022 · 18 comments
Assignees
Labels
bug Something isn't working self-hosted

Comments

@Jamesking56
Copy link

Jamesking56 commented Feb 25, 2022

Describe the bug

My actions workflow on a self-hosted runner has started spitting out new pecl errors all of a sudden in PHP 8.0

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

Ubuntu 20.04 LTS

PHP versions

PHP 8.0

To Reproduce

- name: Setup PHP
   uses: shivammathur/setup-php@2.17.0
   with:
     php-version: 8.0
     tools: cs2pr
   env:
     runner: self-hosted # Specify the runner.

Expected behavior

It was working before as normal, setting up PHP 8.0.

Screenshots/Logs

Run shivammathur/setup-php@2.17.0
  with:
    php-version: 8
    tools: cs2pr
    ini-file: production
  env:
    runner: self-hosted
/bin/bash /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/2.17.0/src/scripts/run.sh

==> Setup PHP
grep: : No such file or directory
grep: : No such file or directory
/opt/actions-runner/1/_work/_actions/shivammathur/setup-php/2.17.0/src/scripts/../scripts/unix.sh: line 170: php_config: parameter null or not set
ln: failed to create symbolic link '/opt/actions-runner/1/_work/_actions/shivammathur/setup-php/2.17.0/src/configs/ini/conf.d/99-pecl.ini': No such file or directory
chmod: cannot access '/conf.d/99-pecl.ini': No such file or directory
✓ PHP Switched to PHP 

==> Setup Tools
✗ composer Could not download composer

Additional context

Are you willing to submit a PR?

Honestly right now have no idea of a fix

@Jamesking56 Jamesking56 added the bug Something isn't working label Feb 25, 2022
@Jamesking56
Copy link
Author

Just turned off my self-hosted runner and it appears to work fine with GitHub's hosted runners.

I did notice though that the patch version of PHP 8.0 has been upgraded tonight in my runner, which may explain what has happened:

GitHub Hosted Runners: PHP 8.0.15
My Runner: PHP 8.0.16

Is there a way you can verify that the issue is potentially caused by PHP 8.0.16?

@shivammathur
Copy link
Owner

@Jamesking56, I will try to fix this situation in the next release, can you try installing php8.0-dev on your runner and run setup-php again.

sudo apt-get install -y php8.0-dev

@Jamesking56
Copy link
Author

@shivammathur That was one of the first things I tried to debug and the same errors occur

@shivammathur
Copy link
Owner

@Jamesking56 ok, what is the output when you run

ls -la /usr/bin/php-config*

@Jamesking56
Copy link
Author

@shivammathur

lrwxrwxrwx 1 root root   28 Feb 25 21:34 /usr/bin/php-config -> /etc/alternatives/php-config
-rwxr-xr-x 1 root root 4409 Feb 21 14:42 /usr/bin/php-config8.0

@Jamesking56
Copy link
Author

@shivammathur Just re-ran the workflow to see what happens and this is the output now:

Run shivammathur/setup-php@2.17.0
  with:
    php-version: 8
    tools: cs2pr
    ini-file: production
  env:
    runner: self-hosted
/bin/bash /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/2.17.0/src/scripts/run.sh

==> Setup PHP
chmod: cannot operate on dangling symlink '/etc/php/8.0/cli/conf.d/99-pecl.ini'
✓ PHP Found PHP 8.0.16

==> Setup Tools
✗ composer Could not download composer

Composer 2.2.7 already exists in my runner

@shivammathur
Copy link
Owner

Please remove /etc/php/8.0/cli/conf.d/99-pecl.ini.
Not sure why this is a symlink. It should be an ini file that is symlinked in other SAPI.

Also, make sure you have set up passwordless-sudo.
https://github.com/shivammathur/setup-php/wiki/Requirements-for-self-hosted-runners#linuxwsl

Then, can you try running with shivammathur/setup-php@verbose and provide me the logs.

@Jamesking56
Copy link
Author

@shivammathur Thanks for your help investigating this.

Passwordless sudo is already setup on my runner.

I've just run the verbose tag of your action and this is the output:

Run shivammathur/setup-php@verbose
/bin/bash /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/run.sh
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11.1).
automake is already the newest version (1:1.16.1-4ubuntu6).
file is already the newest version (1:5.38-4).
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
make is already the newest version (4.2.1-1.2).
unzip is already the newest version (6.0-25ubuntu1).
ca-certificates is already the newest version (20210119~20.04.2).
curl is already the newest version (7.68.0-1ubuntu2.7).
gnupg is already the newest version (2.2.19-3ubuntu2.1).
apt-transport-https is already the newest version (2.0.6).
jq is already the newest version (1.6-1ubuntu0.20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.

==> Setup PHP

date.timezone=UTC
memory_limit=-1
opcache.enable=1
opcache.jit_buffer_size=256M
opcache.jit=1235
xdebug.mode=coverage
✓ PHP Found PHP 8.0.16

==> Setup Tools
✗ composer Could not download composer

@shivammathur
Copy link
Owner

Your PHP setup seems to be working now.
Whenever you have some time, I added more logging to the verbose tag, please restart your workflow with it and provide me the logs.

@Jamesking56
Copy link
Author

@shivammathur Run again and this is the log:

Raw Logs from GitHub Actions workflow run
2022-02-25T23:10:58.1489153Z ##[group]Run shivammathur/setup-php@verbose
2022-02-25T23:10:58.1490292Z with:
2022-02-25T23:10:58.1491205Z   php-version: 8
2022-02-25T23:10:58.1492153Z   tools: cs2pr
2022-02-25T23:10:58.1493107Z   ini-file: production
2022-02-25T23:10:58.1494065Z env:
2022-02-25T23:10:58.1494981Z   runner: self-hosted
2022-02-25T23:10:58.1495942Z ##[endgroup]
2022-02-25T23:10:58.2514031Z [command]/bin/bash /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/run.sh
2022-02-25T23:10:58.2678433Z ++ . /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../scripts/extensions/source.sh
2022-02-25T23:10:58.2698382Z ++ . /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../scripts/extensions/add_extensions.sh
2022-02-25T23:10:58.2720921Z ++ read_env
2022-02-25T23:10:58.2726920Z ++ update=false
2022-02-25T23:10:58.2732761Z ++ fail_fast=false
2022-02-25T23:10:58.2738535Z ++ [[ -z '' ]]
2022-02-25T23:10:58.2744717Z ++ [[ -z '' ]]
2022-02-25T23:10:58.2750696Z ++ _runner=self-hosted
2022-02-25T23:10:58.2757165Z ++ runner=self-hosted
2022-02-25T23:10:58.2763336Z ++ [[ self-hosted = \g\i\t\h\u\b ]]
2022-02-25T23:10:58.2769251Z ++ self_hosted_setup
2022-02-25T23:10:58.2775953Z ++ '[' self-hosted = self-hosted ']'
2022-02-25T23:10:58.2782760Z ++ [[ 8.0 =~ 5.[3-5] ]]
2022-02-25T23:10:58.2788976Z ++ self_hosted_helper
2022-02-25T23:10:58.2795025Z ++ command -v apt-fast
2022-02-25T23:10:58.2802714Z ++ install_packages apt-transport-https ca-certificates curl file make jq unzip autoconf automake gcc g++ gnupg
2022-02-25T23:10:58.2809226Z ++ packages=("$@")
2022-02-25T23:10:58.2817047Z ++ sudo DEBIAN_FRONTEND=noninteractive apt-fast install -y --no-install-recommends apt-transport-https ca-certificates curl file make jq unzip autoconf automake gcc g++ gnupg
2022-02-25T23:10:58.4319925Z Reading package lists...
2022-02-25T23:10:58.8565124Z Building dependency tree...
2022-02-25T23:10:58.8567999Z Reading state information...
2022-02-25T23:10:59.1721122Z autoconf is already the newest version (2.69-11.1).
2022-02-25T23:10:59.1746951Z automake is already the newest version (1:1.16.1-4ubuntu6).
2022-02-25T23:10:59.1751251Z file is already the newest version (1:5.38-4).
2022-02-25T23:10:59.1755413Z g++ is already the newest version (4:9.3.0-1ubuntu2).
2022-02-25T23:10:59.1759737Z gcc is already the newest version (4:9.3.0-1ubuntu2).
2022-02-25T23:10:59.1781207Z make is already the newest version (4.2.1-1.2).
2022-02-25T23:10:59.1829409Z unzip is already the newest version (6.0-25ubuntu1).
2022-02-25T23:10:59.1832897Z ca-certificates is already the newest version (20210119~20.04.2).
2022-02-25T23:10:59.1836021Z curl is already the newest version (7.68.0-1ubuntu2.7).
2022-02-25T23:10:59.1902946Z gnupg is already the newest version (2.2.19-3ubuntu2.1).
2022-02-25T23:10:59.1962951Z apt-transport-https is already the newest version (2.0.6).
2022-02-25T23:10:59.1964475Z jq is already the newest version (1.6-1ubuntu0.20.04.1).
2022-02-25T23:10:59.1965983Z 0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
2022-02-25T23:10:59.1967009Z ++ setup_php
2022-02-25T23:10:59.1968057Z ++ step_log 'Setup PHP'
2022-02-25T23:10:59.1969028Z ++ message='Setup PHP'
2022-02-25T23:10:59.1970290Z ++ printf '\n\033[90;1m==> \033[0m\033[37;1m%s\033[0m\n' 'Setup PHP'
2022-02-25T23:10:59.1971851Z ++ sudo mkdir -m 777 -p /var/run /run/php
2022-02-25T23:10:59.1972495Z 
2022-02-25T23:10:59.1972908Z �[90;1m==> �[0m�[37;1mSetup PHP�[0m
2022-02-25T23:10:59.2116590Z +++ command -v php-config
2022-02-25T23:10:59.2123758Z ++ php_config=/usr/bin/php-config
2022-02-25T23:10:59.2125700Z ++ [[ -z /usr/bin/php-config ]]
2022-02-25T23:10:59.2174375Z +++ php_semver
2022-02-25T23:10:59.2182848Z +++ cut -c 1-3
2022-02-25T23:10:59.2211011Z +++ grep -Eo 'version="[0-9]+(\.[0-9]+){2}((-?[a-zA-Z]+([0-9]+)?)?){2}' /usr/bin/php-config
2022-02-25T23:10:59.2214511Z +++ cut -d '"' -f 2
2022-02-25T23:10:59.2312637Z ++ '[' 8.0 '!=' 8.0 ']'
2022-02-25T23:10:59.2314174Z ++ '[' false = true ']'
2022-02-25T23:10:59.2316628Z ++ status=Found
2022-02-25T23:10:59.2318224Z ++ command -v php8.0
2022-02-25T23:10:59.2320470Z +++ grep -Po 'extension_dir=..[^/]*/\K[^'\''"]*' /usr/bin/php-config
2022-02-25T23:10:59.2355934Z ++ ext_dir=/usr/lib/php/20200930
2022-02-25T23:10:59.2407887Z +++ php_ini_path
2022-02-25T23:10:59.2443832Z +++ cut -d '"' -f 2
2022-02-25T23:10:59.2562479Z ++++ grep ini_path= /usr/bin/php-config
2022-02-25T23:10:59.2726150Z ++ ini_dir=/etc/php/8.0/cli
2022-02-25T23:10:59.2727812Z ++ scan_dir=/etc/php/8.0/cli/conf.d
2022-02-25T23:10:59.2730340Z ++ pecl_file=/etc/php/8.0/cli/conf.d/99-pecl.ini
2022-02-25T23:10:59.2732275Z +++ php_semver
2022-02-25T23:10:59.2736402Z +++ cut -d '"' -f 2
2022-02-25T23:10:59.2749398Z +++ grep -Eo 'version="[0-9]+(\.[0-9]+){2}((-?[a-zA-Z]+([0-9]+)?)?){2}' /usr/bin/php-config
2022-02-25T23:10:59.2774357Z ++ semver=8.0.16
2022-02-25T23:10:59.2778118Z +++ php_extra_version
2022-02-25T23:10:59.2781178Z +++ '[' -e /etc/php/8.0/COMMIT ']'
2022-02-25T23:10:59.2788530Z ++ extra_version=
2022-02-25T23:10:59.2790021Z ++ export ext_dir
2022-02-25T23:10:59.2792031Z ++ mapfile -t ini_file
2022-02-25T23:10:59.2793939Z +++ sudo find /etc/php/8.0/cli/.. -name php.ini -exec readlink -m '{}' +
2022-02-25T23:10:59.2930157Z ++ link_pecl_file
2022-02-25T23:10:59.2931849Z ++ echo ''
2022-02-25T23:10:59.2945355Z ++ sudo tee /etc/php/8.0/cli/conf.d/99-pecl.ini
2022-02-25T23:10:59.3019876Z 
2022-02-25T23:10:59.3036787Z ++ for file in "${ini_file[@]}"
2022-02-25T23:10:59.3053506Z ++++ dirname /etc/php/8.0/cli/php.ini
2022-02-25T23:10:59.3069149Z +++ realpath -m /etc/php/8.0/cli
2022-02-25T23:10:59.3085517Z ++ sapi_scan_dir=/etc/php/8.0/cli/conf.d
2022-02-25T23:10:59.3087502Z ++ '[' /etc/php/8.0/cli/conf.d '!=' /etc/php/8.0/cli/conf.d ']'
2022-02-25T23:10:59.3089827Z ++ configure_php
2022-02-25T23:10:59.3091263Z ++ add_php_config
2022-02-25T23:10:59.3093271Z ++ php_lib_dir=/usr/lib/php/8.0
2022-02-25T23:10:59.3094749Z ++ current_ini=/usr/lib/php/8.0/php.ini-current
2022-02-25T23:10:59.3097111Z +++ cat /usr/lib/php/8.0/php.ini-current
2022-02-25T23:10:59.3121534Z ++ current=production
2022-02-25T23:10:59.3123118Z ++ '[' production = production ']'
2022-02-25T23:10:59.3124361Z ++ return
2022-02-25T23:10:59.3126932Z ++ ini_config_dir=/opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../configs/ini
2022-02-25T23:10:59.3128914Z ++ ini_files=("$ini_config_dir"/php.ini)
2022-02-25T23:10:59.3131646Z ++ [[ 8.0 =~ 8.[0-9] ]]
2022-02-25T23:10:59.3132743Z ++ ini_files+=("$ini_config_dir"/jit.ini)
2022-02-25T23:10:59.3133909Z ++ [[ 8.0 =~ 7.[2-4]|8.[0-9] ]]
2022-02-25T23:10:59.3135007Z ++ ini_files+=("$ini_config_dir"/xdebug.ini)
2022-02-25T23:10:59.3136389Z ++ sudo tee -a /etc/php/8.0/cli/conf.d/99-pecl.ini
2022-02-25T23:10:59.3140084Z ++ cat /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../configs/ini/php.ini /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../configs/ini/jit.ini /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../configs/ini/xdebug.ini
2022-02-25T23:10:59.3245805Z date.timezone=UTC
2022-02-25T23:10:59.3247084Z memory_limit=-1
2022-02-25T23:10:59.3248284Z opcache.enable=1
2022-02-25T23:10:59.3249477Z opcache.jit_buffer_size=256M
2022-02-25T23:10:59.3250706Z opcache.jit=1235
2022-02-25T23:10:59.3251951Z xdebug.mode=coverage
2022-02-25T23:10:59.3273495Z ++ set_output php-version 8.0.16
2022-02-25T23:10:59.3275865Z ++ name=php-version
2022-02-25T23:10:59.3278560Z ++ value=8.0.16
2022-02-25T23:10:59.3280051Z ++ '[' true = true ']'
2022-02-25T23:10:59.3282154Z ++ echo '::set-output name=php-version::8.0.16'
2022-02-25T23:10:59.3284194Z ++ sudo rm -rf /usr/local/bin/phpunit
2022-02-25T23:10:59.3431177Z ++ sudo chmod 777 /etc/php/8.0/cli/php.ini /etc/php/8.0/cli/conf.d/99-pecl.ini /usr/local/bin
2022-02-25T23:10:59.3552378Z ++ sudo cp /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../configs/pm/php.json /opt/actions-runner/1/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../configs/pm/phpunit.json /opt/actions-runner/1/_work/_tool/
2022-02-25T23:10:59.3708147Z ++ add_log $'\342\234\223' PHP 'Found PHP 8.0.16'
2022-02-25T23:10:59.3723477Z ++ mark=$'\342\234\223'
2022-02-25T23:10:59.3732188Z ++ subject=PHP
2022-02-25T23:10:59.3738255Z ++ message='Found PHP 8.0.16'
2022-02-25T23:10:59.3749686Z ++ '[' $'\342\234\223' = $'\342\234\223' ']'
2022-02-25T23:10:59.3753997Z ++ printf '\033[32;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n' $'\342\234\223' PHP 'Found PHP 8.0.16'
2022-02-25T23:10:59.3756977Z + step_log 'Setup Tools'
2022-02-25T23:10:59.3760208Z + message='Setup Tools'
2022-02-25T23:10:59.3765323Z + printf '\n\033[90;1m==> \033[0m\033[37;1m%s\033[0m\n' 'Setup Tools'
2022-02-25T23:10:59.3771174Z + add_tool https://github.com/shivammathur/composer-cache/releases/latest/download/composer-8.0-stable.phar,https://getcomposer.org/composer-stable.phar composer latest
2022-02-25T23:10:59.3775248Z + url=https://github.com/shivammathur/composer-cache/releases/latest/download/composer-8.0-stable.phar,https://getcomposer.org/composer-stable.phar
2022-02-25T23:10:59.3789040Z + tool=composer
2022-02-25T23:10:59.3790380Z + ver_param=latest
2022-02-25T23:10:59.3798834Z + tool_path=/usr/local/bin/composer
2022-02-25T23:10:59.3799946Z + add_path /usr/local/bin
2022-02-25T23:10:59.3801028Z + path_to_add=/usr/local/bin
2022-02-25T23:10:59.3812111Z + [[ :/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/root/.antigen/bundles/robbyrussell/oh-my-zsh/lib:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/composer:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/command-not-found:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/common-aliases:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/debian:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/docker:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/git:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/laravel:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/osx:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/npm:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/pip:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/sudo:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/systemd:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/tmux:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/transfer:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ubuntu:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/ufw:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/web-search:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/yarn:/root/.antigen/bundles/robbyrussell/oh-my-zsh/plugins/zsh_reload:/root/.antigen/bundles/djui/alias-tips:/root/.antigen/bundles/hkupty/ssh-agent:/root/.antigen/bundles/Seinh/git-prune:/root/.antigen/bundles/zsh-users/zsh-syntax-highlighting:/root/.antigen/bundles/zsh-users/zsh-autosuggestions:/root/.antigen/bundles/zsh-users/zsh-completions:/root/.antigen/bundles/unixorn/autoupdate-antigen.zshplugin:/root/.config/composer/vendor/bin: == *\:\/\u\s\r\/\l\o\c\a\l\/\b\i\n\:* ]]
2022-02-25T23:10:59.3822254Z + return
2022-02-25T23:10:59.3823608Z + '[' -e /usr/local/bin/composer ']'
2022-02-25T23:10:59.3825034Z + sudo cp -aL /usr/local/bin/composer /tmp/composer
2022-02-25T23:10:59.3826787Z �[32;1m✓ �[0m�[34;1mPHP �[0m�[90;1mFound PHP 8.0.16�[0m
2022-02-25T23:10:59.3827551Z 
2022-02-25T23:10:59.3828186Z �[90;1m==> �[0m�[37;1mSetup Tools�[0m
2022-02-25T23:10:59.3994396Z + IFS=,
2022-02-25T23:10:59.3996503Z + read -r -a url
2022-02-25T23:10:59.4007101Z ++ get -v -e /usr/local/bin/composer https://github.com/shivammathur/composer-cache/releases/latest/download/composer-8.0-stable.phar https://getcomposer.org/composer-stable.phar
2022-02-25T23:10:59.4016447Z ++ mode=-v
2022-02-25T23:10:59.4023021Z ++ execute=-e
2022-02-25T23:10:59.4028975Z ++ file_path=/usr/local/bin/composer
2022-02-25T23:10:59.4034854Z ++ shift 3
2022-02-25T23:10:59.4040569Z ++ links=("$@")
2022-02-25T23:10:59.4047690Z ++ '[' -v = -s ']'
2022-02-25T23:10:59.4053805Z ++ for link in "${links[@]}"
2022-02-25T23:10:59.4182377Z +++ sudo curl -w '%{http_code}' -o /usr/local/bin/composer -vL https://github.com/shivammathur/composer-cache/releases/latest/download/composer-8.0-stable.phar
2022-02-25T23:10:59.4498431Z   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-02-25T23:10:59.4499793Z                                  Dload  Upload   Total   Spent    Left  Speed
2022-02-25T23:10:59.4500781Z 
2022-02-25T23:10:59.4590467Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 140.82.121.4:443...
2022-02-25T23:10:59.4593006Z * TCP_NODELAY set
2022-02-25T23:10:59.4765205Z * Connected to github.com (140.82.121.4) port 443 (#0)
2022-02-25T23:10:59.4766028Z * ALPN, offering h2
2022-02-25T23:10:59.4766665Z * ALPN, offering http/1.1
2022-02-25T23:10:59.4772851Z * successfully set certificate verify locations:
2022-02-25T23:10:59.4795869Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-02-25T23:10:59.4799358Z   CApath: /etc/ssl/certs
2022-02-25T23:10:59.4822264Z } [5 bytes data]
2022-02-25T23:10:59.4823397Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-02-25T23:10:59.4824601Z } [512 bytes data]
2022-02-25T23:10:59.4996788Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-02-25T23:10:59.4998055Z { [122 bytes data]
2022-02-25T23:10:59.4999045Z * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
2022-02-25T23:10:59.4999976Z { [19 bytes data]
2022-02-25T23:10:59.5000953Z * TLSv1.3 (IN), TLS handshake, Certificate (11):
2022-02-25T23:10:59.5001923Z { [2363 bytes data]
2022-02-25T23:10:59.5020525Z * TLSv1.3 (IN), TLS handshake, CERT verify (15):
2022-02-25T23:10:59.5021577Z { [80 bytes data]
2022-02-25T23:10:59.5022491Z * TLSv1.3 (IN), TLS handshake, Finished (20):
2022-02-25T23:10:59.5023754Z { [36 bytes data]
2022-02-25T23:10:59.5024940Z * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
2022-02-25T23:10:59.5025705Z } [1 bytes data]
2022-02-25T23:10:59.5026585Z * TLSv1.3 (OUT), TLS handshake, Finished (20):
2022-02-25T23:10:59.5027253Z } [36 bytes data]
2022-02-25T23:10:59.5027929Z * SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
2022-02-25T23:10:59.5029084Z * ALPN, server accepted to use h2
2022-02-25T23:10:59.5030451Z * Server certificate:
2022-02-25T23:10:59.5031586Z *  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=github.com
2022-02-25T23:10:59.5032844Z *  start date: Mar 25 00:00:00 2021 GMT
2022-02-25T23:10:59.5033924Z *  expire date: Mar 30 23:59:59 2022 GMT
2022-02-25T23:10:59.5035825Z *  subjectAltName: host "github.com" matched cert's "github.com"
2022-02-25T23:10:59.5037537Z *  issuer: C=US; O=DigiCert, Inc.; CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1
2022-02-25T23:10:59.5038974Z *  SSL certificate verify ok.
2022-02-25T23:10:59.5040545Z * Using HTTP2, server supports multi-use
2022-02-25T23:10:59.5041725Z * Connection state changed (HTTP/2 confirmed)
2022-02-25T23:10:59.5043077Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-02-25T23:10:59.5044430Z } [5 bytes data]
2022-02-25T23:10:59.5045434Z * Using Stream ID: 1 (easy handle 0x555ab7236e30)
2022-02-25T23:10:59.5046881Z } [5 bytes data]
2022-02-25T23:10:59.5048348Z > GET /shivammathur/composer-cache/releases/latest/download/composer-8.0-stable.phar HTTP/2
2022-02-25T23:10:59.5049737Z > Host: github.com
2022-02-25T23:10:59.5050901Z > user-agent: curl/7.68.0
2022-02-25T23:10:59.5052251Z > accept: */*
2022-02-25T23:10:59.5053254Z > 
2022-02-25T23:10:59.5074679Z { [5 bytes data]
2022-02-25T23:10:59.5079428Z * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
2022-02-25T23:10:59.5080603Z { [57 bytes data]
2022-02-25T23:10:59.5081907Z * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
2022-02-25T23:10:59.5083125Z { [57 bytes data]
2022-02-25T23:10:59.5084213Z * old SSL session ID is stale, removing
2022-02-25T23:10:59.5085346Z { [5 bytes data]
2022-02-25T23:10:59.5087023Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-02-25T23:10:59.5088257Z } [5 bytes data]
2022-02-25T23:10:59.6495812Z < HTTP/2 302 
2022-02-25T23:10:59.6496500Z < server: GitHub.com
2022-02-25T23:10:59.6497206Z < date: Fri, 25 Feb 2022 23:10:59 GMT
2022-02-25T23:10:59.6498799Z < content-type: text/html; charset=utf-8
2022-02-25T23:10:59.6500100Z < vary: X-PJAX, X-PJAX-Container, Accept-Encoding, Accept, X-Requested-With
2022-02-25T23:10:59.6501109Z < permissions-policy: interest-cohort=()
2022-02-25T23:10:59.6503213Z < location: https://github.com/shivammathur/composer-cache/releases/download/versions/composer-8.0-stable.phar
2022-02-25T23:10:59.6504816Z < cache-control: no-cache
2022-02-25T23:10:59.6506360Z < strict-transport-security: max-age=31536000; includeSubdomains; preload
2022-02-25T23:10:59.6507993Z < x-frame-options: deny
2022-02-25T23:10:59.6509410Z < x-content-type-options: nosniff
2022-02-25T23:10:59.6510413Z < x-xss-protection: 0
2022-02-25T23:10:59.6511616Z < referrer-policy: no-referrer-when-downgrade
2022-02-25T23:10:59.6512676Z < expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
2022-02-25T23:10:59.6522118Z < content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.githubapp.com collector.github.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events translator.github.com wss://alive.github.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations raw.githubusercontent.com github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com collector.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
2022-02-25T23:10:59.6532143Z < set-cookie: _gh_sess=XzCKkBt0TESL6B8cV389OB%2FoD4VZDuHbeDZuavQzEwbYWZyBqCxqzaVoAKHJV1%2F14GKYM0R%2BlROfd%2FkMS2mhpOH6oz3L5YjuDTODnV4O45MVUhRfdB3TA%2BobjfabRztVXkvaH%2FwUhesdulv82xCHziLFX5%2FTZ8y4OlaOMGG4RgdWxH5TD8Csrl7hA2D6HYOqmtVyC%2Fe6yt8k3%2Fm4%2FWDxK2aj67Rs9OFhT72Y930xzmLfefF4lmhgW291cifpYwhTQfcvYC1b5hPzEmcFuvSWnA%3D%3D--UqWrYxi1JKg3hjdc--0eEgJ3ca5XGF8CMaaVPpsw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
2022-02-25T23:10:59.6535844Z < set-cookie: _octo=GH1.1.1961809733.1645830659; Path=/; Domain=github.com; Expires=Sat, 25 Feb 2023 23:10:59 GMT; Secure; SameSite=Lax
2022-02-25T23:10:59.6538077Z < set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Feb 2023 23:10:59 GMT; HttpOnly; Secure; SameSite=Lax
2022-02-25T23:10:59.6539869Z < content-length: 164
2022-02-25T23:10:59.6541127Z < x-github-request-id: E58C:6D16:26534:65163:62196203
2022-02-25T23:10:59.6542218Z < 
2022-02-25T23:10:59.6543248Z * Ignoring the response-body
2022-02-25T23:10:59.6544209Z { [164 bytes data]
2022-02-25T23:10:59.6544740Z 
2022-02-25T23:10:59.6545464Z 100   164  100   164    0     0    780      0 --:--:-- --:--:-- --:--:--   780
2022-02-25T23:10:59.6546757Z * Connection #0 to host github.com left intact
2022-02-25T23:10:59.6548850Z * Issue another request to this URL: 'https://github.com/shivammathur/composer-cache/releases/download/versions/composer-8.0-stable.phar'
2022-02-25T23:10:59.6550675Z * Found bundle for host github.com: 0x555ab722eb70 [can multiplex]
2022-02-25T23:10:59.6552264Z * Re-using existing connection! (#0) with host github.com
2022-02-25T23:10:59.6553576Z * Connected to github.com (140.82.121.4) port 443 (#0)
2022-02-25T23:10:59.6554876Z * Using Stream ID: 3 (easy handle 0x555ab7236e30)
2022-02-25T23:10:59.6556035Z } [5 bytes data]
2022-02-25T23:10:59.6557638Z > GET /shivammathur/composer-cache/releases/download/versions/composer-8.0-stable.phar HTTP/2
2022-02-25T23:10:59.6559081Z > Host: github.com
2022-02-25T23:10:59.6560205Z > user-agent: curl/7.68.0
2022-02-25T23:10:59.6561266Z > accept: */*
2022-02-25T23:10:59.6562222Z > 
2022-02-25T23:10:59.8197490Z { [5 bytes data]
2022-02-25T23:10:59.8198104Z 
2022-02-25T23:10:59.8199388Z   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0< HTTP/2 302 
2022-02-25T23:10:59.8200748Z < server: GitHub.com
2022-02-25T23:10:59.8201742Z < date: Fri, 25 Feb 2022 23:10:59 GMT
2022-02-25T23:10:59.8203172Z < content-type: text/html; charset=utf-8
2022-02-25T23:10:59.8204740Z < vary: X-PJAX, X-PJAX-Container, Accept-Encoding, Accept, X-Requested-With
2022-02-25T23:10:59.8209373Z < permissions-policy: interest-cohort=()
2022-02-25T23:10:59.8213367Z < location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/285017057/62868931-d6f8-4a65-9fbf-916d0c632270?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220225T231059Z&X-Amz-Expires=300&X-Amz-Signature=adf106629fc71bb21de3f5fe0bb58f5bb1fb778825d7ff8079b6d2c2d860a897&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=285017057&response-content-disposition=attachment%3B%20filename%3Dcomposer-8.0-stable.phar&response-content-type=application%2Foctet-stream
2022-02-25T23:10:59.8215954Z < cache-control: no-cache
2022-02-25T23:10:59.8217555Z < strict-transport-security: max-age=31536000; includeSubdomains; preload
2022-02-25T23:10:59.8219399Z < x-frame-options: deny
2022-02-25T23:10:59.8220718Z < x-content-type-options: nosniff
2022-02-25T23:10:59.8221682Z < x-xss-protection: 0
2022-02-25T23:10:59.8223129Z < referrer-policy: no-referrer-when-downgrade
2022-02-25T23:10:59.8224878Z < expect-ct: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"
2022-02-25T23:10:59.8234299Z < content-security-policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.githubapp.com collector.github.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events translator.github.com wss://alive.github.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations raw.githubusercontent.com github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com collector.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/
2022-02-25T23:10:59.8241807Z < content-length: 663
2022-02-25T23:10:59.8243053Z < x-github-request-id: E58C:6D16:265F7:65248:62196203
2022-02-25T23:10:59.8243738Z < 
2022-02-25T23:10:59.8244394Z * Ignoring the response-body
2022-02-25T23:10:59.8245028Z { [70 bytes data]
2022-02-25T23:10:59.8245383Z 
2022-02-25T23:10:59.8245870Z 100   663  100   663    0     0   1749      0 --:--:-- --:--:-- --:--:-- 94714
2022-02-25T23:10:59.8246874Z * Connection #0 to host github.com left intact
2022-02-25T23:10:59.8250496Z * Issue another request to this URL: 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/285017057/62868931-d6f8-4a65-9fbf-916d0c632270?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220225T231059Z&X-Amz-Expires=300&X-Amz-Signature=adf106629fc71bb21de3f5fe0bb58f5bb1fb778825d7ff8079b6d2c2d860a897&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=285017057&response-content-disposition=attachment%3B%20filename%3Dcomposer-8.0-stable.phar&response-content-type=application%2Foctet-stream'
2022-02-25T23:10:59.8271534Z *   Trying 185.199.111.133:443...
2022-02-25T23:10:59.8272448Z * TCP_NODELAY set
2022-02-25T23:10:59.8431807Z * Connected to objects.githubusercontent.com (185.199.111.133) port 443 (#1)
2022-02-25T23:10:59.8433556Z * ALPN, offering h2
2022-02-25T23:10:59.8434575Z * ALPN, offering http/1.1
2022-02-25T23:10:59.8471987Z * successfully set certificate verify locations:
2022-02-25T23:10:59.8484398Z *   CAfile: /etc/ssl/certs/ca-certificates.crt
2022-02-25T23:10:59.8485552Z   CApath: /etc/ssl/certs
2022-02-25T23:10:59.8518878Z } [5 bytes data]
2022-02-25T23:10:59.8526207Z * TLSv1.3 (OUT), TLS handshake, Client hello (1):
2022-02-25T23:10:59.8559787Z } [512 bytes data]
2022-02-25T23:10:59.8631543Z * TLSv1.3 (IN), TLS handshake, Server hello (2):
2022-02-25T23:10:59.8663987Z { [122 bytes data]
2022-02-25T23:10:59.8673320Z * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
2022-02-25T23:10:59.8742365Z { [19 bytes data]
2022-02-25T23:10:59.8743596Z * TLSv1.3 (IN), TLS handshake, Certificate (11):
2022-02-25T23:10:59.8744840Z { [3067 bytes data]
2022-02-25T23:10:59.8745989Z * TLSv1.3 (IN), TLS handshake, CERT verify (15):
2022-02-25T23:10:59.8747324Z { [264 bytes data]
2022-02-25T23:10:59.8748524Z * TLSv1.3 (IN), TLS handshake, Finished (20):
2022-02-25T23:10:59.8749624Z { [52 bytes data]
2022-02-25T23:10:59.8750777Z * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
2022-02-25T23:10:59.8752065Z } [1 bytes data]
2022-02-25T23:10:59.8753014Z * TLSv1.3 (OUT), TLS handshake, Finished (20):
2022-02-25T23:10:59.8753948Z } [52 bytes data]
2022-02-25T23:10:59.8754659Z * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
2022-02-25T23:10:59.8755789Z * ALPN, server accepted to use h2
2022-02-25T23:10:59.8756938Z * Server certificate:
2022-02-25T23:10:59.8758367Z *  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=www.github.com
2022-02-25T23:10:59.8759715Z *  start date: May  6 00:00:00 2020 GMT
2022-02-25T23:10:59.8760592Z *  expire date: Apr 14 12:00:00 2022 GMT
2022-02-25T23:10:59.8762375Z *  subjectAltName: host "objects.githubusercontent.com" matched cert's "*.githubusercontent.com"
2022-02-25T23:10:59.8764078Z *  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
2022-02-25T23:10:59.8765289Z *  SSL certificate verify ok.
2022-02-25T23:10:59.8766302Z * Using HTTP2, server supports multi-use
2022-02-25T23:10:59.8767290Z * Connection state changed (HTTP/2 confirmed)
2022-02-25T23:10:59.8768529Z * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
2022-02-25T23:10:59.8769956Z } [5 bytes data]
2022-02-25T23:10:59.8771239Z * Using Stream ID: 1 (easy handle 0x555ab7236e30)
2022-02-25T23:10:59.8772561Z } [5 bytes data]
2022-02-25T23:10:59.8777332Z > GET /github-production-release-asset-2e65be/285017057/62868931-d6f8-4a65-9fbf-916d0c632270?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220225%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220225T231059Z&X-Amz-Expires=300&X-Amz-Signature=adf106629fc71bb21de3f5fe0bb58f5bb1fb778825d7ff8079b6d2c2d860a897&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=285017057&response-content-disposition=attachment%3B%20filename%3Dcomposer-8.0-stable.phar&response-content-type=application%2Foctet-stream HTTP/2
2022-02-25T23:10:59.8783551Z > Host: objects.githubusercontent.com
2022-02-25T23:10:59.8784949Z > user-agent: curl/7.68.0
2022-02-25T23:10:59.8785804Z > accept: */*
2022-02-25T23:10:59.8786764Z > 
2022-02-25T23:10:59.8787662Z { [5 bytes data]
2022-02-25T23:10:59.8788650Z * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
2022-02-25T23:10:59.8789596Z { [193 bytes data]
2022-02-25T23:10:59.8796362Z * Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
2022-02-25T23:10:59.8805908Z } [5 bytes data]
2022-02-25T23:11:00.3899806Z < HTTP/2 200 
2022-02-25T23:11:00.3901483Z < content-type: application/octet-stream
2022-02-25T23:11:00.3903060Z < content-md5: MJlnWEoH4+QrR0VHVMifAQ==
2022-02-25T23:11:00.3904445Z < last-modified: Fri, 25 Feb 2022 20:03:20 GMT
2022-02-25T23:11:00.3905190Z < etag: "0x8D9F899DF0992B5"
2022-02-25T23:11:00.3905999Z < server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
2022-02-25T23:11:00.3907345Z < x-ms-request-id: 8e620bd8-101e-0017-0e9c-2a8b6e000000
2022-02-25T23:11:00.3908388Z < x-ms-version: 2020-04-08
2022-02-25T23:11:00.3909160Z < x-ms-creation-time: Fri, 25 Feb 2022 20:03:20 GMT
2022-02-25T23:11:00.3910442Z < x-ms-lease-status: unlocked
2022-02-25T23:11:00.3911627Z < x-ms-lease-state: available
2022-02-25T23:11:00.3912864Z < x-ms-blob-type: BlockBlob
2022-02-25T23:11:00.3914042Z < content-disposition: attachment; filename=composer-8.0-stable.phar
2022-02-25T23:11:00.3914956Z < x-ms-server-encrypted: true
2022-02-25T23:11:00.3915643Z < fastly-restarts: 1
2022-02-25T23:11:00.3916327Z < accept-ranges: bytes
2022-02-25T23:11:00.3916938Z < date: Fri, 25 Feb 2022 23:11:00 GMT
2022-02-25T23:11:00.3917547Z < via: 1.1 varnish
2022-02-25T23:11:00.3922935Z < age: 0
2022-02-25T23:11:00.3924092Z < x-served-by: cache-hhn4029-HHN
2022-02-25T23:11:00.3925176Z < x-cache: MISS
2022-02-25T23:11:00.3926206Z < x-cache-hits: 0
2022-02-25T23:11:00.3926915Z < x-timer: S1645830660.906236,VS0,VE510
2022-02-25T23:11:00.3927846Z < content-length: 2362452
2022-02-25T23:11:00.3928446Z < 
2022-02-25T23:11:00.3929037Z { [5 bytes data]
2022-02-25T23:11:00.5582420Z 
2022-02-25T23:11:00.5601775Z 100 2307k  100 2307k    0     0  2065k      0  0:00:01  0:00:01 --:--:-- 2065k
2022-02-25T23:11:00.5604095Z * Connection #1 to host objects.githubusercontent.com left intact
2022-02-25T23:11:00.5638633Z ++ status_code=200
2022-02-25T23:11:00.5643860Z ++ '[' 200 = 200 ']'
2022-02-25T23:11:00.5645701Z ++ break
2022-02-25T23:11:00.5648140Z ++ '[' -e = -e ']'
2022-02-25T23:11:00.5649913Z ++ sudo chmod a+x /usr/local/bin/composer
2022-02-25T23:11:00.5911503Z ++ '[' -v = -v ']'
2022-02-25T23:11:00.5912936Z ++ echo 200
2022-02-25T23:11:00.5916691Z + status_code=200
2022-02-25T23:11:00.5919502Z + '[' 200 '!=' 200 ']'
2022-02-25T23:11:00.5920548Z + '[' 200 = 200 ']'
2022-02-25T23:11:00.5921927Z + add_tools_helper composer
2022-02-25T23:11:00.5923002Z + tool=composer
2022-02-25T23:11:00.5923920Z + extensions=()
2022-02-25T23:11:00.5925172Z + '[' composer = codeception ']'
2022-02-25T23:11:00.5926502Z + '[' composer = composer ']'
2022-02-25T23:11:00.5929449Z + configure_composer /usr/local/bin/composer
2022-02-25T23:11:00.5931114Z + tool_path=/usr/local/bin/composer
2022-02-25T23:11:00.5932365Z + sudo ln -sf /usr/local/bin/composer /usr/local/bin/composer.phar
2022-02-25T23:11:00.6203720Z + php -r 'try {$p=new Phar('\''/usr/local/bin/composer.phar'\'', 0);exit(0);} catch(Exception $e) {exit(1);}'
2022-02-25T23:11:00.9783265Z + '[' 1 -eq 1 ']'
2022-02-25T23:11:00.9822719Z + add_log $'\342\234\227' composer 'Could not download composer'
2022-02-25T23:11:00.9825458Z + mark=$'\342\234\227'
2022-02-25T23:11:00.9827105Z + subject=composer
2022-02-25T23:11:00.9831076Z + message='Could not download composer'
2022-02-25T23:11:00.9834421Z + '[' $'\342\234\227' = $'\342\234\223' ']'
2022-02-25T23:11:00.9837365Z + printf '\033[31;1m%s \033[0m\033[34;1m%s \033[0m\033[90;1m%s\033[0m\n' $'\342\234\227' composer 'Could not download composer'
2022-02-25T23:11:00.9981333Z + '[' false = true ']'
2022-02-25T23:11:00.9982170Z + exit 1
2022-02-25T23:11:00.9983561Z �[31;1m✗ �[0m�[34;1mcomposer �[0m�[90;1mCould not download composer�[0m
2022-02-25T23:11:01.0028840Z ##[error]The process '/bin/bash' failed with exit code 1

@shivammathur
Copy link
Owner

Thanks

what is the output when you run this with sudo and without sudo

php -r "try {\$p=new Phar('/usr/local/bin/composer.phar', 0);exit(0);} catch(Exception \$e) {exit(1);}"
echo $?
sudo php -r "try {\$p=new Phar('/usr/local/bin/composer.phar', 0);exit(0);} catch(Exception \$e) {exit(1);}"
echo $?

@Jamesking56
Copy link
Author

@shivammathur These both output exit code 0

@shivammathur
Copy link
Owner

I'm not sure why checking the composer phar fails in the action and works when you run the command. Does your runner run with a different user?

If you can reproduce this in a dockerized self-hosted runner. I can have a look.

@thewoods96
Copy link

Seems we're having the same trouble(but with v7.4);

check_suite_focus=true#step:3:2)
  with:
    php-version: 7.[4]
    coverage: pcov
    extensions: mbstring, phpredis/phpredis, php-curl, soap
    tools: composer:v2
    ini-file: production
  env:
    runner: self-hosted
/usr/bin/bash /opt/actions-runner/_work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh

==> Setup PHP
grep: : No such file or directory
grep: : No such file or directory
/opt/actions-runner/_work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/unix.sh: line 170: php_config: parameter null or not set
✓ PHP Switched to PHP 

==> Setup Extensions
✓ mbstring Installed and enabled
/opt/actions-runner/_work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/add_extensions.sh: line semver: parameter null or not set
Error: The process '/usr/bin/bash' failed with exit code 1

The issues appeared suddenly as well, however it seems to be intermittent? If we re-run the workflows a few times we'll eventually get a good result, every other time we just get what i've included above.

Couldn't really see a solution from the thread above, @shivammathur please let me know if there's any known fix/workaround and i'll try it out! 👍

@shivammathur
Copy link
Owner

shivammathur commented Mar 14, 2022

@thewoods96
There is a fix in the develop branch. Please wait for the next release. I plan to do that tomorrow.

or you can run this and that should also fix it.

sudo apt-get install -y php7.4-dev

@thewoods96
Copy link

Fantastic, I'll keep an eye out and let you know if there's any further issues. Thanks for the fix and quick response 🚀

@shivammathur
Copy link
Owner

@thewoods96
Sorry for the delay. Released 2.18.0 with the fix.

@thewoods96
Copy link

Yepp can confirm that i'm no longer seeing the same issues. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working self-hosted
Projects
None yet
Development

No branches or pull requests

3 participants