Configuration Errors
These errors appear when running gym env start or gym eval run --no-serve. NeMo Gym validates configuration at startup before launching servers.
See the Configuration reference for complete configuration syntax and options.
Startup Errors
Errors that prevent servers from starting.
Unset Required Config Value(s)
When: One or more required variables (usually in env.yaml) are left unset (???) after all
config sources are merged. Every unset value is listed together in this single error.
Fix: Add the missing value to env.yaml:
Or pass via command line:
Server Reference Not Found
When: A server config references another server that doesn’t exist or isn’t loaded. The error
names the referencing instance/field and then either suggests a similarly named server
(Did you mean: …) or, when nothing is close, lists the available servers of that type
(Available resources_servers: …).
Common causes:
- Typo in the server name
- Referenced server’s config file not included in the
--configflags - Server defined in a different config file that wasn’t loaded
Fix:
- Check server name spelling in your config
- Ensure all required config files are passed with
--config:
Config Path Not Found
When: A config_paths entry (in a config file or a --config flag) points at a file that doesn’t
exist under any search root. The error lists every location that was searched.
Fix: Correct the path. A relative entry is resolved against your working directory and then the Gym install root, so running from the repository root usually fixes it; an absolute path also works.
Malformed config_paths
When: config_paths is set to a scalar or mapping instead of a list of path strings.
Fix: Make it a YAML list, or pass each config with --config:
No Server Instances Configured
When: The merged config defines no server instances — usually a wrong/empty --config or a
config_paths list that resolved to nothing.
Fix: Pass the configs that define your servers, or check the config_paths entries actually load.
Catch all of the above before launch with gym env validate — it
merges and validates the same config gym env start uses, then exits with a clean message (no traceback)
and a non-zero status on failure, so it fits in CI pre-flight checks.
Validation Errors
Errors where config structure is correct but values are invalid.
Almost-Servers Detected
When: Config has the right structure (server type, entrypoint) but contains invalid field values.
Common causes:
- Invalid
domainvalue for resources servers - Invalid
licensevalue in dataset configs - Missing required fields for the server type
Fix: Check the validation error path (for example, resources_servers -> example_server -> domain) and update the field with a valid value. Refer to configuration-reference for valid field values.
Bypass Strict Validation
To continue with invalid configs (invalid servers will be skipped):
Bypassing validation means invalid servers won’t start. Use this only for debugging, not production.