mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.97k stars 359 forks source link

Cannot set permissions : Operation not permitted #3606

Open aulemahal opened 1 week ago

aulemahal commented 1 week ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Mambaforge or latest Miniforge

Search tried in issue tracker

"cannot set permissions"

Latest version of Mamba

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 : https://github.com/conda/conda/issues/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