Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dazel clean fails to remove action_cache #43

Open
nathanworms opened this issue Aug 13, 2018 · 2 comments
Open

dazel clean fails to remove action_cache #43

nathanworms opened this issue Aug 13, 2018 · 2 comments

Comments

@nathanworms
Copy link
Contributor

ERROR: /home/nathan/.cache/bazel/_bazel_nathan/9a314670874df4bb3656ae2f987d35fc/action_cache (Device or resource busy)

I believe this fails because action_cache is a volume mount by default in dazel. Is this a known issue with a proper workaround?

@mishas
Copy link
Collaborator

mishas commented Aug 13, 2018

It's a known issue, without a good work-around.
Currently, if I want to clear the cache, I run sudo ~/.cache/bazel/, but this is a terrible idea.

More to the point, originally, we've designed the cache to work in tandem with bazel, so that if I do dazel build and then right away bazel build, it'll be the same exact cache. Back when that feature worked, the workaround would be to run bazel clean. This feature broke long ago (I think somewhere around bazel 0.3.0 or even earlier).

The ticket then should be one of the following:
Either fix the cache to work with bazel (although, i'm not hopeful it'll hold for very long again, due to changes in bazel),
or redesign the cache to work completely separate from bazel, and thus make it way simpler.

@jonnyyu
Copy link

jonnyyu commented Apr 8, 2020

I met this issue too, is there any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants