{"record":{"id":"2e9b95e6e7fcfaf3","repo":"multica-ai/multica","slug":"timed-out-waiting-for-update-last-status-s","errorCode":null,"errorMessage":"timed out waiting for update (last status: %s)","messagePattern":"timed out waiting for update \\(last status: (.+?)\\)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_runtime.go","lineNumber":329,"sourceCode":"\t\treturn fmt.Errorf(\"initiate update: %w\", err)\n\t}\n\n\twait, _ := cmd.Flags().GetBool(\"wait\")\n\tif !wait {\n\t\toutput, _ := cmd.Flags().GetString(\"output\")\n\t\tif output == \"json\" {\n\t\t\treturn cli.PrintJSON(os.Stdout, update)\n\t\t}\n\t\tfmt.Printf(\"Update initiated: %s (status: %s)\\n\", strVal(update, \"id\"), strVal(update, \"status\"))\n\t\treturn nil\n\t}\n\n\t// Poll until completed/failed/timeout.\n\tupdateID := strVal(update, \"id\")\n\tfor {\n\t\tselect {\n\t\tcase <-ctx.Done():\n\t\t\treturn fmt.Errorf(\"timed out waiting for update (last status: %s)\", strVal(update, \"status\"))\n\t\tcase <-time.After(2 * time.Second):\n\t\t}\n\n\t\tif err := client.GetJSON(ctx, \"/api/runtimes/\"+args[0]+\"/update/\"+updateID, &update); err != nil {\n\t\t\treturn fmt.Errorf(\"get update status: %w\", err)\n\t\t}\n\n\t\tstatus := strVal(update, \"status\")\n\t\tif status == \"completed\" || status == \"failed\" || status == \"timeout\" {\n\t\t\toutput, _ := cmd.Flags().GetString(\"output\")\n\t\t\tif output == \"json\" {\n\t\t\t\treturn cli.PrintJSON(os.Stdout, update)\n\t\t\t}\n\t\t\tif status == \"completed\" {\n\t\t\t\tfmt.Printf(\"Update completed: %s\\n\", strVal(update, \"output\"))\n\t\t\t} else {\n\t\t\t\tfmt.Printf(\"Update %s: %s\\n\", status, strVal(update, \"error\"))\n\t\t\t}","sourceCodeStart":311,"sourceCodeEnd":347,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_runtime.go#L311-L347","documentation":"Error \"timed out waiting for update (last status: %s)\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_runtime.go:329 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the runtime update status; retry or investigate why the update stalled."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}