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

Bug: PHP 8.3 Fails #893

Closed
1 of 2 tasks
onairmarc opened this issue Dec 15, 2024 · 23 comments
Closed
1 of 2 tasks

Bug: PHP 8.3 Fails #893

onairmarc opened this issue Dec 15, 2024 · 23 comments
Assignees
Labels
bug Something isn't working

Comments

@onairmarc
Copy link

Describe the bug

Running with PHP 8.3 fails during setup. This action is called from a reusable workflow. The default PHP version that we specify is 8.3, however the setup fails and therefore the rest of the pipeline cannot proceed.

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

ubuntu-latest

PHP versions

PHP 8.3

To Reproduce

Call the workflow specifying PHP version 8.3

Expected behavior

The action should successfully setup PHP without error.

Screenshots/Logs

image
image

Additional context

No response

Are you willing to submit a PR?

Yes

@onairmarc onairmarc added the bug Something isn't working label Dec 15, 2024
@Tailzip
Copy link

Tailzip commented Dec 15, 2024

Facing exact same issue, started to happen a few minutes ago

@onairmarc
Copy link
Author

Yep! Everything was working fine until suddenly it all came crashing down.

@cedaesca
Copy link

Same problem here

@CodeWithKyrian
Copy link

CodeWithKyrian commented Dec 15, 2024

Same issue here as well for 8.2, 8.3 and 8.4. 8.1 runs smoothtly though

@agungkes
Copy link

@CodeWithKyrian i tried with 8.4 but no luck
image

@yojahny55
Copy link

Same issue with 8.2, it seems a problem with the release file
image
Refererence here: #789 (comment)

@WildanMZaki
Copy link

Facing same problem with 8.2 version

@richard015ar
Copy link

same here

@tannerhelton
Copy link

same here version 8.2

@nguereza-tony
Copy link

Same issue with 7.4

@westonruter
Copy link

Same with latest (8.4):

image

@michaelnguyen2021
Copy link

same issue with php 8.2

Screenshot 2024-12-14 at 11 03 54 PM

@ofirya-fullpath
Copy link

ofirya-fullpath commented Dec 15, 2024

Same issue with PHP 8.3

Run shivammathur/setup-php@v2
  with:
    php-version: 8.3
    ini-file: production
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh

==> Setup PHP
✗ PHP Could not setup PHP 8.3
Error: The process '/usr/bin/bash' failed with exit code 1

@techgaun
Copy link

techgaun commented Dec 15, 2024

I wonder if this is failing only on github environment. I pulled down setup-php and tested locally. We run php8.2 and it works fine on my machine. The error is coming from https://github.com/shivammathur/setup-php/blob/v2/src/scripts/linux.sh#L270-L271 (or equivalent probably).

The issue seems on command -v php8.2 not working. On testing locally, the binary works fine.

The run.sh script looks as below:

. /run/act/actions/shivammathur-setup-php@v2/src/scripts/linux.sh 8.2 production
step_log "Setup Tools"
add_tool https://github.com/shivammathur/composer-cache/releases/latest/download/composer-8.2-2.phar,https://dl.cloudsmith.io/public/shivammathur/composer-cache/raw/files/composer-8.2-2.phar,https://getcomposer.org/composer-2.phar composer 2
step_log "Setup Coverage"

step_log "Setup Extensions" >/dev/null 2>&1

disable_extension pcov false >/dev/null 2>&1

step_log "Setup Extensions" >/dev/null 2>&1

disable_extension xdebug false >/dev/null 2>&1
add_log "$tick" "none" "Disabled Xdebug and PCOV"
step_log "Sponsor setup-php"

so its failing on the first line itself. Need to debug further but maybe github IP space is somehow not able to download the some artifact.

@Tailzip
Copy link

Tailzip commented Dec 15, 2024

Switching runner from ubuntu-latest (22.04) to ubuntu-24.04 works (EDIT: as a temporary workaround).

@mostafaznv
Copy link

I am experiencing the same issue with versions 8.2, 8.3, and 8.4. However, version 8.1 runs smoothly.

@nn6v6nn
Copy link

nn6v6nn commented Dec 15, 2024

Same issue here as well for 8.2, 8.3 and 8.4. 8.1 runs smoothtly though

Ubuntu 22.04 is used by the Github Runner ubuntu-latest, and PHP 8.1 has been pre-installed on it.

@3x1io
Copy link

3x1io commented Dec 15, 2024

i have the same issue on PHP 8.1

Screenshot 2024-12-15 at 9 56 45 AM

@szepeviktor
Copy link
Contributor

PHP Could not setup PHP 7.4

@3x1io
Copy link

3x1io commented Dec 15, 2024

Switching runner from ubuntu-latest (22.04) to ubuntu-24.04 works (EDIT: as a temporary workaround).

not working for me

@midnite81
Copy link

Facing the same issue

@shivammathur
Copy link
Owner

This has been fixed.
Please restart your workflows.

@techgaun
Copy link

Great, thanks for fixing! this seems to be coming from https://github.com/shivammathur/php-ubuntu and fix probably on shivammathur/php-ubuntu@d893807 for anyone interested

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

No branches or pull requests