Cache is broken

ozkriff's Avatar

ozkriff

10 Oct, 2017 09:08 AM

Hi. I can't use cargo's cache anymore in my project because of the "The given key was not present in the dictionary." error :(

Example: https://ci.appveyor.com/project/ozkriff/zemeroth/build/1.0.200/job/ddk1yhpxo6cdq3t8

  1. Support Staff 1 Posted by Ilya Finkelshte... on 10 Oct, 2017 03:10 PM

    Ilya Finkelshteyn's Avatar

    I see that you are disabled cache to unblock your build. Most probably if you enable it again, it will work OK. However we strongly recommend to use cache dependency. In this case only single file will be scanned for a change instead of the whole cache, which is much less expensive. I am not sure what file can be used as a dependency, as I am not familiar with cargo, but I believe it should be some single file which can be used to identify if cargo cache should be updated or not.

  2. 2 Posted by ozkriff on 11 Oct, 2017 11:46 AM

    ozkriff's Avatar

    > Most probably if you enable it again, it will work OK. However we strongly recommend to use cache dependency.

    I've created a separate branch for this:

    https://github.com/ozkriff/zemeroth/commits/appveyor_cache_test

    But it doesn't seem to help much:

    https://ci.appveyor.com/project/ozkriff/zemeroth/build/1.0.267
    https://ci.appveyor.com/project/ozkriff/zemeroth/build/1.0.268
    https://ci.appveyor.com/project/ozkriff/zemeroth/build/1.0.269

  3. 3 Posted by Anatol Belski on 21 Oct, 2017 10:08 AM

    Anatol Belski's Avatar

    Hi,

    seems we hit this issue, too

    https://ci.appveyor.com/project/php/php-src/build/master.build.4222

    Disabling and reenabling the cache didn't work unfortunately, as the issue comes back then. I also found this older ticket

    http://help.appveyor.com/discussions/problems/1270-broken-unusable-cache-after-commenting-out-a-cache-item

    which tells the cache can be reset for a project. I'd like to ask for a cache reset for https://ci.appveyor.com/project/php/php-src . Perhaps there is some mistake in the config, please check http://git.php.net/?p=php-src.git;a=blob;f=.appveyor.yml;hb=HEAD

    Thanks.

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

Generic

? 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

Recent Discussions

22 Oct, 2017 04:20 AM
21 Oct, 2017 07:26 PM
21 Oct, 2017 10:08 AM
21 Oct, 2017 07:59 AM
21 Oct, 2017 01:48 AM