question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CacheBeta@1 cannot find directory that definitely exists

See original GitHub issue

Required Information

Type: Bug Task Name: CacheBeta@1

Environment

Server: Azure Pipelines Agent: Hosted

Issue Description

I had a cache task set up as following:

- task: CacheBeta@1
  displayName: Define build dependencies cache
  inputs:
    key: '"v1" | "build-deps" | $(CI_WORKSPACE_DIRECTORY)/cache/tools-perl-version | $(CI_WORKSPACE_DIRECTORY)/cache/build-deps-cpanfile'
    path: /usr/local/perl5/perlbrew/perls/tools-perl/lib/site_perl

The path definitely exists on disk.

However, I got an error when the job tried to save the cache contents.

Task logs

Attached

Error logs

tar: /usr/local/perl5/perlbrew/perls/tools-perl/lib/site_perl: Cannot open: No such file or directory

logs_50.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
johntericksoncommented, Nov 5, 2019

Good feedback on docs, @autarch! Higher level question - if there were good layer caching, would you use that instead?

@vtbassmatt for:

Also, in general, the docs could do more to explain the host/container relationship and how that affects various types of steps. In particular, I think it would be good advice to tell people to only use mounted volumes when writing to disk, as that makes it a lot simpler to map them between host & container using the various pre-defined variables.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find folder that Python os module shows exists
This issue has been solved. The directory that I'm looking for was created with os.makedirs() . On closer inspection, I can see that...
Read more >
How to fix a directory that is there but doesn't exist? - Super User
I get many of these from extraction of archives. This method works for me. Open Command Prompt and type the following in pressing...
Read more >
Find command if filename doesn't exists in directory
You can't use find to look for files that do not exist. However, you may use find to look for directories, and then...
Read more >
Directories used by the IDE to store settings, caches, plugins ...
<PRODUCT><VERSION> directory doesn't exist? I get an error at startup (created a ticket ... I use Intellij 11.1.5 and I can't find these...
Read more >
Python: Check if a File or Directory Exists - Stack Abuse
Checking if a file or directory exists using Python is definitely one ... can see, it doesn't care if the path points to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found