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

Cannot mknod: Operation not permitted #1429

Open
barrettj12 opened this issue Jul 8, 2024 · 0 comments
Open

Cannot mknod: Operation not permitted #1429

barrettj12 opened this issue Jul 8, 2024 · 0 comments

Comments

@barrettj12
Copy link

I ran into this issue trying to cache LXD containers. I had to change some file permissions because actions/cache was failing due to permission denied. Now, saving the cache works, but when I try to restore it, I get:

/usr/bin/tar -xf /opt/actions-runner/_work/_temp/f9c60f6d-08e1-489e-9f92-01f605b0ad76/cache.tzst -P -C /opt/actions-runner/_work/juju/juju --use-compress-program unzstd
/usr/bin/tar: ../../../../../var/snap/lxd/common/lxd/storage-pools/default/containers/snapcraft-juju/rootfs/dev/ptmx: Cannot mknod: Operation not permitted
...
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2

Full job logs here.

Here's the relevant part of my workflow.yml:

    - run: sudo chmod -R 0777 /var/snap/lxd/common/lxd

    - name: Cache build environment
      uses: actions/cache@v4
      with:
        path: '/var/snap/lxd/common/lxd/storage-pools/default/containers/snapcraft-juju'
        key: snapcraft-build-env-${{ runner.os }}

    - run: sudo chmod -R 0777 /var/snap/lxd/common/lxd
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

1 participant