-
Notifications
You must be signed in to change notification settings - Fork 366
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
Critical libmamba filesystem error due to permissions on caches (Operation not permitted) #3661
Comments
mamba = 2.0.4
causes critical break
Can you report the file permissions of |
Ah, yes.. apologies:
|
I just ran into this same problem - was doing a clean install with the exact same script/worfklow I've used dozens of time, including earlier this week. Something went belly up very recently... And same here as @darynwhite is reporting, I'm on a mac with conda installed in my home directory, with all paths owned by my user, and not having changed anything otherwise. |
@fperez I'm glad to hear this, because I tried deleting and rebuilding my mamba/conda build about a half dozen times trying to figure out if it was something I switched by accident. I do have mamba running stably at 1.5.9 for now. |
Yup @darynwhite - I also ended up pinning mamba to 1.5.9 so I could actually do anything. Right now doing a single mamba update after a miniforge install breaks everything irreparably. |
Potential duplicate of #3606 |
Thanks all. We are actively looking into it. For now, we are not reproducing the issue (I also work on OS X and have been primarily using micromamba 2.0 since the release candidates). I tried various scenarios with miniforge, install some packages, updating mamba to 2.0, installing some (old) packages again and requesting an update of all, and things appear to work for now without any issue. |
Note that this says "Operation not permitted" rather than "Permission denied". I wonder if there are multiple filesystems involved in your setup @darynwhite ? Hard links cannot be created across file systems, and it's possible that conda has a fall back for a full copy. |
@SylvainCorlay thanks for looking into this. It is only when I upgrade to I don't know of any hard links as this is my local build within in my user directory. I don't think I even have symbolic links anywhere. I run it out of a dedicated directory that I can rebuild at will. See an example here: MambaTooling @cpelley I did read over #3606 but as this isn't a shared setup or system, I didn't think there was direct overlap. |
Thanks. I was refering to hard links because conda and mamba use them internally. (Basically, if a package is installed in two environments, it only uses the disk space once). Hard links don't work across file systems, so if the environment is not on the same drive as the package cache it would not work, hence my question. From an earlier conversation with Fernando who reported the same issue, it's not the problem. I am still looking into it. I also am an OS X user and am using micromamba or mamba 2.0 since the RCs - so I don't have a reproducer yet. |
@SylvainCorlay looks like I might be your reproducer.. Just ran a machine:~ user$ which mamba
/userpath/miniforge3/condabin/mamba
machine~ user$ mamba create -n aa --dry-run -c conda-forge intake-esgf
warning libmamba You have not set the root prefix environment variable.
To permanently modify the root prefix location, either:
- set the 'MAMBA_ROOT_PREFIX' environment variable
- use the '-r,--root-prefix' CLI option
- use 'mamba shell init ...' to initialize your shell
(then restart or source the contents of the shell init script)
Continuing with default value: "/userpath/miniforge3"
critical libmamba filesystem error: in permissions: Operation not permitted ["/userpath/miniforge3/pkgs/cache"]
machine:~ user$ mamba create --dry-run -n aa -c conda-forge intake-esgf
warning libmamba You have not set the root prefix environment variable.
To permanently modify the root prefix location, either:
- set the 'MAMBA_ROOT_PREFIX' environment variable
- use the '-r,--root-prefix' CLI option
- use 'mamba shell init ...' to initialize your shell
(then restart or source the contents of the shell init script)
Continuing with default value: "/userpath/miniforge3"
critical libmamba filesystem error: in permissions: Operation not permitted ["/userpath/miniforge3/pkgs/cache"] |
I cannot reproduce the issue using mamba 2.0.4 with a new miniforge installation on macOS 14. In particular, I cannot reproduce the issue given #3661 (comment). |
Edit: this is not due to System Integrity Protection, it is enabled on my machine but I cannot reproduce the issue. Do you still have the problem if you grant mamba or micromamba 2.0.4 Full Disk Access (which can be done via the System Preferences on macOS)? |
@jjerphan I believe yes is the answer. machine:~ user$ csrutil status
System Integrity Protection status: enabled. Regarding the update path, the issue was caused in issuing the below, which begins with installing machine:~ user$ mamba update mamba
Looking for: ['mamba']
conda-forge/osx-arm64 13.4MB @ 566.8kB/s 23.6s
conda-forge/noarch 17.7MB @ 562.2kB/s 31.5s
Pinned packages:
- python 3.12.*
Transaction
Prefix: /userpath/miniforge3
Updating specs:
- mamba
- ca-certificates
- certifi
- openssl
Package Version Build Channel Size
──────────────────────────────────────────────────────────────────────────────────
Install:
──────────────────────────────────────────────────────────────────────────────────
+ cpp-expected 1.1.0 hffc8910_0 conda-forge 24kB
+ simdjson 3.10.1 h7b3277c_0 conda-forge 201kB
+ spdlog 1.14.1 h6d8af72_1 conda-forge 164kB
+ nlohmann_json 3.11.3 h00cdb27_1 conda-forge 123kB
Upgrade:
──────────────────────────────────────────────────────────────────────────────────
- openssl 3.3.2 h8359307_0 conda-forge Cached
+ openssl 3.4.0 h39f12f2_0 conda-forge 3MB
- reproc 14.2.4.post0 h93a5062_1 conda-forge Cached
+ reproc 14.2.5.post0 h5505292_0 conda-forge 32kB
- reproc-cpp 14.2.4.post0 h965bd2d_1 conda-forge Cached
+ reproc-cpp 14.2.5.post0 h286801f_0 conda-forge 25kB
- libmamba 1.5.10 h66a2e1b_1 conda-forge Cached
+ libmamba 2.0.4 h4621f14_0 conda-forge 1MB
- libmambapy 1.5.10 py312he1e5f57_1 conda-forge Cached
+ libmambapy 2.0.4 py312hd07f1d4_0 conda-forge 535kB
- mamba 1.5.10 py312h14bc7db_1 conda-forge Cached
+ mamba 2.0.4 h4ae28c3_0 conda-forge 373kB
- conda-libmamba-solver 24.7.0 pyhd8ed1ab_0 conda-forge Cached
+ conda-libmamba-solver 24.11.1 pyhd8ed1ab_0 conda-forge 41kB
Summary:
Install: 4 packages
Upgrade: 7 packages
Total download: 6MB |
Mamba update mamba works for me and Julien locally, on various OS X systems. We are launching a reproduction challenge with everyone who has an OS X system on the team. |
Apologies @jjerphan I am a little lost about this - I install using the |
Just checked with
|
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Mambaforge or latest Miniforge
Search tried in issue tracker
critical libmamba filesystem error: in permissions:
Latest version of Mamba
Tried in Conda?
I do not have this problem with Conda, just with Mamba
Describe your issue
After updating mamba to 2.0.4 to solve the
mamba:8: command not found: __conda_reactivate
issue, mamba completely fails to do anything with packages.mamba info / micromamba info
Logs
environment.yml
No response
~/.condarc
The text was updated successfully, but these errors were encountered: