multica-ai/multica · error

timed out waiting for update

Error message

timed out waiting for update (last status: %s)

What it means

Raised in runRuntimeUpdate's --wait polling loop when the context deadline (at least ~150s) expires before the update reaches completed/failed. The last observed status is included; the update may still be progressing server-side, so re-checking or waiting longer is appropriate.

Solutions

  1. Check the runtime update status; retry or investigate why the update stalled.
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at server/cmd/multica/cmd_runtime.go:329 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/2e9b95e6e7fcfaf3. Report an issue: GitHub.

Appendix: source

Thrown at server/cmd/multica/cmd_runtime.go:329

		return fmt.Errorf("initiate update: %w", err)
	}

	wait, _ := cmd.Flags().GetBool("wait")
	if !wait {
		output, _ := cmd.Flags().GetString("output")
		if output == "json" {
			return cli.PrintJSON(os.Stdout, update)
		}
		fmt.Printf("Update initiated: %s (status: %s)\n", strVal(update, "id"), strVal(update, "status"))
		return nil
	}

	// Poll until completed/failed/timeout.
	updateID := strVal(update, "id")
	for {
		select {
		case <-ctx.Done():
			return fmt.Errorf("timed out waiting for update (last status: %s)", strVal(update, "status"))
		case <-time.After(2 * time.Second):
		}

		if err := client.GetJSON(ctx, "/api/runtimes/"+args[0]+"/update/"+updateID, &update); err != nil {
			return fmt.Errorf("get update status: %w", err)
		}

		status := strVal(update, "status")
		if status == "completed" || status == "failed" || status == "timeout" {
			output, _ := cmd.Flags().GetString("output")
			if output == "json" {
				return cli.PrintJSON(os.Stdout, update)
			}
			if status == "completed" {
				fmt.Printf("Update completed: %s\n", strVal(update, "output"))
			} else {
				fmt.Printf("Update %s: %s\n", status, strVal(update, "error"))
			}

View on GitHub (pinned to 2c0912b6ec)