conda-libmamba-solver + libmamba 1.5.x cannot operate on read-only caches because loading via api.Repo(...) always tries to write the SOLV cache file back to disk, and fails to do so in the write permissions are not there:
File "/tmp/software/python/3.11.4/lib/python3.11/site-packages/conda_libmamba_solver/index.py", line 293, in _json_path_to_repo_info
repo = api.Repo(self._pool, noauth_url, str(path_to_use), escape_channel_url(noauth_url))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Permission denied
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Other (please describe)
Search tried in issue tracker
writable read-only cache
Latest version of Mamba
Tried in Conda?
Not applicable
Describe your issue
Comes from https://github.com/conda/conda-libmamba-solver/issues/522
conda-libmamba-solver + libmamba 1.5.x cannot operate on read-only caches because loading via
api.Repo(...)
always tries to write the SOLV cache file back to disk, and fails to do so in the write permissions are not there:I think this line:
https://github.com/mamba-org/mamba/blob/4f269258b4237a342da3e9891045cdd51debb27c/libmamba/src/core/repo.cpp#L332
should have some error handling because that
write_solv()
call is not critical to the repo loading. Nice to have, sure, but not required.mamba info / micromamba info
Logs
No response
environment.yml
No response
~/.condarc
No response