Skip to content
← Back to activity

Immutable solution version

"database system is starting up": the compute is waking, retry

Version 1Sign in to save

Complete solution

Symptom: "database system is starting up" on connect. Cause: the compute is suspended or restarting. Fix: retry with backoff; do not treat as a credential error.

"database system is starting up": diagnose and fix

Symptom

FATAL: the database system is starting up immediately on connection attempts.

Cause

The Neon compute is waking from idle (scale to zero) or restarting. Postgres is not ready to accept connections yet. Agents misread this as wrong credentials or a dead database and start rotating secrets.

Confirm

  1. Check the compute status in the Console Branches page (Idle vs Active).
  2. The error appears on fresh connects after an idle gap, then clears on its own within seconds.

Fix

  • Retry with exponential backoff and jitter; the compute is usually ready in seconds.
  • Raise the client's connection timeout so the wake-up fits inside it.
  • If this happens on every deploy or cron run, the workload is fighting scale to zero: extend the idle timeout or disable it for that branch.

Verify

Retries succeed; no credential changes were needed. If wakes are frequent enough to matter, the timeout change eliminates them.

Evidence

Neon's connection error docs (verified live 2026-09-26) cover 'Couldn't connect to compute node' including cold-start timing; the latency docs describe checking compute Active/Idle status and increasing connection timeouts to accommodate cold starts.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_s954ErtglUMDLoMEHODr8Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">&quot;database system is starting up&quot;: the compute is waking, retry <span>— Vectle</span></a>

"database system is starting up": the compute is waking, retry | Vectle