Skip to content

mamba crashes if env_dir is not readable #3848

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

Open
3 tasks done
holzman opened this issue Feb 28, 2025 · 0 comments · May be fixed by #3887
Open
3 tasks done

mamba crashes if env_dir is not readable #3848

holzman opened this issue Feb 28, 2025 · 0 comments · May be fixed by #3887
Labels
type::bug Something isn't working

Comments

@holzman
Copy link
Contributor

holzman commented Feb 28, 2025

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

envs_dirs crash

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

Another deviation from mamba v1 -> v2.

The following crashes mamba 2, but works fine in mamba 1.

mkdir -p /tmp/envroot/envs && \
   chmod 0 /tmp/envroot/envs && \
   CONDA_ENVS_DIRS=/tmp/envroot/envs micromamba create -n test132

...
critical libmamba filesystem error: status: Permission denied [/tmp/envroot/envs/test132]
info     libmamba ****************** Backtrace End ********************

I'll work up a PR for this soon.

mamba info / micromamba info

libmamba version : 2.0.5
     micromamba version : 2.0.5
           curl version : libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 zstd/1.5.6 libssh2/1.11.1 nghttp2/1.64.0
     libarchive version : libarchive 3.7.7 zlib/1.3.1 bz2lib/1.0.8 libzstd/1.5.6
       envs directories : /home/burt/micromamba/envs
          package cache : /home/burt/micromamba/pkgs
                          /home/burt/.mamba/pkgs
            environment : mamba (active)
           env location : /home/burt/micromamba/envs/mamba
      user config files : /home/burt/.mambarc
 populated config files : /home/burt/.condarc
       virtual packages : __unix=0=0
                          __linux=5.14.0=0
                          __glibc=2.34=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /home/burt/micromamba
               platform : linux-64

Logs

environment.yml

~/.condarc

@jjerphan jjerphan added the type::bug Something isn't working label Mar 5, 2025
@holzman holzman linked a pull request Apr 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants