{"record":{"id":"5af91e4da77be918","repo":"sipeed/picoclaw","slug":"failed-to-start-any-enabled-channels-w","errorCode":null,"errorMessage":"failed to start any enabled channels: %w","messagePattern":"failed to start any enabled channels: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/manager.go","lineNumber":1286,"sourceCode":"\n\tif len(m.channels) > 0 && len(m.workers) == 0 {\n\t\tif m.dispatchTask != nil {\n\t\t\tm.dispatchTask.cancel()\n\t\t\tm.dispatchTask = nil\n\t\t}\n\n\t\tsort.Strings(failedNames)\n\t\tif len(failedStarts) == 0 {\n\t\t\treturn fmt.Errorf(\"failed to start any enabled channels\")\n\t\t}\n\n\t\tlogger.ErrorCF(\"channels\", \"All enabled channels failed to start\", map[string]any{\n\t\t\t\"failed\":          len(failedNames),\n\t\t\t\"total\":           len(m.channels),\n\t\t\t\"failed_channels\": failedNames,\n\t\t})\n\n\t\treturn fmt.Errorf(\"failed to start any enabled channels: %w\", errors.Join(failedStarts...))\n\t}\n\n\tif len(failedNames) > 0 {\n\t\tsort.Strings(failedNames)\n\t\tlogger.WarnCF(\"channels\", \"Some channels failed to start\", map[string]any{\n\t\t\t\"failed\":          len(failedNames),\n\t\t\t\"started\":         len(m.workers),\n\t\t\t\"total\":           len(m.channels),\n\t\t\t\"failed_channels\": failedNames,\n\t\t})\n\t}\n\n\t// Start the dispatcher that reads from the bus and routes to workers\n\tgo m.dispatchOutbound(dispatchCtx)\n\tgo m.dispatchOutboundMedia(dispatchCtx)\n\n\t// Start the TTL janitor that cleans up stale typing/placeholder entries\n\tgo m.runTTLJanitor(dispatchCtx)","sourceCodeStart":1268,"sourceCodeEnd":1304,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/manager.go#L1268-L1304","documentation":"Error \"failed to start any enabled channels: %w\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/manager.go:1286 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}