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 set permissions : Operation not permitted #3606

Open
3 tasks done
aulemahal opened this issue Nov 15, 2024 · 0 comments
Open
3 tasks done

Cannot set permissions : Operation not permitted #3606

aulemahal opened this issue Nov 15, 2024 · 0 comments

Comments

@aulemahal
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

"cannot set permissions"

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I didn't try

Describe your issue

We have a shared installation of mambaforge on our shared linux machine. We've always has this issue described here : conda/conda#7227, but I was always able to work around it by changing the permissions of the pkgs/cache dir periodically.

However, since updating to the latest mamba (2.0.3), this doesn't work anymore. Even if the folder and it's files have 777 permissions, libmamba seems to want to set the permissions, and it fails, of course.

The user command and error:

[user@machine ~]$ mamba env create -f environment.yml
critical libmamba filesystem error: cannot set permissions: Operation not permitted [/mambaforge-dir/pkgs/cache]

and the folder's permissions seen by the admin:

[admin@machine cache]$ ls -alh /mambaforge-dir/pkgs/cache
total 584M
drwxrwsrwx.    2 admin thegroup 4.0K Nov 15 09:32 .
drwxrwsrwx. 5722 admin thegroup 304K Nov 14 17:05 ..
-rwxrwxrwx.    1 admin thegroup 288M Nov 14 16:58 88ec62ec.json
-rwxrwxrwx.    1 admin thegroup 134M Nov 14 16:59 88ec62ec.solv
-rwxrwxrwx.    1 admin thegroup  378 Nov 14 16:58 88ec62ec.state.json
-rwxrwxrwx.    1 admin thegroup 106M Nov 14 16:58 eb045dd1.json
-rwxrwxrwx.    1 admin thegroup  57M Nov 14 16:59 eb045dd1.solv
-rwxrwxrwx.    1 admin thegroup  376 Nov 14 16:58 eb045dd1.state.json

To fix the issue, I went back to mamba < 2. I didn't try other versions.

mamba info / micromamba info

sorry I downgraded mamba before opening this issue and forgot to do that.

Logs

oups, same thing.

environment.yml

No response

~/.condarc

# user:
envs_dirs:
  - /USER/DIR/.conda
pip_interop_enabled: true

# global
channels:
- conda-forge
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