jdx/mise · error
user service ' ' is also declared in…
Error message
user service '{}' is also declared in [bootstrap.macos.launchd.agents]; declare it once What it means
mise rejects a user service request whose name appears more than once in the [bootstrap] config: during `requests_from_config`, after checking systemd units it checks launchd agents and bails if the same service name is already declared there. Each user service must be declared exactly once so the apply step produces a single unambiguous install/remove request.
Solutions
- Search your mise.toml files for the service name and delete the duplicate declaration, keeping only the platform-appropriate one
- Move platform-specific service blocks into platform-scoped config (e.g. mise.toml under [settings] platform overrides or separate files per OS)
- Rename one of the services if they are genuinely different services
Example fix
// before [bootstrap.linux.systemd.units] [[bootstrap.linux.systemd.units]] name = "my-daemon" [[bootstrap.macos.launchd.agents]] name = "my-daemon" // after # keep only the section for the current platform [[bootstrap.macos.launchd.agents]] name = "my-daemon"
Defensive patterns
Strategy: validation
Validate before calling
// shell: ensure the service appears in only one bootstrap section grep -rn "name = \"my-daemon\"" ~/.config/mise .mise.toml mise.toml 2>/dev/null # must match in either systemd.units or launchd.agents, never both
Prevention
- Keep service declarations in platform-scoped config files, one per OS
- Grep for the service name across all mise.toml files before adding a new declaration
- Treat systemd units and launchd agents as the same logical namespace in your config reviews
When it happens
Trigger: Calling requests_from_config (during `mise` bootstrap/service apply) with a config where the same service name is listed both in [bootstrap.linux.systemd.units] and in [bootstrap.macos.launchd.agents], or duplicated across platform sections that are both present on the current machine.
Common situations: Users copying an existing service block into the other platform's section while syncing mac/linux config files, or sharing one mise.toml between machines and keeping the service in both sections instead of guarding with platform-specific files.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- a provided source resolves to a path
- additional asset ' ' is not an archive
- agent ' ' `start_calendar_interval. ` must be between and
- agent ' ' `start_calendar_interval` must set at least one…
- agent ' ' `start_calendar_interval` must not be empty
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/65b4b9d0251bee3f.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/user_services.rs:287
.into_iter()
.map(|(name, (declaration, origin))| {
UserServiceRequest::from_toml(name, declaration, Some(origin))
})
.collect::<Result<Vec<_>>>()?;
if requests.is_empty() {
return Ok(requests);
}
let units = crate::system::systemd_from_config(config);
let agents = crate::system::launchd_from_config(config);
for request in &requests {
if units.iter().any(|unit| unit.name == request.name) {
bail!(
"user service '{}' is also declared in [bootstrap.linux.systemd.units]; declare it once",
request.name
);
}
if agents.iter().any(|agent| agent.name == request.name) {
bail!(
"user service '{}' is also declared in [bootstrap.macos.launchd.agents]; declare it once",
request.name
);
}
}
Ok(requests)
}
/// The mise executable a service definition may reference: the running
/// binary unless it lives in a temporary or remote-bootstrap staging
/// directory, else a `mise` on `PATH` outside those. Durability is judged
/// by where the binary really is, but the path kept is the one found: a
/// Homebrew or package-manager symlink survives an upgrade, the versioned
/// file behind it does not.
pub(crate) fn durable_mise_executable() -> Option<PathBuf> {
let current = crate::env::MISE_BIN.clone();
if durable_behind(¤t) {
return Some(current);View on GitHub (pinned to 533346cc37)