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

Writing to the cache volume fails with permission denied when using Kind #201

Closed
djoyahoy opened this issue Oct 28, 2019 · 3 comments
Closed

Comments

@djoyahoy
Copy link
Contributor

Builds fail with the following error message:

[restore] ERROR: failed to create volume cache: initializing staging directory '/cache/staging': mkdir /cache/staging: permission denied

The root cause is documented here: kubernetes-sigs/kind#830

A possible work around is to create a StorageClass that uses a local volume, create a PersistentVolume that uses the local StorageClass, and point the claim at that volume.

@BenTheElder
Copy link

sorry about that.

another subpar option is to use containers with UID=0, or at least long enough to change the permissions on the volume.

i'd probably recommend trying one of the options mentioned in discussion on kubernetes-sigs/kind#118

@matthewmcnew
Copy link
Collaborator

Closing this with kubernetes-sigs/kind#118 closing. Works great!

@BenTheElder
Copy link

BenTheElder commented Jan 17, 2020 via email

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

No branches or pull requests

3 participants