Start with the first boundary that failed. Avoid blind restarts: they can hide a missing migration, wrong runtime role, or repeatedly failing side effect.
Database does not exist
Confirm DATABASE_URL, then run:
bun run db:setup
Creating the database requires CREATEDB or equivalent permission. If the
database already exists, use bun run db:migrate.
Runtime reports missing migrations or tables
bun run db:status
bun run db:migrate
Framework startup is read-only. Generated development bun run dev scripts
perform the setup preflight; production and custom start scripts need an
explicit migration job.
Unknown runtime mode or worker
Valid modes are server, worker, and all. Valid worker names are jobs,
events, and pipelines.
serverstarts no workers.workermust select at least one enabled worker.- Each selected worker needs its matching
servicesconfiguration.
Check damat.config.ts, DAMAT_RUNTIME_MODE, and DAMAT_WORKER_TYPES together.
Jobs remain queued
Check in order:
- A process selects
jobs. - The job definition is imported before bootstrap.
- The definition and worker queue agree.
- Jobs and durability migrations are current.
- PostgreSQL is reachable.
Redis is not required. Its absence increases wake-up latency but does not remove the queued run.
Continue by symptom: