GeezerVison is showing github.com — Bug: Failed to CreateCacheEntry · Issue #1541 · actions/cache
Bug: Failed to CreateCacheEntry #1541DescriptionGreetings.
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 Activitychanged the title [-]Bug: Can't create cache anymore[/-] [+]Bug: Failed to CreateCacheEntry[/+] on Feb 7, 2025tanya-ok commented on Feb 7, 2025 Did you find any workaround? domman95 commented on Feb 7, 2025 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 icanhazstring commented on Feb 7, 2025 Yes. Workaround is to fix the version to v4.1.2 then it works again. zsliu98 commented on Feb 7, 2025 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. domman95 commented on Feb 7, 2025 I think it works again - we use v3. Reacted by daniilsmirnov-napier and zsliu98 deitch commented on Feb 8, 2025 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? icanhazstring commented on Feb 8, 2025
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. deitch commented on Feb 8, 2025 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? Link- commented on Feb 11, 2025 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:
Every other version is deprecated: #1510 Tiphereth-A commented on Feb 12, 2025 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 Link- commented on Feb 12, 2025
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 alexanderb2911 commented on Feb 14, 2025 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 yonitou commented on Feb 28, 2025 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 cderv commented on Feb 28, 2025
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. Link- commented on Mar 6, 2025 @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 MikeMcC399 commented on Mar 13, 2025 @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? Link- commented on Mar 14, 2025 @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 BeyondEvil commented on Mar 14, 2025 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 Link- commented on Mar 17, 2025 Reacted by Jim Brännlund Reacted by Jim Brännlund andothomas commented on Mar 21, 2025 @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. Link- commented on Mar 24, 2025 @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
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|