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.

Saving cache can fail, breaking build (response 429/503)

See original GitHub issue
Post job cleanup.
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /Users/runner/work/Mudlet/Mudlet --files-from manifest.txt
Warning: Cache service responded with 429 during upload chunk.
/Users/runner/work/_actions/actions/cache/v2/dist/save/index.js:3305
                        throw new Error(`Cache upload failed because file read failed with ${error.message}`);
                        ^

Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read
    at ReadStream.<anonymous> (/Users/runner/work/_actions/actions/cache/v2/dist/save/index.js:3305:31)
    at ReadStream.emit (events.js:210:5)
    at internal/fs/streams.js:167:12
    at FSReqCallback.wrapper [as oncomplete] (fs.js:470:5)

See https://github.com/Mudlet/Mudlet/runs/1435372417?check_suite_focus=true

Cache itself is rather simple,

    - name: (Linux/macOS) restore ccache
      uses: actions/cache@v2
      with:
        path: ${{runner.workspace}}/ccache
        key: ccache-${{matrix.os}}-${{matrix.compiler}}-${{matrix.qt}}-${{github.sha}}
        restore-keys: ccache-${{matrix.os}}-${{matrix.compiler}}-${{matrix.qt}}-
      if: runner.os != 'Windows'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dhadkacommented, Feb 19, 2021

@akien-mga Thanks! Just making a note that this is related to https://github.com/actions/cache/issues/441. I’ll see if we can get 👀 on this issue.

(As a FYI, the godot repo is getting throttled due to the amount of content being uploaded. There’s a limit of 10 GBs uploaded every 5 minutes. However, even if getting throttled, that shouldn’t cause action / workflow to fail.)

0reactions
dhadkacommented, May 27, 2021

Merged #596 to fix this issue by catching and logging warnings. The save step should no longer fail. Fix in v2.1.6.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning. Error encountered while saving cache [...] can't dump ...
I noticed this issue today while working on a Rails app and looking at the console output after refreshing a page on the...
Read more >
Warning. Error encountered while saving cache ... can't dump ...
It is a known bug with the current release of Sass, updating the sass stylesheet will cause the caching error because of the...
Read more >
elastic - Go Packages - The Go Programming Language
If no Elasticsearch server is available, services will fail when creating a new request and will return ErrNoClient. A Client provides services.
Read more >
Saving cache stopped working ("Warning: skipping this step
Saving cache was working, but today I believe without changing anything we keep getting: Warning: skipping this step: disabled in ...
Read more >
Civis Client Documentation
The API client will automatically retry for certain API error responses. If the error is one of [413, 429, 503] and the API...
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