Configure Paths#
By default, runtime and log data live under conda’s application namespace:
runtime:
platformdirs.user_runtime_dir("conda") / "broker"logs:
platformdirs.user_log_dir("conda") / "broker"
The exact platform base directory depends on the operating system.
Path resolution uses this precedence:
Explicit
--runtime-dirand--log-dirCLI options, or explicitServicePathspassed to the Python API.CONDA_BROKER_RUNTIME_DIRandCONDA_BROKER_LOG_DIR.Conda settings.
Platform defaults.
CLI Overrides#
cb --runtime-dir /tmp/conda-broker-runtime --log-dir /tmp/conda-broker-logs status
cb status --runtime-dir /tmp/conda-broker-runtime --log-dir /tmp/conda-broker-logs
Environment Variables#
export CONDA_BROKER_RUNTIME_DIR=/tmp/conda-broker-runtime
export CONDA_BROKER_LOG_DIR=/tmp/conda-broker-logs
Conda Settings#
conda-broker registers these settings:
broker_runtime_dir: /tmp/conda-broker-runtime
broker_log_dir: /tmp/conda-broker-logs
Settings are loaded lazily with the conda plugin and do not start the broker.
Configured paths expand ~ and are normalized to absolute paths without
following a configured directory symlink. On POSIX, pre-existing runtime and
log directories must be owned by the current user with mode 0700. Fix an
unsafe directory explicitly; the broker will not change permissions on a
directory it did not create.