Skip to Content
Documentation

Notifications

Troubleshooting

Fix common VitNode notification problems: a bell that does not update live, late or missing notifications and emails, and a wrong unread count.

Each section below starts from a symptom and lists the checks in the order that finds the cause fastest.

The bell does not update live

  • Check the WebSocket. The browser needs a working /api/ws connection. See WebSocket. Without one, the bell still catches up every 60 seconds while the tab is visible.
  • Running several API instances? Set REDIS_URL. Without Redis, live updates reach only tabs connected to the instance that delivered the notification. Other tabs catch up on reconnect or page load.

Notifications arrive late or never

A publishing request starts delivery right after its response. Everything else is delivered by the queue worker, which your cron adapter runs every minute.

  1. Nothing runs the queue worker. No cron adapter or external scheduler is configured, or every tick is refused. In production an unset or placeholder CRON_SECRET gets 403, and the server console shows [VitNode] Cron tick failed: 403 .... Debug Panel → Cron & queue (/admin/core/debug/cron) shows a red Scheduler stopped card once jobs are 15 minutes overdue. See Cron.
  2. Notifications are paused. The AdminCP notifications screen shows a Notifications are paused banner. See Use the Settings sheet.
  3. The delivery task failed. Debug Panel → Queue in the AdminCP (/admin/core/debug/queue) lists failed notifications-fanout tasks with their last error. Filter by the Failed status to find them.
  4. The member never gets it. The actor is skipped unless you pass allowSelf: true, and members who turned the type off or fail your access check get nothing. See Choose the recipients.

Emails are not sending

  1. No email adapter. Send a test email from Debug Panel → Services, see Testing email in AdminCP. If it does not arrive, check your email adapter.
  2. Email is disabled for the type. Check the type's Email column in the AdminCP.
  3. The member gets no email for the type. The default may be Not enabled by default, or the member chose otherwise.
  4. The delivery was skipped or failed. List deliveries with GET /deliveries from the AdminCP endpoints. failed shows a redacted error. skipped shows a reason, such as empty when everything was already read.

Digests go out only after their period ends, at 08:00 in the member's time zone, and include only notifications that are still unread.

The digest came at the wrong time

Digests follow the time zone the member set under Region on /settings, then the time zone of their language, then UTC. The scheduler runs every 5 minutes, so a digest can arrive up to 5 minutes after 08:00.

The unread count looks wrong

Every inbox change updates the count in the same transaction, so a wrong count is a bug worth reporting. To check and repair counts, call POST /reconcile from the AdminCP endpoints. It only reports mismatches unless you send { "dryRun": false }, which also pushes the corrected badge to open tabs.

Items disappear from the inbox

Core deletes an item when it loads and finds the content gone or hidden, the member without access, the plugin uninstalled, or stored data that no longer matches the type's schema and that migrate could not upgrade. See Items that are no longer available. Plugins can clean up sooner with remove().

An item that stays in the unread count but never shows up has a present or access that fails. Check the server log for [Notifications] "<type>" failed to render.