Error Triage Hub (9)
SMTP Email Channel & IMAP Sync Stall Blocking Sidekiq
Slow IMAP mailboxes and unresponsive SMTP relays hold Sidekiq worker threads open for 30-120 seconds, starving critical live chat jobs.
Thread Hold: 30-120s per IMAP/SMTP hang | Queue: mailers & scheduled
How Blocking IMAP Fetches Freeze Live Messaging
When Chatwoot runs a single Sidekiq container across all queues, 10-15 concurrent IMAP folder scans or TLS SMTP handshake retries can occupy every available Sidekiq thread. Live webhook replies sit untouched in Redis until mail sockets time out.
Spotting Mailer Queue Backups in Sidekiq Metrics
Inspect Sidekiq busy workers and queue latency for Mailers::* and Inboxes::FetchImapEmailsJob. If busy threads stay pinned at 100% while CPU usage sits near 5%, network I/O wait inside mail jobs is blocking the pool.
Measured Thresholds & Configuration
| Job Class | I/O Hang Pattern | Isolation Fix |
|---|---|---|
| FetchImapEmailsJob | Large unread mailbox > 50k msgs | Dedicated low/mailers Sidekiq pod |
| ConversationReplyMailer | Greylisted or throttled SMTP relay | Cap retries + transactional relay |
| Critical live webhooks | Delayed 3-15 min behind mailers | Priority queue critical,6 high,4 |