sipeed/picoclaw · error
deltachat add_account
Error message
deltachat add_account: %w
What it means
Fired during channel account provisioning when no existing configured account matches the configured email and the add_account RPC call itself fails. Means a new Delta Chat bot account could not be created via the core RPC (transport error or core rejection), preventing the channel from obtaining an account ID.
Solutions
- Check the RPC server is running and DC_ACCOUNTS_PATH is writable
- Inspect the underlying error for account-creation limits or corrupt account DB
- Pre-configure the account so add_account is not needed at startup
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at pkg/channels/deltachat/deltachat.go:986 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/11ec8cd3138babf1.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/channels/deltachat/deltachat.go:986
return err
}
var accountID int64
for _, acc := range accounts {
if acc.Kind == "Configured" && strings.EqualFold(acc.Addr, c.config.Email) {
accountID = acc.ID
break
}
}
if accountID == 0 {
if c.config.Password.String() == "" {
return c.passwordRequiredError("account not found")
}
raw, callErr := c.rpc.call(ctx, "add_account")
if callErr != nil {
return fmt.Errorf("deltachat add_account: %w", callErr)
}
if decErr := json.Unmarshal(raw, &accountID); decErr != nil {
return fmt.Errorf("deltachat add_account decode: %w", decErr)
}
}
configured, err := c.isConfigured(ctx, accountID)
if err != nil {
return err
}
if !configured {
if err := c.configureAccount(ctx, accountID); err != nil {
return err
}
} else if c.config.Password.String() != "" {
changed, err := c.accountConfigChanged(ctx, accountID)
if err != nil {
logger.WarnCF("deltachat", "Could not read account config; reconfiguring", map[string]any{View on GitHub (pinned to 49183d7e8d)