Build cache not always retrieved

madmax's Avatar


09 Aug, 2017 09:29 AM

One of our projects seems to be having issues getting the build cache. Just made a commit on GitHub and the build failed because it did not restore the build cache? Manually restarted a new build and it restored it just fine?
Failed Build:

Build after this restored the cache just fine. Is there an issue somewhere?

  1. 1 Posted by richard.dubay on 09 Aug, 2017 01:45 PM

    richard.dubay's Avatar

    Hey, @madmax! I've been having pretty much the same problem yesterday and today, only that no matter how many times I build/rebuild, cache is never restored. For reference, all our builds were fine last week. I'll keep watching this to see if you figure it out, but wanted to give you my +1 for this issue!

  2. 2 Posted by richard.dubay on 09 Aug, 2017 03:52 PM

    richard.dubay's Avatar

    And just like that, the build caches started working again. ¯_(ツ)_/¯

  3. Support Staff 3 Posted by Ilya Finkelshte... on 09 Aug, 2017 08:07 PM

    Ilya Finkelshteyn's Avatar

    We are expanding to new datacenter, which has its own cache storage. If your build happens to be executed in that datacenter, first time it is nothing to restore, but after successful build cache is saved in hew datacenter for you as well. If you do not want to depend on the build success to save cache, you can set APPVEYOR_SAVE_CACHE_ON_ERROR environment variable to true.

  4. madmax closed this discussion on 10 Aug, 2017 09:34 PM.

  5. madmax re-opened this discussion on 13 Aug, 2017 01:08 PM

  6. 4 Posted by madmax on 13 Aug, 2017 01:08 PM

    madmax's Avatar

    This issue is really bad for this project

    I've restarted about 30times just now and not getting a cache and RDP is not always working. (fails to connect).

  7. 5 Posted by madmax on 13 Aug, 2017 01:18 PM

    madmax's Avatar

    This is completely broken for us, i have sat here for 25minutes attempting to rebuild pull request on this project
    will need a member of staff to take a look for us.
    I cannot even get into remote desktop, anything on the 67.x.x.x IP range just times out.

  8. 6 Posted by madmax on 13 Aug, 2017 01:35 PM

    madmax's Avatar

    It looks like after around 40 attempts the build cache was able to restore. Remote desktop is still very flakey.
    The time i did get in the o/s asked me if i wanted to discover computers on the local network?!

    I wonder if the servers in the new datacenter are opening the right ports for remote desktop?

  9. Support Staff 7 Posted by Ilya Finkelshte... on 15 Aug, 2017 01:40 AM

    Ilya Finkelshteyn's Avatar

    This is definitely not right, we fixed cache issue. We identified issue with RDP, should be fiuxed soon. For than nasty "Networks" dialog we have this issue. However it should not affect you, if you are not using UI testing scenarios. Sorry for the trouble.

  10. 8 Posted by madmax on 15 Aug, 2017 11:58 AM

    madmax's Avatar


    This morning it took me 6 attempts to get the build cache to restore! Did you say this is already fixed or a fix is coming?

    You can see each of the builds, i manually use the rebuild pull request option and cancel when i see no cache restored, repeat until it does.
    This one worked?!

  11. Support Staff 9 Posted by Ilya Finkelshte... on 16 Aug, 2017 01:56 AM

    Ilya Finkelshteyn's Avatar

    @madmax problem is that cache saving is disabled on Pull Request (to prevent outsiders from spoiling the cache). If non-pr build happens to run in new environment, then cache is saved. I filed this GitHub issue and will try to fix it soon.

  12. 10 Posted by madmax on 16 Aug, 2017 07:07 AM

    madmax's Avatar

    So it sounds like the cache should restore on pull requests and instead add an option to ignore updating/saving the cache on pull requests? That way a PR could do what it likes to the cache files but they would be safe.

  13. Support Staff 11 Posted by Ilya Finkelshte... on 17 Aug, 2017 12:25 AM

    Ilya Finkelshteyn's Avatar

    Cache is being restored in pull request. But as long as build happens in new datacenter it is nothing to restore. After we add saving cache on pull requests (soon), after single PR build save cache in new datacenter, subsequent ones have what to restore.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac