sipeed/picoclaw · error

failed to start any enabled channels

Error message

failed to start any enabled channels

What it means

Returned by the manager's Start when every enabled channel failed to start (failedStarts is empty of successes) and no workers remain. Signals total channel-layer failure: no channel is running, so the agent cannot send or receive messages through any channel.

Solutions

  1. Inspect earlier per-channel error logs for root causes
  2. Fix at least one channel's configuration and restart the agent
  3. Disable broken channels so remaining ones can start
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at pkg/channels/manager.go:1277 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15). Data as JSON: /api/errors/825da3e1c4acf884. Report an issue: GitHub.

Appendix: source

Thrown at pkg/channels/manager.go:1277

		go m.runMediaWorker(dispatchCtx, name, w)
		m.publishChannelEvent(
			runtimeevents.KindChannelLifecycleStarted,
			name,
			runtimeevents.Scope{Channel: name},
			runtimeevents.SeverityInfo,
			ChannelLifecyclePayload{Type: channelType},
		)
	}

	if len(m.channels) > 0 && len(m.workers) == 0 {
		if m.dispatchTask != nil {
			m.dispatchTask.cancel()
			m.dispatchTask = nil
		}

		sort.Strings(failedNames)
		if len(failedStarts) == 0 {
			return fmt.Errorf("failed to start any enabled channels")
		}

		logger.ErrorCF("channels", "All enabled channels failed to start", map[string]any{
			"failed":          len(failedNames),
			"total":           len(m.channels),
			"failed_channels": failedNames,
		})

		return fmt.Errorf("failed to start any enabled channels: %w", errors.Join(failedStarts...))
	}

	if len(failedNames) > 0 {
		sort.Strings(failedNames)
		logger.WarnCF("channels", "Some channels failed to start", map[string]any{
			"failed":          len(failedNames),
			"started":         len(m.workers),
			"total":           len(m.channels),
			"failed_channels": failedNames,

View on GitHub (pinned to 49183d7e8d)