Skip to content

Environment solution fails on linux #2189

Description

@j-wags

For people who just want a workaround

We're aware of an issue where conda environment solution is running out of memory and exiting on computers with ~4GB of RAM or fewer. We are taking some actions to make these solves simpler, and our testing indicates that the updates in the next major conda release (version 27, using the "rattler" solver) will resolve this.

In the meantime, if you're encountering this issue (where environment solves run for a minute or two and then report Killed status), we've found that you can help the solver over the hump by specifying a python version, eg:

mamba create -n myenv -c conda-forge openff-toolkit python=3.13

Full description

Describe the bug

Linux computers with moderate resource levels can't solve environments with openff packages. I've seen this on a user's HPC, on a linux docker container spun up on my own machine (see below), and on a linux machine in GitHub Codespaces.

To Reproduce

I start a linux docker container

docker run --platform linux/amd64 -it mambaorg/micromamba

and inside the docker container

micromamba create -n temp -c conda-forge openff-toolkit

yields

(base) mambauser@14381ae9182f:/tmp$ micromamba create -n temp -c conda-forge openff-toolkit
Using Cached Shard Index for conda-forge/linux-64                                                   ✔ Done
Using Cached Shard Index for conda-forge/noarch                                                     ✔ Done
Fetching and Parsing Packages' Shards                                                     ✔ Done (2.1 sec)
Using Cached Shard Index for conda-forge/linux-64                                                   ✔ Done
Using Cached Shard Index for conda-forge/noarch                                                     ✔ Done
Fetching and Parsing Packages' Shards                                                     ✔ Done (1.3 sec)

Resolving Environment                                                                     ✔ Done (2.3 sec)
Using Cached Shard Index for conda-forge/linux-64                                                   ✔ Done
Using Cached Shard Index for conda-forge/noarch                                                     ✔ Done
Fetching and Parsing Packages' Shards                                                           ⧖ Startingwarning  libmamba Failed to parse field 'noarch' (msgpack type=1) in shard package record for 'tensorboard-2.1.1-py38_0.tar.bz2': Expected STR or BIN type for string conversion. This field will be ignored.
Fetching and Parsing Packages' Shards                                                     ✔ Done (2.3 sec)
Using Cached Shard Index for conda-forge/linux-64                                                   ✔ Done
Using Cached Shard Index for conda-forge/noarch                                                     ✔ Done
Fetching and Parsing Packages' Shards                                                           ⧖ Startingwarning  libmamba Failed to parse field 'noarch' (msgpack type=1) in shard package record for 'tensorboard-2.1.1-py38_0.tar.bz2': Expected STR or BIN type for string conversion. This field will be ignored.
Fetching and Parsing Packages' Shards                                                     ✔ Done (2.5 sec)

Resolving Environment                                                                           ⧖ StartingKilled

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions