# What is the cause of intermittent "Failed to store cache entry for task" failures?

**URL:** <https://discuss.gradle.org/t/what-is-the-cause-of-intermittent-failed-to-store-cache-entry-for-task-failures/35586>\
**Category:** Help/Discuss\
**Tags:** gradle-core\
**Created:** [April 6, 2020, 6:10pm UTC](https://discuss.gradle.org/t/what-is-the-cause-of-intermittent-failed-to-store-cache-entry-for-task-failures/35586 "2020-04-06T18:10:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learner](https://avatars.discourse-cdn.com/v4/letter/l/b782af/32.png) [@Learner](https://discuss.gradle.org/u/Learner)\
**Post date:** [April 6, 2020, 6:10pm UTC](https://discuss.gradle.org/t/what-is-the-cause-of-intermittent-failed-to-store-cache-entry-for-task-failures/35586/1 "2020-04-06T18:10:51Z")

</div>

We occasionally get the following:

```
* What went wrong:
Execution failed for task ':...:compile...Java'.
> Failed to store cache entry for task ':...:compile...Java'

```

Notes:

1. Does not happen always. When re-run the problem likely disappears.
2. Presently using **Gradle 6.2.1**
3. Build cache was enabled via `gradle.properties`. Since disabling it I did not see it (but that does not mean I won’t).
4. We usually run with `--parallel`.

What can I do to cause/avoid it? Is this a defect? Does it have a workaround or a fix in 6.2.2 or 6.3?

---

<div class="post-metadata">

**Author:** ![Learner3](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Learner3](https://discuss.gradle.org/u/Learner3)\
**Post date:** [April 16, 2021, 12:52am UTC](https://discuss.gradle.org/t/what-is-the-cause-of-intermittent-failed-to-store-cache-entry-for-task-failures/35586/2 "2021-04-16T00:52:50Z")

</div>

Was this resolved? I am having the same issue in Gradle 6.4.1. I get this on the CI server where multiple Gradle builds are running at the same time.
