Skip to content

Cache not found #1735

Open
Open

Description

@samuel-jimenez

Attempting to use cache@v5 will fail with Cache not found for input keys.

Previous runs claim to save cache: Cache saved with key

Activity

  1. miparnisari commented on Mar 30, 2026

    @miparnisari

    I'm seeing the same thing

    This action: https://github.com/authzed/spicedb/actions/runs/22917543524/job/66506914106

    Tue, 10 Mar 2026 18:29:08 GMT
    Cache saved with key: aa9e31d9c682b9a8cde737916c37183d6e5cf783-Linux-go-benchmark

    but this action: https://github.com/authzed/spicedb/actions/runs/22920336770/job/66516799662

    Tue, 10 Mar 2026 19:37:23 GMT
    Cache not found for input keys: aa9e31d9c682b9a8cde737916c37183d6e5cf783-Linux-go-benchmark

  2. marked N #1744 as a duplicate of this issue on Apr 6, 2026
  3. avdv commented on May 5, 2026

    @avdv

    I also see this issue:

    ##[debug]  "matched_key": "repo-cache-Linux-nixpkgs-0"
    ##[debug]}
    Cache hit for: repo-cache-Linux-nixpkgs-0
    ##[debug]Archive path: /home/runner/work/_temp/87720d34-240c-4819-ba40-1747279b27aa/cache.tzst
    ##[debug]Starting download of archive to: /home/runner/work/_temp/87720d34-240c-4819-ba40-1747279b27aa/cache.tzst
    ##[debug]Use Azure SDK: true
    ##[debug]Download concurrency: 8
    ##[debug]Request timeout (ms): 30000
    ##[debug]Cache segment download timeout mins env var: undefined
    ##[debug]Segment download timeout (ms): 600000
    ##[debug]Lookup only: false
    Warning: Failed to restore: 
    ##[debug]Failed to delete archive: Error: ENOENT: no such file or directory, unlink '/home/runner/work/_temp/87720d34-240c-4819-ba40-1747279b27aa/cache.tzst'
    Cache not found for input keys: repo-cache-Linux-nixpkgs-0
    ##[debug]Node Action run completed with exit code 0
    ##[debug]Save intra-action state CACHE_KEY = repo-cache-Linux-nixpkgs-0
    ##[debug]Finishing: Mount Bazel cache
    

    See https://github.com/tweag/gazelle_cabal/actions/runs/25365263615/job/74380949249

    The cache is there (according to the caches list at //actions/caches), but it seems downloading fails?

    The cache was created Feb 2025. Caches should be versioned, so there should be no incompatibility between caches created by v4 and v5, right?

  4. oleksandr-danylchenko commented on Jun 17, 2026

    @oleksandr-danylchenko

    The issue seems to be relevant even now:

    Upload Restore
    - name: Cache build artifacts
      id: cache-build-artifacts
      uses: actions/cache/save@v5
      with:
        path: dist
        key: build-${{ github.sha }}
    - name: Restore cached build artifacts from "build-package" action
      uses: actions/cache/restore@v5
      with:
        fail-on-cache-miss: true
        path: dist
        key: build-${{ github.sha }}
    Run actions/cache/save@v5
      with:
        path: dist
        key: build-2e61d69da30e08379ef82d68293297d24458b93d
        enableCrossOsArchive: false
      env:
        NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
        NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX
    /usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/.../... --files-from manifest.txt --use-compress-program zstdmt
    Sent 2393941 of 2393941 (100.0%), 3.4 MBs/sec
    Cache saved with key: build-2e61d69da30e08379ef82d68293297d24458b93d
    Run actions/cache/restore@v5
      with:
        fail-on-cache-miss: true
        path: dist
        key: build-2e61d69da30e08379ef82d68293297d24458b93d
        enableCrossOsArchive: false
        lookup-only: false
      env:
        TARGET: staging
        SSH_AUTH_SOCK: /tmp/ssh-akSeDjrqQZO5/agent.2172
        SSH_AGENT_PID: 2173
        NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
        NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX
    Error: Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: build-2e61d69da30e08379ef82d68293297d24458b93d

    Although after a re-run of the job, the cache was restored properly 🤷🏻‍♂️

  5. purge commented on Jun 17, 2026

    @purge

    I am also experiencing this regularly as of the last 3 days - cache key not found but a re-run generally fixes it.

  6. oleksandr-danylchenko commented on Jun 17, 2026

    @oleksandr-danylchenko

    I suppose this issue mirrors the one reported here - #1710

  7. Kruptein commented on Jun 22, 2026

    @Kruptein

    We encounter this frequently as well and it's always when the cache is full and it's supposed to start evicting older entries. So I'm guessing it's something related to queuing the save and waiting on eviction of older data

    edit: just had it happen with only a couple of entries in the cache, so it's not exclusive to eviction related issues

  8. charliedavison commented on Jun 30, 2026

    @charliedavison

    We're also fairly regularly seeing this now. @Kruptein I also suspected it was to do with our cache being full as we're currently at the limit, but sounds like that might not be the root cause.

    Unfortunately for me I'm finding that re-running does not solve the issue as it does for other people.

  9. amfern commented on Jun 30, 2026

    @amfern

    I also see the same behavior.

    Running gh-actions-cache list sometimes shows the cache entries, but other times it returns an empty list or is missing some keys. However, rerunning the command a few minutes later shows all the entries again.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions