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: action stuck #904

Closed
1 of 2 tasks
fabio-ivona opened this issue Jan 20, 2025 · 5 comments
Closed
1 of 2 tasks

Bug: action stuck #904

fabio-ivona opened this issue Jan 20, 2025 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@fabio-ivona
Copy link

fabio-ivona commented Jan 20, 2025

Describe the bug

It seems that the action gets stuck while running

this is the debug log from the workflow:

I've tried to wait several minutes, without any success

any ideas?

Version

  • v2
  • v1

Runners

Self Hosted

Operating systems

ubuntu 24.04

PHP versions

PHP8.4

To Reproduce

just start a workflow in a self-hosted runner

Expected behavior

    steps:

      - uses: actions/checkout@v4

      - uses: shivammathur/setup-php@v2
        env:
          runner: self-hosted
        with:
          php-version: ${{ matrix.php }}
          tools: composer:v2
          extensions: curl, mbstring, gd, zip, sqlite
          coverage: none

Screenshots/Logs

Image

Additional context

No response

Are you willing to submit a PR?

No

@fabio-ivona fabio-ivona added the bug Something isn't working label Jan 20, 2025
@shivammathur
Copy link
Owner

@fabio-ivona

I could not reproduce the issue, can you try in a new runner
https://github.com/shivammathur/test-setup-php/actions/runs/12876012169/workflow

Please check if you configured password-less sudo for your user
https://github.com/shivammathur/setup-php/wiki/Requirements-for-self-hosted-runners#linuxwsl

@fabio-ivona
Copy link
Author

Thanks for your reply @shivammathur ,I'll try and will let you know

@fabio-ivona
Copy link
Author

@shivammathur it seems there was an issue in my local setup, using your shivammathur/node:latest docker image as a base worked as a charm

thanks for your support!

@weirdan
Copy link

weirdan commented Feb 5, 2025

I'm seeing this as well on Ubuntu 22.04 setting up PHP 8.0:

==> Setup PHP
Repository ondrej/php already exists
[apt-fast 10:57:56]
[apt-fast 10:57:56]Working... this may take a while.
Reading package lists...
Building dependency tree...
Reading state information...
php8.0-cgi is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-cli is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-curl is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-dev is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-fpm is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-intl is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-mbstring is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-mysql is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-opcache is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-pgsql is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-xml is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
php8.0-zip is already the newest version (1:8.0.30-12+ubuntu22.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
update-alternatives: error: no alternatives for php-fpm
✓ xml Enabled
✓ php-config Added php-config 
✓ PECL Added PECL 1.10.12
date.timezone=UTC
memory_limit=-1
xdebug.mode=coverage
opcache.enable=1
opcache.jit_buffer_size=256M
opcache.jit=1235
php-version=8.0.30
✓ PHP Found PHP 8.0.30
==> Setup Extensions
✓ mbstring Enabled
✓ xml Enabled
✓ ctype Enabled
✓ iconv Enabled
✓ intl Enabled
✓ pdo_sqlite Enabled
✓ dom Enabled
✓ filter Enabled
✓ gd Enabled
✓ iconv Enabled
✓ json Enabled
✓ mbstring Enabled
✓ pdo Enabled
✓ imagick Enabled
✓ xdebug Enabled
✓ redis Enabled
==> Setup Tools

After the ==> Setup Tools message, there is no output, and the workflow just hangs for hours and eventually times out.

@shivammathur
Copy link
Owner

@weirdan Please create a new issue with all the details like your workflow and your runner type.

@weirdan weirdan mentioned this issue Feb 5, 2025
2 tasks
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

3 participants