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

self-hosted (?) Failed to setup libaio-dev #32

Closed
2 of 5 tasks
MarcHagen opened this issue May 31, 2023 · 2 comments
Closed
2 of 5 tasks

self-hosted (?) Failed to setup libaio-dev #32

MarcHagen opened this issue May 31, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@MarcHagen
Copy link

MarcHagen commented May 31, 2023

Describe the bug

==> Setup libraries
Logs to set up required libraries
  Reading package lists...
  Building dependency tree...
  Reading state information...
  E: Unable to locate package libaio-dev
✗ libaio-dev Failed to setup libaio-dev

Version

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

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems
summerwind/actions-runner-dind:ubuntu-22.04

PHP versions
8.1, 8.2, 8.3

To Reproduce

jobs:
  run:
    name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
    runs-on: ${{ matrix.operating-system }}
    env:
      APP_ENV: github
      PHP_CS_FIXER_IGNORE_ENV: 1
      extensions: mbstring, pdo, pdo_mysql, intl, zip
    strategy:
      fail-fast: false
      matrix:
        operating-system: [ self-hosted ]
        php-versions: [ 8.1, 8.2, 8.3 ]

    continue-on-error: ${{ matrix.php-versions == 8.3 }}

    steps:
      -
        name: Checkout
        uses: actions/checkout@v3
      -
        name: Setup cache environment
        id: extcache
        uses: shivammathur/cache-extensions@f6bffb2308b2a322d68fac3610257ad04ca32fe4 # pin @1.9.1
        with:
          php-version: ${{ matrix.php-versions }}
          extensions: ${{ env.extensions }}
          key: ${{ runner.os }}-setup-php-
        env:
          runner: self-hosted
      -
        name: Cache extensions
        uses: actions/cache@v3
        with:
          path: ${{ steps.extcache.outputs.dir }}
          key: ${{ steps.extcache.outputs.key }}${{ hashFiles('**/composer.lock') }}
          restore-keys: ${{ steps.extcache.outputs.key }}
      -
        name: Setup PHP
        uses: shivammathur/setup-php@c5fc0d8281aba02c7fda07d3a70cc5371548067d # pin @v2
        with:
          ini-values: >-
            variables_order=EGPCS
          php-version: ${{ matrix.php-versions }}
          extensions: ${{ env.extensions }}
        env:
          runner: self-hosted

Expected behavior
Working cache same as shivammathur/setup-php

Screenshots/Logs

Additional context

Are you willing to submit a PR?

@MarcHagen MarcHagen added the bug Something isn't working label May 31, 2023
@shivammathur
Copy link
Owner

@MarcHagen Please test with 1.10.0 release

@MarcHagen
Copy link
Author

Yep, I already know that using sudo it is the solution to this problem.
We stepped away from this package as it did not cache all extensions (#21) and issues with restoring the github cache. That resulted in no permission errors.

Eventually, we decided to create our own docker image of the action-runner image with has php installed already.

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

2 participants