# Cannot restore dependency cache in CircleCI Enterprise

**URL:** <https://discuss.circleci.com/t/cannot-restore-dependency-cache-in-circleci-enterprise/5715>\
**Category:** Build Environment\
**Tags:** cache\
**Created:** [August 16, 2016, 6:13am UTC](https://discuss.circleci.com/t/cannot-restore-dependency-cache-in-circleci-enterprise/5715 "2016-08-16T06:13:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amogh-git09](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@amogh-git09](https://discuss.circleci.com/u/amogh-git09)\
**Post date:** [August 16, 2016, 6:13am UTC](https://discuss.circleci.com/t/cannot-restore-dependency-cache-in-circleci-enterprise/5715/1 "2016-08-16T06:13:35Z")

</div>

I am unable to restore any dependecny cache in CircleCI enterprise whereas caching works for the exact same code (commit) in [circleci.com](http://circleci.com). Even a simple text file /home/ubuntu/my\_cache/test.txt does not get restored. The whole my\_cache directory does not get restored. What might be the issue? I have tried clearing the cache and running the build without cache. That doesn’t help.  
Of course I have added /home/ubuntu/my\_cache to cached\_directories section in ‘dependencies’ of my circle.yml.

---

<div class="post-metadata">

**Author:** ![martinlindenberg](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/martinlindenberg/32/9151_2.png) [@martinlindenberg](https://discuss.circleci.com/u/martinlindenberg)\
**Post date:** [October 7, 2016, 9:18am UTC](https://discuss.circleci.com/t/cannot-restore-dependency-cache-in-circleci-enterprise/5715/2 "2016-10-07T09:18:19Z")

</div>

Having the same issue:  
circle.yml

```auto
dependencies:
    cache_directories:
        - "downloads"
        - "vendor"

```

1st build shows that the described folders are cached

```auto
Save cache

Creating dependency cache from the following paths:
  ✗ /home/ubuntu/.bundle
  ✗ /home/ubuntu/.cache/bower
  ✓ /home/ubuntu/.go_workspace
  ✗ /home/ubuntu/.gradle
  ✗ /home/ubuntu/.ivy2
  ✓ /home/ubuntu/.m2
  ✓ /home/ubuntu/MyProject/downloads
  ✓ /home/ubuntu/MyProject/vendor
  ✗ /home/ubuntu/MyProject/vendor/bundle
  ✗ /home/ubuntu/virtualenvs
Creating source cache from the following paths:
  ✓ /home/ubuntu/MyProject/.git

```

2nd Build (Retry, with cache) didnt restore these folders:

```auto
Restore cache

restoring cache v6/os:linux-trusty/github/blub/MyProject/dependency/mybranch/896/3mI_Ea_N5_H5M4jX3ap6Ug__.tar.gz
restoring home/ubuntu/.m2, home/ubuntu/.go_workspace

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/cannot-restore-dependency-cache-in-circleci-enterprise/5715/3 "2018-06-18T11:38:37Z")

</div>


