nikivdev/code · error · anyhow::Error

Port 80 is already in use by '{}'. Stop that listener, then

Error message

Port 80 is already in use by '{}'. Stop that listener, then retry `f domains --engine native up`.

What it means

Error "Port 80 is already in use by '{}'. Stop that listener, then retry `f domains --engine native up`." thrown in nikivdev/code.

Source

Thrown at src/domains.rs:783

        .output()
        .context("Failed to build native local domains daemon")?;
    ensure_success(output, "Failed to build native local domains daemon")?;
    Ok(())
}

fn assert_no_port_80_conflict_native(paths: &DomainsPaths) -> Result<()> {
    if native_proxy_running(paths)? {
        return Ok(());
    }

    if let Some(owner) = docker_container_owning_port_80()? {
        bail!(
            "Port 80 is owned by docker container '{}'. Stop it first before starting native domains proxy.",
            owner
        );
    }
    if let Some(listener) = port_80_listener_summary()? {
        bail!(
            "Port 80 is already in use by '{}'. Stop that listener, then retry `f domains --engine native up`.",
            listener
        );
    }
    Ok(())
}

fn start_native_proxy(paths: &DomainsPaths) -> Result<()> {
    let log_file = fs::OpenOptions::new()
        .create(true)
        .append(true)
        .open(&paths.native_log)
        .with_context(|| format!("Failed to open log file {}", paths.native_log.display()))?;
    let err_file = log_file
        .try_clone()
        .context("Failed to duplicate native proxy log file handle")?;

    let mut cmd = Command::new(&paths.native_bin);

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/domains.rs:783 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/3cd988b5f62996d9. Report an issue: GitHub.