DVC "config file error ... no such remote" in CI
DVC was asked to use a remote by name, but no remote with that name exists in .dvc/config, so it reports the config error. The name is wrong or the remote definition never reached CI.
What this error means
dvc pull -r storage or a default-remote command fails with "config file error: no remote 'storage'" while other DVC operations work.
dvc
ERROR: config file error: no remote 'storage'Common causes
The remote name is misspelled
The -r value or default remote name does not match any ['remote "..."'] section in .dvc/config.
The remote lives only in config.local
The remote was added to the git-ignored .dvc/config.local, so CI, which only has the committed .dvc/config, does not know it.
How to fix it
List remotes and use the real name
- Run
dvc remote listto see the defined names. - Use the exact name, or add the missing remote to the committed config.
- Commit
.dvc/configand re-run.
Terminal
dvc remote list
dvc remote add -d storage s3://my-bucket/dvcstore
git add .dvc/configKeep the URL in committed config
Only credentials belong in .dvc/config.local; the remote definition must be in .dvc/config for CI to resolve it.
Terminal
dvc remote modify --local storage access_key_id ${AWS_ACCESS_KEY_ID}How to prevent it
- Define remote URLs in the committed
.dvc/config. - Reserve
.dvc/config.localfor secrets only. - Reference remotes by names verified with
dvc remote list.
Related guides
DVC ".dvc/config" config file error in CIFix DVC config file errors from .dvc/config in CI - a malformed or invalid config section stops DVC before it…
DVC "unable to find DVC remote" in CIFix DVC "ERROR: unable to find DVC remote" in CI - dvc pull/push has no default remote configured, or the nam…
DVC "failed to pull data from the cloud" (remote auth) in CIFix DVC "ERROR: failed to pull data from the cloud" in CI - the remote is reachable but the runner has no val…