New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to reserve cache with key X another job may be creating this cache #22
Comments
@ruudk try bumping the key input in cache-extensions |
Does not make a difference :( |
Can you provide links to the workflow runs |
They are in private repos so I cannot share them. For now, I removed the caching of extensions and it works fine. if more people report this, it might be related to cache race conditions mentioned above. |
The "Unable to reserve cache ..." error is not because of a race condition, but a known issue when something breaks between reserving the cache and the final upload in the post cache step. Because of this failure, the cache gets stuck in a reserved state and new runs are not able to use that cache key again. So resetting the key should have fixed it. I released 1.7.0 of this action today and that should reset every cache. Whenever you have time please try running it again in a public test repo and let me know if you still get that error. |
Thank you for the followup. I just enabled the actions on my private repo again. Let's see how it goes. If you don't hear from me after a week, all should be fixed 😊 |
Running into this myself. Have tried various things like changing the extension list, updating cache keys, creating dynamic cache keys from the build matrix, etc. with no luck. Can't help but think I'm doing something wrong, but not sure what. |
This can happen when a cache is reserved but not saved for some reason. Now that key cannot be used again till 24hrs till that reserved lock is released. I improved how we handle cache errors in 257e3c9. So try again and let me know. Also, you don't need to set dynamic keys, a simple string would work, the action will parameterize it as needed. |
@shivammathur So far that appears to have resolved the issue. I will report back if it comes up again. Thank you! |
We kept getting, ``` Error: Unable to reserve cache with key build-darwin-arm64-ed94a82639847ed06afe84af9fb368d5dae34dfd4556ef0c864fc11b0b9f3b58, another job may be creating this cache. ``` As suggested here: oven-sh/setup-bun#45 (comment) ``` @xHyroM Does this comment help you with further investigation → shivammathur/cache-extensions#22 (comment) ? That one also mentions this one from actions/cache: actions/cache#485 (comment) ```
Describe the bug
Since today our workflows started failing 80% of the time.
Version
Runners
Operating systems
PHP versions
To Reproduce
Expected behavior
No error
Additional context
Feels like a race condition similar to ramsey/composer-install#195
The text was updated successfully, but these errors were encountered: