question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github Actions "Set up job" fails with tar error

See original GitHub issue

Since earlier today, a Github Actions workflow which has been working reliably for many months has started failing with a tar error. Is there a disk space issue on the build node (in which case, how and where do I report that?) or something internal to the component? The log output provides no clues as to what’s wrong.

Here’s a recent failed run, with all the diagnostic arrows expanded (https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true):

[build (3.10)](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#logs)
failed 3 hours ago in 4s
Search logs
4s
Current runner version: '2.29[1](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:1).1'
Operating System
  Ubuntu
  [2](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:2)0.04.4
  LTS
Virtual Environment
  Environment: ubuntu-20.04
  Version: 20220515.1
  Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220515.1/images/linux/Ubuntu2004-Readme.md
  Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220515.1
Virtual Environment Provisioner
  1.0.0.0-main-20220516-1
GITHUB_TOKEN Permissions
  Contents: read
  Metadata: read
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v[3](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:3)' (SHA:25[4](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:4)1b1294d2704b0964813337f33b291d3f8[5](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:5)9[6](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:7)b)
Download action repository 'actions/setup-python@v3' (SHA:98f2ad02fd48d05[7](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:8)ee3b4d4f66525b231c3e52b6)
Download action repository 'actions/cache@v2' (SHA:937d244753[8](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:9)1cd[9](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:10)c75ae6db12cb4e79714b926ed)
Error: Can't use 'tar -xzf' extract archive file: /home/runner/work/_actions/_temp_5c7ba8d5-a56d-4632-9e2b-a9e93af7c2bd/ac649a82-c6ff-48aa-a635-b5a5[10](https://github.com/Charcoal-SE/SmokeDetector/runs/6703125729?check_suite_focus=true#step:1:11)caccfa.tar.gz. return code: 2.

For comparison, here is a successful job from just a few minutes apart (https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true)

[build (3.10)](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#logs)
succeeded 3 hours ago in 6m 14s
Search logs
2s
Current runner version: '2.29[1](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:1).1'
Operating System
  Ubuntu
  [2](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:2)0.04.4
  LTS
Virtual Environment
  Environment: ubuntu-20.04
  Version: 20220515.1
  Included Software: https://github.com/actions/virtual-environments/blob/ubuntu20/20220515.1/images/linux/Ubuntu2004-Readme.md
  Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220515.1
Virtual Environment Provisioner
  1.0.0.0-main-20220516-1
GITHUB_TOKEN Permissions
  Contents: read
  Metadata: read
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v[3](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:3)' (SHA:25[4](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:4)1b1294d2704b0964813337f33b291d3f8[5](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:5)9[6](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:7)b)
Download action repository 'actions/setup-python@v3' (SHA:98f2ad02fd48d05[7](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:8)ee3b4d4f66525b231c3e52b6)
Download action repository 'actions/cache@v2' (SHA:937d244753[8](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:9)1cd[9](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:10)c75ae6db[12](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:14)cb4e797[14](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:17)b926ed)
4s
Run actions/checkout@v3
Syncing repository: Charcoal-SE/SmokeDetector
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/be5f8385-7824-4ba7-8c77-a[18](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:22)4[20](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:1:24)cd646d' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/SmokeDetector/SmokeDetector
Deleting the contents of '/home/runner/work/SmokeDetector/SmokeDetector'
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Fetching the repository
Determining the checkout info
Checking out the ref
/usr/bin/git log -[1](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:2:1) --format='%H'
'990827ffe4b3[37](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:2:41)b7dfb9[43](https://github.com/Charcoal-SE/SmokeDetector/runs/6703075979?check_suite_focus=true#step:2:48)ad954785cfb57d6379'
...

When I checked recent builds, 5 out of 22 in the last hour had succeeded, the rest failed with this error.

The failing workflow is a simple run-of-the-mill one https://github.com/Charcoal-SE/SmokeDetector/blob/master/.github/workflows/build.yml

I created an issue within our project for tracking this; https://github.com/Charcoal-SE/SmokeDetector/issues/7046

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:11
  • Comments:8

github_iconTop GitHub Comments

29reactions
chrweisscommented, Oct 6, 2022

The same occured to me just now. Are there any fixes or workarounds for this issue?

0reactions
strobeflashcommented, Jun 3, 2022

Works for me now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github action - ##[error]File not found: 'tar' - Stack Overflow
I had this error because I had manually set the PATH variable in the .env of the actions-runner. Once I removed that, everything...
Read more >
7 Github Actions Tricks I Wish I Knew Before I Started
I think you got the gist of it – it can be complex. So… you create 3 different jobs – one for each...
Read more >
Job artifacts - GitLab Docs
If the latest job has failed to upload the artifacts, you can see that ... create the dotenv artifact with echo , it...
Read more >
Dealing with flaky GitHub Actions - EpiForecasts
Our team's work relies a lot on GitHub Actions. ... for errors after each push, we also have many workflows set up to...
Read more >
Introduction to GitHub Actions - Docker Documentation
Set up your GitHub Actions workflow for building and pushing the image to ... name: ci on: push: branches: - "main" jobs: build:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found