# Cache pull failed because stack has changed

**URL:** <https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300>\
**Category:** Tooling Issues\
**Created:** [December 11, 2019, 1:15am UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300 "2019-12-11T01:15:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mats-claassen](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mats-claassen](https://discuss.bitrise.io/u/mats-claassen)\
**Post date:** [December 11, 2019, 1:15am UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300/1 "2019-12-11T01:15:01Z")

</div>

Hi, I have a iOS project which runs a Cache: Pull after checking out the code and a Cache: Push at the end of the workflow. I have three different workflows (for PR, deploy, etc. not sure this matters).

Each time a the Cache: Pull is run I get the following output:

```
| (2) cache-pull |
+------------------------------------------------------------------------------+
| id: cache-pull |
| version: 2.1.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2019-12-10T19:27:57Z |
+------------------------------------------------------------------------------+

Config:
- CacheAPIURL: [REDACTED]
- DebugMode: false
- StackID: osx-xcode-11.1.x
Downloading remote cache archive
Checking archive and current stacks
current stack id: osx-xcode-11.1.x
archive stack id: 
Cache was created on stack: , current stack: osx-xcode-11.1.x
Skipping cache pull, because of the stack has changed

```

The stack is the same for each workflow and has not been changed for a while. Could someone tell me what do I have to do so that the cache is correctly pulled?

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [December 12, 2019, 2:44pm UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300/2 "2019-12-12T14:44:16Z")

</div>

Hi there! 👋 It looks like the cache-push step failed to record the stack that the archive was created on. In this case I would just recommend regenerating your cache, after which this shouldn’t be an issue. If you could also send us the build URL for the last build where your cache-pull was successful, it would help us troubleshoot the cache generation error. Thanks! 😄

---

<div class="post-metadata">

**Author:** ![mats-claassen](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mats-claassen](https://discuss.bitrise.io/u/mats-claassen)\
**Post date:** [December 16, 2019, 1:06pm UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300/3 "2019-12-16T13:06:48Z")

</div>

Hi, thanks for the answer. In one of the next builds it starting working again.

---

<div class="post-metadata">

**Author:** ![seita-uc](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/seita-uc/32/2715_2.png) [@seita-uc](https://discuss.bitrise.io/u/seita-uc)\
**Post date:** [December 24, 2019, 10:18am UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300/4 "2019-12-24T10:18:28Z")

</div>

Hi, I am facing the same problem and it does not produce a StackID even when I try to regenerate a cache using cache-push. The build URL is here: [https://app.bitrise.io/build/a2ad6bc596b211aa](https://app.bitrise.io/build/a2ad6bc596b211aa)  
I suspect that it happens when the cache is too big.

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [January 8, 2020, 10:03am UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300/5 "2020-01-08T10:03:59Z")

</div>

Hi @seita-uc! Could you please [enable support user access](https://devcenter.bitrise.io/troubleshooting/enabling-bitrise-support-user/) for your app so I can try to get some info on how to reproduce this? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [February 7, 2020, 10:04am UTC](https://discuss.bitrise.io/t/cache-pull-failed-because-stack-has-changed/11300/6 "2020-02-07T10:04:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
