Skip to content

mamba crashes if env_dir is not readable #3848

@holzman

Description

@holzman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type::bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions