# "Timeout waiting to lock artifact cache"

**URL:** <https://discuss.gradle.org/t/timeout-waiting-to-lock-artifact-cache/12926>\
**Category:** Help/Discuss\
**Created:** [November 25, 2015, 12:37am UTC](https://discuss.gradle.org/t/timeout-waiting-to-lock-artifact-cache/12926 "2015-11-25T00:37:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachary\_Sperske](https://avatars.discourse-cdn.com/v4/letter/z/c57346/32.png) [@Zachary\_Sperske](https://discuss.gradle.org/u/Zachary_Sperske)\
**Post date:** [November 25, 2015, 12:37am UTC](https://discuss.gradle.org/t/timeout-waiting-to-lock-artifact-cache/12926/1 "2015-11-25T00:37:23Z")

</div>

We’ve been running into:

> Could not resolve all dependencies for configuration ‘:runtime’.  
> \> Timeout waiting to lock artifact cache (/Users/apath/.gradle/caches/modules-2). It is currently in use by another Gradle instance.  
> Owner PID: 6399  
> Our PID: 10863  
> Owner Operation: resolve configuration ‘:classpath’  
> Our operation: resolve configuration ‘:runtime’  
> Lock file: /Users/apath/.gradle/caches/modules-2/modules-2.lock

I came across this closed thread:

> [@Timeout waiting to lock artifact cache](https://discuss.gradle.org/t/timeout-waiting-to-lock-artifact-cache/2545):
>
> 1.7.-rc-2 A problem occurred evaluating root project ‘MyProject’. Could not resolve all dependencies for configuration ‘:nativesdk’. Timeout waiting to lock artifact cache (C:\Users\me.gradle\caches\artifacts-26). It is currently in use by another Gradle instance. I get the above sometimes when doing many builds on the same machine. Is there a way to increase the timeout or something?

However the strange thing is, we’re seeing it on a build that runs sequentially. I know the information here is thin, please let me know what other info I can provide,

---

<div class="post-metadata">

**Author:** ![Rene](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/rene/32/8082_2.png) [@Rene](https://discuss.gradle.org/u/Rene)\
**Post date:** [November 25, 2015, 7:47am UTC](https://discuss.gradle.org/t/timeout-waiting-to-lock-artifact-cache/12926/2 "2015-11-25T07:47:17Z")

</div>

hard to tell what’s going wrong here. Do you use the gradle daemon in your local environment where you see this issue?
