jdx/mise · error
services not found in compose config
Error message
services not found in compose config: {} What it means
Thrown during `inspect` when one or more services requested in the config cannot be found in the actual compose configuration produced by the compose file(s). The compose file is the source of truth for what exists; requesting an unknown service would leave mise with nothing to track, so it fails with the list of missing services.
Solutions
- Update the mise config's `services`/`oneshot` lists to match the services defined in the compose file
- Add the missing service to the compose file
- Verify `files` points at the intended docker-compose.yml
Example fix
# before (compose file only defines db) [system.compose.myproj] services = ["db", "api"] # after [system.compose.myproj] services = ["db"]
Defensive patterns
Strategy: validation
Validate before calling
# verify configured services exist in the compose file first docker compose -f docker-compose.yml config --services | grep -x -f services.txt
Try / catch
try {
project.inspect()?;
} catch (e) if e.message().contains("services not found in compose config") => {
// resync mise services list with compose file and retry
} Prevention
- Regenerate the mise services list whenever the compose file changes
- Run `docker compose config --services` as a preflight
- Point `files` at the correct compose file
When it happens
Trigger: Calling inspect on a bootstrap compose project whose configured `services` (or oneshot entries) are absent from the compose file referenced by `files`. The error message lists the missing service names.
Common situations: Service renamed or removed from docker-compose.yml while mise config still lists it; mise config pointing at the wrong/outdated compose file; YAML indentation placing the service under the wrong key.
Understand the failure class
Background: 'Could not be found', 'does not exist', 'not found in database': the resource-not-found family when an ID, slug, key, or URI lookup comes back empty — this error's family across 20 libraries.
Related errors
- bootstrap compose project
- bootstrap compose project
- bootstrap compose project
- bootstrap compose project
- bootstrap compose project
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/9866c0140e916fa1.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/compose.rs:528
fn inspect(&self) -> Result<ComposeInspection> {
let configured_services = self
.compose_output(&["config".to_string(), "--services".to_string()])?
.lines()
.filter(|line| !line.trim().is_empty())
.map(|line| line.trim().to_string())
.collect::<IndexSet<_>>();
let target_services = if self.services.is_empty() {
configured_services.clone()
} else {
let missing = self
.services
.iter()
.filter(|service| !configured_services.contains(*service))
.cloned()
.collect::<Vec<_>>();
if !missing.is_empty() {
bail!(
"services not found in compose config: {}",
missing.join(", ")
);
}
self.services.iter().cloned().collect()
};
let config_hashes = if self.state == ComposeState::Running {
parse_config_hashes(
&self.compose_output(&["config".to_string(), "--hash=*".to_string()])?,
)?
} else {
HashMap::new()
};
let mut containers = parse_ps(&self.compose_output(&[
"ps".to_string(),
"--all".to_string(),
"--format".to_string(),
"json".to_string(),View on GitHub (pinned to 533346cc37)