Compressing for cache on macos fails

Ingo's Avatar

Ingo

08 Apr, 2020 10:27 PM

Hello everyone,

I set up a build config for macos which works fine so far except that caching at the end fails with:

Error compressing cache item: No such file or directory. Check /var/folders/5s/.../...log for details.

One of the failing build jobs is: https://ci.appveyor.com/project/SASfit/sasfit/builds/32044089
and its appveyor.yaml: https://github.com/SASfit/SASfit/blob/3ec052a929402498a61eff339f7bc...

The specified directories exist. Absolute or relative path does not change it. I don't know how to debug this because during the on_finish script the specified log file does not exist anymore. Any clues how to investigate this?

The config works basically when using the Windows image earlier:
https://ci.appveyor.com/project/SASfit/sasfit/builds/32024133/job/e...
Same build, the job for macos failed caching: https://ci.appveyor.com/project/SASfit/sasfit/builds/32024133/job/2...

Thanks for any hints!
Best wishes
Ingo

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Apr, 2020 04:00 AM

    Feodor Fitsner's Avatar

    Hi Ingo,

    I'm sorry you spent time fighting with that, but cache is not yet fully supported on macOS images. That error actually means it can't find 7za command line utility.

    You may try installing 7z in init section to see if that helps:

    init:
    - brew install p7zip
    
  2. 2 Posted by Ingo on 09 Apr, 2020 10:34 AM

    Ingo's Avatar

    Hi Feodor,

    that works very well!
    Thank you very much for that quick solution!

    Best wishes
    Ingo

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