I’ve been using CachePush/Pull to cache the dependencies for my iOS build that uses Carthage. This has been working for quite a while without any issues, but today, with no changes on my side the cache pull step has stopped working, even though the previous build’s cache push worked fine.
The error it reports is:
2017/10/27 03:01:31 Cache pull…
2017/10/27 03:01:32 Failed to get download url, error: Build cache not found. Probably cache not initialised yet (first cache push initialises the cache), nothing to worry about
WARN[03:01:32] Step (cache-pull) failed, but was marked as skippable
Without more info / context & log hard to say - if it’d happen again please let us know! Usually an issue like this is because something like e.g. your team mate deletes the related cache before the build could pull it. Or it might be that the cache item expired (Redirecting… - Bitrise Docs - Cache Expiring).
In any case, if you’d have any issues with the cache just let us know, with as many info as you can share and we’ll dig into it ASAP!
Downloading remote cache archive
Failed to get cache download url: build cache not found: probably cache not initialised yet (first cache push initialises the cache), nothing to worry about
WARN[09:59:55] Step (cache-pull@2.1.3) failed, but was marked as skippable
I can see that you have since managed to build your cache up, but there could be a number of reasons why the cache was:
1: someone in your org deleted the cache at one time
2: cache is related to a specific branch, which expires/is auto-deleted after 7 days if there’s no new build on that branch in the meantime . This means that if you do builds on a specific branch every day** (more frequently than a week), **it’ll never expire/won’t get deleted automatically. If you don’t start a build on that specific branch for more than 7 days, then the related cache will be removed, and your next build will run like the first time, when there was no cache for that branch yet.
StackID:
Downloading remote cache archive
Failed to get cache download url: build cache not found: probably cache not initialised yet (first cache push initialises the cache), nothing to worry about
WARN[15:10:10] Step (cache-pull@2.1.1) failed, but was marked as skippable
In order to verify this being an issue, we would also need to see the previous build that pushed the cache for the same branch. Can you please create a separate issue thread about this?