wasmerio/wasmer · error

Failed to activate version: backend did not update version!

Error message

Failed to activate version: backend did not update version!

What it means

Error "Failed to activate version: backend did not update version!" thrown in wasmerio/wasmer.

Source

Thrown at lib/cli/src/commands/app/version/activate.rs:29

    /// App version ID to activate.
    ///
    /// This must be the unique version ID, not the version name!
    /// Eg: dav_xYzaB1aaaaax
    pub version: String,
}

#[async_trait::async_trait]
impl AsyncCliCommand for CmdAppVersionActivate {
    type Output = ();

    async fn run_async(self) -> Result<(), anyhow::Error> {
        let client = self.env.client()?;

        let app = wasmer_backend_api::query::app_version_activate(&client, self.version).await?;

        let Some(version) = &app.active_version else {
            anyhow::bail!("Failed to activate version: backend did not update version!");
        };

        eprintln!(
            "Changed active version of app '{}/{}' from '{}' to '{}' (id: {})",
            app.owner.global_name,
            app.name,
            version.version,
            version.version,
            version.id.inner(),
        );

        Ok(())
    }
}

View on GitHub (pinned to 8c4b9ee9d3)

When it happens

Trigger: Thrown at lib/cli/src/commands/app/version/activate.rs:29 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01). Data as JSON: /api/errors/4acad5a174fc3c68. Report an issue: GitHub.