GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bug: Failed to CreateCacheEntry · Issue #1541 · actions/cache

Bug: Failed to CreateCacheEntry #1541

New issue
Copy link
New issue
Copy link
Closed
Closed
Bug: Failed to CreateCacheEntry#1541
Copy link
Assignees
Link-
Labels
Cache Management

Description

@icanhazstring
icanhazstring
opened on Feb 7, 2025
Issue body actions

Greetings.

Since today Feb 7th around 1AM CET we got a problem with the actions/cache.
We can't use actions/cache/save anymore and get the following error

Warning: Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (404) Not Found: invalid request

This is a simple cache step as described in the docs:

      - name: Cache vendor
        uses: actions/cache/save@v4
        with:
          key: ${{ env.VENDOR_CACHE_KEY }}
          path: |
            vendor/
            vendor-bin/

Current workaround:
Fix the version to v4.1.2. This should solve the issue for now.

Reacted by Tobey372, daniilsmirnov-napier, Harrison Hogg, Nikita Khlebushkin, David Steinacher, Johnny Davidsen Poulsen, Gergely Kosztolányi, Karoly Kamaras, Q-Hưng, Tanya and 19 more

Activity

Next
  1. icanhazstring
    changed the title [-]Bug: Can't create cache anymore[/-] [+]Bug: Failed to CreateCacheEntry[/+] on Feb 7, 2025
  2. tanya-ok commented on Feb 7, 2025

    @tanya-ok
    tanya-ok
    on Feb 7, 2025
    More actions

    Did you find any workaround?

  3. domman95 commented on Feb 7, 2025

    @domman95
    domman95
    on Feb 7, 2025
    More actions

    We've noticed the same issue. actions/cache/restore@v3 returns a warning

    Warning: Failed to restore: Failed to GetCacheEntryDownloadURL: Received non-retryable error: Failed request: (404) Not Found: invalid request
    

    our cache step looks pretty the same as above

  4. icanhazstring commented on Feb 7, 2025

    @icanhazstring
    icanhazstring
    on Feb 7, 2025
    Author
    More actions

    Yes. Workaround is to fix the version to v4.1.2 then it works again.

    Reacted by Tanya
  5. zsliu98 commented on Feb 7, 2025

    @zsliu98
    zsliu98
    on Feb 7, 2025
    More actions

    I have the same issue. From #1510, I would guess the problem is related to the new cache service (v2) APIs. Cause v4.1.2 will become deprecated in one month, it is only a temporary solution. Could somebody fix it as soon as possible? (TBH I don't know where to report the issue other than here)


    Update: Yes, it works again. I am using v4.

  6. domman95 commented on Feb 7, 2025

    @domman95
    domman95
    on Feb 7, 2025
    More actions

    I think it works again - we use v3.

    Reacted by daniilsmirnov-napier and zsliu98
  7. deitch commented on Feb 8, 2025

    @deitch
    deitch
    on Feb 8, 2025
    More actions

    I am curious as to why the action didn't fail when the cache upload failed? I get that the upload might have failed, either due to a latent bug in the action or changes in the API (or some combination). Should the action itself not have failed when the upload didn't succeed?

  8. icanhazstring commented on Feb 8, 2025

    @icanhazstring
    icanhazstring
    on Feb 8, 2025
    Author
    More actions

    I am curious as to why the action didn't fail when the cache upload failed? I get that the upload might have failed, either due to a latent bug in the action or changes in the API (or some combination). Should the action itself not have failed when the upload didn't succeed?

    The upload only gives a warning.
    Retrieving gives an error if you use the fail on miss setting only.

    And I also created a support ticket where they mentioned they rolled back the change.
    As they updated there backend there seems to be an issue that devs reverted already. So it should work with the latest version again.

  9. deitch commented on Feb 8, 2025

    @deitch
    deitch
    on Feb 8, 2025
    More actions

    Yeah following this issue, I restarted the various jobs I manage and see them working again.

    Would it not make sense to have the action fail (error) on upload error, instead of warning?

  10. Tiphereth-A
    added 2 commits that reference this issue on Feb 11, 2025

    chore: fix actions/cache version

    c8bab49

    chore: fix actions/cache version

    8fe1d18
  11. Link- commented on Feb 11, 2025

    @Link-
    Link-
    on Feb 11, 2025
    Member
    More actions

    On February 7th we began the rollout of the new cache service backend. There was a bug in the implementation that caused a wider range of repositories to start calling the new backend even though they weren't intended to do so just yet. The service responded with 404s.

    That problem was resolved on the same day. Please do not revert back to previous versions.

    There are only 4 compatible versions with the new service backend. Please only use one of the below versions:

    Supported versions and tags
    actions/cache@v4
    actions/cache@v3
    actions/[email protected]
    actions/[email protected]

    Every other version is deprecated: #1510

  12. Tiphereth-A commented on Feb 12, 2025

    @Tiphereth-A
    Tiphereth-A
    on Feb 12, 2025
    More actions

    In my repository, it reports

    Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
    

    so maybe there is another issue of new service backend.

    Reacted by Manuel Munz, Henry Strobel, yonitou, Mike McCready, Gionatha Sturba, James Garriss and Szymon Dzialowski
  13. Link- commented on Feb 12, 2025

    @Link-
    Link-
    on Feb 12, 2025
    Member
    More actions

    In my repository, it reports

    Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
    

    so maybe there is another issue of new service backend.

    @Tiphereth-A - This is not an error, cache entries are immutable. If you're trying to create a cache entry with the same key, you will get this warning. In a future release we will be removing this annotation to reduce confusion.

    Reacted by Manuel Munz and Henry Strobel
  14. alexanderb2911 commented on Feb 14, 2025

    @alexanderb2911
    alexanderb2911
    on Feb 14, 2025
    More actions

    I'm currently also facing this issue. The save action is not able to save a new cache although none are existing at that moment. It always tells me that the cache is already existing although it's not.

    Reacted by Tifa, yonitou and David Ittah
  15. 25 remaining items

  16. yonitou commented on Feb 28, 2025

    @yonitou
    yonitou
    on Feb 28, 2025
    More actions

    Thanks @MikeMcC399 for your help
    @cderv, I check my cache multiple times. The cache key is not there. The slot is just locked as you mentioned. This is exactly what I'm talking about

    Reacted by Christophe Dervieux
  17. cderv commented on Feb 28, 2025

    @cderv
    cderv
    on Feb 28, 2025
    More actions

    The slot is just locked as you mentioned. This is exactly what I'm talking about

    Ok. Sorry then for the unnecessary repeat. I wasn't sure. Then we are waiting for the official update.

  18. Link- commented on Mar 6, 2025

    @Link-
    Link-
    on Mar 6, 2025
    Member
    More actions

    @yonitou et al, the backend change is coming this week. We had to iterate on a couple of ideas and put the change in motion. In short, cache keys that are locked due to a failed upload will be cleared every 24 hours from the time they're created (after the backend fix finishes rolling out).

    In the meantime, I recommend that you maintain some level of flexibility with your cache keys. As a best practice, cache availability should not be blocking to your workflows even if we aim to provide the same level of stability and availability as workflow artifacts and packages.

    Reacted by Mike McCready, Yann Pringault, Lucas Fernando Cardoso Nunes, Benji and Jim Brännlund
    Reacted by Yann Pringault
  19. Link-
    self-assigned this
    on Mar 6, 2025
  20. Link-
    added
    Cache Management
    on Mar 6, 2025
  21. MikeMcC399 commented on Mar 13, 2025

    @MikeMcC399
    MikeMcC399
    on Mar 13, 2025
    More actions

    @Link-

    the backend change is coming this week.

    Please give a status update. Is this issue now fixed or are there still open TO-DOs?

  22. Link- commented on Mar 14, 2025

    @Link-
    Link-
    on Mar 14, 2025
    Member
    More actions

    @MikeMcC399 et al, the fix is now in production. All previously locked cache keys have been cleared. New cache entries that are created but not finalized will only be reserved for up to 24 hours.

    I'm going to keep this issue open for a few days in case we have some other edge cases to handle.

    Reacted by Mike McCready, Kudo Chien, Yann Pringault, Christophe Dervieux, Anthony Pillot and Lucas Fernando Cardoso Nunes
  23. BeyondEvil commented on Mar 14, 2025

    @BeyondEvil
    BeyondEvil
    on Mar 14, 2025
    More actions

    Sorry for perhaps beating a dead horse, but I'm still seeing this.

    On the restore action:

    Run actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57
      with:
        path: node_modules
        key: Linux-npm-ba5c47a8f2df96f9edc1a4aff74c22d266a7d9330ba72ca5ea55d0931e314f5f
        restore-keys: Linux-npm-
      
        enableCrossOsArchive: false
        fail-on-cache-miss: false
        lookup-only: false
    
    
    Cache not found for input keys: Linux-npm-ba5c47a8f2df96f9edc1a4aff74c22d266a7d9330ba72ca5ea55d0931e314f5f, Linux-npm-
    

    That's fine, but then when the save action runs:

    Run actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57
      with:
        path: node_modules
        key: Linux-npm-ba5c47a8f2df96f9edc1a4aff74c22d266a7d9330ba72ca5ea55d0931e314f5f
    
    
    Warning: Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
    Warning: Cache save failed.
    

    Am I doing something wrong?

    The hash (for the version of the action) corresponds to v4.2.0 (https://github.com/actions/cache/releases/tag/v4.2.0)

    Reacted by Szymon Dzialowski
  24. yermulnik
    added a commit that references this issue on Mar 14, 2025

    [`actions/setup-go`] Cache issue (ref actions/cache#1541 + actions/se…

    ada6528
  25. Link- commented on Mar 17, 2025

    @Link-
    Link-
    on Mar 17, 2025
    Member
    More actions

    @BeyondEvil - We need to separate 2 issues here:

    For that error you're seeing please read: #1541 (comment)

    As a fix, start using actions/cache v4.2.2: https://github.com/actions/cache/releases/tag/v4.2.2

    Reacted by Jim Brännlund
    Reacted by Jim Brännlund
  26. andothomas commented on Mar 21, 2025

    @andothomas
    andothomas
    on Mar 21, 2025
    More actions

    @Link- I'm seeing a similar issue to @BeyondEvil. I went through the cache and manually deleted any related entries and I'm still seeing the same sequence of errors. For this reason, I do not believe what I am experiencing is related to the comment you linked, as the cache entry does not exist when the restore action is run, nor does it exist in the UI.

    I am using the v4 tag, soactions/cache/restore@v4 and actions/cache/save@v4.

  27. Link- commented on Mar 24, 2025

    @Link-
    Link-
    on Mar 24, 2025
    Member
    More actions

    @andothomas and others who are still experiencing similar issues: please open a support ticket with the GitHub team and feel free to link this comment. This way we can investigate your specific situation. Please share links to the repo and workflow runs affected, and a copy of the workflow file you're using, this will help us investigate faster what might be happening.

    For now, I'm closing this issue.

    Reacted by Lucas Fernando Cardoso Nunes and andothomas
  28. Link-
    closed this as completedon Mar 24, 2025
  29. dabrahams
    added 2 commits that reference this issue on Jun 3, 2025

    Workaround for actions/cache#1541

    9de56f9

    Workaround for actions/cache#1541

    8e34523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Link-
    Link-

Labels

Cache Management

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.