FG
💻 Software☁️ Cloud & DevOpsMicrosoft

Error: Can't use 'tar -xzf' extract archive file

Freshalmost 4 years ago
Mar 14, 20260 views
Confidence Score80%
80%

Problem

Describe the bug Can't use runner. getting below error while running actions Getting action download info Download action repository 'actions/checkout@v2' (SHA:7884fcad6b5d53d10323aee724dc68d8b9096a2e) Download action repository 'actions/setup-python@v2' (SHA:7f80679172b057fc5e90d70d197929d454754a5a) Error: Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_fcaba673-8301-4f09-b4c0-658716c016e9/0f75c0dd-581a-4910-aa5c-6a5cc9a53620.tar.gz. return code: 2. To Reproduce Steps to reproduce the behavior: 1. run github actions Expected behavior actions should be complete without any errors Runner Version and Platform Current runner version: '2.291.1' OS of the machine running the runner? OSX/Windows/Linux/... What's not working? [code block] Job Log Output If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here. Runner and Worker's Diagnostic Logs If applicable, add relevant diagnostic log information. Logs are located in the runner's `_diag` folder. The runner logs are prefixed with `Runner_` and the worker logs are prefixed with `Worker_`. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

Error Output

error while running actions

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
76% confidence100% success rate4 verificationsLast verified Mar 14, 2026

Solution: Error: Can't use 'tar -xzf' extract archive file

Low Risk

@levrik I had the same issue with actions/cache , it might not be something specific to that action [code block]

76

Trust Score

4 verifications

100% success
  1. 1

    @levrik I had the same issue with actions/cache , it might not be something spec

    @levrik I had the same issue with actions/cache , it might not be something specific to that action

Validation

Resolved in actions/runner GitHub issue #1923. Community reactions: 6 upvotes.

Verification Summary

Worked: 4
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

github-actionsci-cdrunnerbug