[GH-ISSUE #751] Issue: ::error::The process '/bin/tar' failed with exit code 2 with subosito/flutter-action@v1.5.0 #472

Closed
opened 2026-03-01 21:43:43 +03:00 by kerem · 1 comment
Owner

Originally created by @nilsreichardt on GitHub (Jul 15, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/751

System information

  • Operating System: macOS
  • Architecture: arm64 (64-bit)
  • Apple M1: Yes
  • Docker version: 3.5.2 (3.5.2.18)
  • Docker image used in act:
  • act version: 0.2.23

Expected behaviour

No errors, when running act

Actual behaviour

If I run act -j unit-widget-test I get this error:
::error::The process '/bin/tar' failed with exit code 2

Workflow and/or repository

workflow
name: flutter

concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true

env:
  FLUTTER_VERSION: "2.2.0"

on:
  pull_request:
    # The types trigger are needed to prevent github running our action when a
    # pull request is marked as draft:
    # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/16?u=nilsreichardt
    types: [opened, synchronize, reopened, ready_for_review]
    branches:
      - main
    paths:
      - ".github/workflows/flutter.yml"
      - "app/lib/**"
      - "app/test/**"
      - "app/integration_test/**"
      - "app/test_goldens/**"
      - "app/pubspec.yaml"

  unit-widget-test:
    # if: github.event.pull_request.draft == false
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: subosito/flutter-action@v1.5.0
      with:
        flutter-version: ${{ env.FLUTTER_VERSION }}
    
    - name: Install dependencies
      run: |
        cd app
        flutter pub get
    
    - name: Run Unit and Widget Tests
      run: |
        cd app
        flutter test

Steps to reproduce

  1. Copy workflow
  2. Run act -j unit-widget-test

act output

Log
[flutter/unit-widget-test] 🚀  Start image=node:12-buster-slim
[flutter/unit-widget-test]   🐳  docker run image=node:12-buster-slim platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[flutter/unit-widget-test]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[flutter/unit-widget-test]   🐳  docker cp src=/Users/nils/Desktop/Projects/gatch/. dst=/Users/nils/Desktop/Projects/gatch
[flutter/unit-widget-test]   🐳  docker exec cmd=[mkdir -p /Users/nils/Desktop/Projects/gatch] user=
[flutter/unit-widget-test] ⭐  Run actions/checkout@v2
[flutter/unit-widget-test]   ✅  Success - actions/checkout@v2
[flutter/unit-widget-test] ⭐  Run subosito/flutter-action@v1.5.0
INFO[0019]   ☁  git clone 'https://github.com/subosito/flutter-action' # ref=v1.5.0 
[flutter/unit-widget-test]   🐳  docker cp src=/Users/nils/.cache/act/subosito-flutter-action@v1.5.0/ dst=/var/run/act/actions/subosito-flutter-action@v1.5.0/
[flutter/unit-widget-test]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/subosito-flutter-action@v1.5.0/] user=
[flutter/unit-widget-test]   🐳  docker exec cmd=[node /var/run/act/actions/subosito-flutter-action@v1.5.0/dist/index.js] user=
[flutter/unit-widget-test]   💬  ::debug::isExplicit: 2.2.0-stable
[flutter/unit-widget-test]   💬  ::debug::explicit? true
[flutter/unit-widget-test]   💬  ::debug::checking cache: /opt/hostedtoolcache/flutter/2.2.0-stable/arm64
[flutter/unit-widget-test]   💬  ::debug::not found
[flutter/unit-widget-test]   💬  ::debug::Downloading Flutter from Google storage https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_2.2.0-stable.tar.xz
[flutter/unit-widget-test]   💬  ::debug::Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_2.2.0-stable.tar.xz
[flutter/unit-widget-test]   💬  ::debug::Destination /tmp/b0bcdb50-0ef9-4281-afdc-c9b5c5323281
[flutter/unit-widget-test]   💬  ::debug::download complete
[flutter/unit-widget-test]   💬  ::debug::Checking tar --version
[flutter/unit-widget-test]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/bin/tar x --warning=no-unknown-keyword -C /tmp/temp_1680821233 -f /tmp/b0bcdb50-0ef9-4281-afdc-c9b5c5323281
| tar (child): xz: Cannot exec: No such file or directory
| tar (child): Error is not recoverable: exiting now
| /bin/tar: Child returned status 2
| /bin/tar: Error is not recoverable: exiting now
[flutter/unit-widget-test]   ❗  ::error::The process '/bin/tar' failed with exit code 2
[flutter/unit-widget-test]   ❌  Failure - subosito/flutter-action@v1.5.0
Originally created by @nilsreichardt on GitHub (Jul 15, 2021). Original GitHub issue: https://github.com/nektos/act/issues/751 <!-- - Make sure you are able to reproduce it on the [latest version](https://github.com/nektos/act/releases) - Search the existing issues. - Refer to [README](https://github.com/nektos/act/blob/master/README.md). --> ## System information <!-- - Operating System: < Windows | Linux | macOS | etc... > - Architecture: < x64 (64-bit) | x86 (32-bit) | arm64 (64-bit) | arm (32-bit) | etc... > - Apple M1: < yes | no > - Docker version: < output of `docker system info -f "{{.ServerVersion}}"` > - Docker image used in `act`: < can be omitted if it's included in log > - `act` version: < output of `act --version`, if you've built `act` yourself, please provide commit hash > --> - Operating System: macOS - Architecture: arm64 (64-bit) - Apple M1: Yes - Docker version: 3.5.2 (3.5.2.18) - Docker image used in `act`: - `act` version: 0.2.23 ## Expected behaviour No errors, when running `act` ## Actual behaviour If I run `act -j unit-widget-test` I get this error: `::error::The process '/bin/tar' failed with exit code 2` ## Workflow and/or repository <details> <summary>workflow</summary> ```none name: flutter concurrency: group: ci-${{ github.ref }} cancel-in-progress: true env: FLUTTER_VERSION: "2.2.0" on: pull_request: # The types trigger are needed to prevent github running our action when a # pull request is marked as draft: # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/16?u=nilsreichardt types: [opened, synchronize, reopened, ready_for_review] branches: - main paths: - ".github/workflows/flutter.yml" - "app/lib/**" - "app/test/**" - "app/integration_test/**" - "app/test_goldens/**" - "app/pubspec.yaml" unit-widget-test: # if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: subosito/flutter-action@v1.5.0 with: flutter-version: ${{ env.FLUTTER_VERSION }} - name: Install dependencies run: | cd app flutter pub get - name: Run Unit and Widget Tests run: | cd app flutter test ``` </details> ## Steps to reproduce 1. Copy workflow 2. Run `act -j unit-widget-test` ## `act` output <!-- - Use `act` with `-v`/`--verbose` and paste output from your terminal in code block below --> <details> <summary>Log</summary> ```none [flutter/unit-widget-test] 🚀 Start image=node:12-buster-slim [flutter/unit-widget-test] 🐳 docker run image=node:12-buster-slim platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [flutter/unit-widget-test] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [flutter/unit-widget-test] 🐳 docker cp src=/Users/nils/Desktop/Projects/gatch/. dst=/Users/nils/Desktop/Projects/gatch [flutter/unit-widget-test] 🐳 docker exec cmd=[mkdir -p /Users/nils/Desktop/Projects/gatch] user= [flutter/unit-widget-test] ⭐ Run actions/checkout@v2 [flutter/unit-widget-test] ✅ Success - actions/checkout@v2 [flutter/unit-widget-test] ⭐ Run subosito/flutter-action@v1.5.0 INFO[0019] ☁ git clone 'https://github.com/subosito/flutter-action' # ref=v1.5.0 [flutter/unit-widget-test] 🐳 docker cp src=/Users/nils/.cache/act/subosito-flutter-action@v1.5.0/ dst=/var/run/act/actions/subosito-flutter-action@v1.5.0/ [flutter/unit-widget-test] 🐳 docker exec cmd=[mkdir -p /var/run/act/actions/subosito-flutter-action@v1.5.0/] user= [flutter/unit-widget-test] 🐳 docker exec cmd=[node /var/run/act/actions/subosito-flutter-action@v1.5.0/dist/index.js] user= [flutter/unit-widget-test] 💬 ::debug::isExplicit: 2.2.0-stable [flutter/unit-widget-test] 💬 ::debug::explicit? true [flutter/unit-widget-test] 💬 ::debug::checking cache: /opt/hostedtoolcache/flutter/2.2.0-stable/arm64 [flutter/unit-widget-test] 💬 ::debug::not found [flutter/unit-widget-test] 💬 ::debug::Downloading Flutter from Google storage https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_2.2.0-stable.tar.xz [flutter/unit-widget-test] 💬 ::debug::Downloading https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_2.2.0-stable.tar.xz [flutter/unit-widget-test] 💬 ::debug::Destination /tmp/b0bcdb50-0ef9-4281-afdc-c9b5c5323281 [flutter/unit-widget-test] 💬 ::debug::download complete [flutter/unit-widget-test] 💬 ::debug::Checking tar --version [flutter/unit-widget-test] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason. | [command]/bin/tar x --warning=no-unknown-keyword -C /tmp/temp_1680821233 -f /tmp/b0bcdb50-0ef9-4281-afdc-c9b5c5323281 | tar (child): xz: Cannot exec: No such file or directory | tar (child): Error is not recoverable: exiting now | /bin/tar: Child returned status 2 | /bin/tar: Error is not recoverable: exiting now [flutter/unit-widget-test] ❗ ::error::The process '/bin/tar' failed with exit code 2 [flutter/unit-widget-test] ❌ Failure - subosito/flutter-action@v1.5.0 ``` </details>
kerem 2026-03-01 21:43:43 +03:00
Author
Owner

@catthehacker commented on GitHub (Jul 15, 2021):

node:12-buster-slim does not contain xz-utils, please use one of bigger images

<!-- gh-comment-id:880805082 --> @catthehacker commented on GitHub (Jul 15, 2021): `node:12-buster-slim` does not contain `xz-utils`, please use one of bigger images
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#472
No description provided.