SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Run SHADE

Troubleshooting

What SHADE says when something is wrong, and what to check. The API logs every start-up step (database, migrations, modules, jobs) as JSON lines; start with its log (Logs and request ids). Errors that reach the API while it runs are also on the admin's Errors screen.

The API does not start

The log saysCheck
[config] <SETTING>: …That setting is missing or not valid, for example APP_SECRET must be at least 32 characters. Every problem is listed, then the API stops. Compare your environment with .env.example.
Cannot reach the database at …DATABASE_URL, and that Postgres runs. In development it must match docker-compose.yml (postgres://shade_app:shade_app@localhost:5432/shade); start it with docker compose up -d postgres.
DATABASE_URL connects as a role that may not run SHADE: …DATABASE_URL names a role that is a superuser, has BYPASSRLS or owns a table. Use the running role shade_app there, the owner in DATABASE_OWNER_URL and the backup role in DATABASE_BACKUP_URL (The database's roles). A database made before the three roles cannot be converted: set up a fresh one (in development, remove the postgres-data volume and start Postgres again).
Cannot reach Redis at …REDIS_URL and its password, and that Redis runs. SHADE does not start without Redis. In development: redis://:shade@localhost:6379 and docker compose up -d redis.
[config] … must be an address without a path, such as https://admin.example.comSHADE_API_URL, SHADE_ADMIN_URL and SHADE_ACCOUNT_URL are addresses only: no path, query or trailing parts.
The module switch has rows for "<name>", which no module in shade/exports/modules.ts has: rename or remove them in a migrationThe database remembers a module that this release doesn't have, usually because the module was renamed and its row was not. Update to a release whose migration renames or removes that row. A developer fixes it in a new migration that renames the row in module_switches to the module's new name, or deletes it. An older container that is already running skips the row and logs a warn line naming it, so an update without a gap keeps serving.

The API starts, but something is missing

  • background work is not running: no worker container answers. Scheduled publishing, retention, email retries, the queue and the modules' jobs run in a worker container. Start one with SHADE_API_ROLE=worker (Setting up an instance: the template has one). In development, SHADE_API_ROLE=all runs everything in one process.
  • not loading the <name> package: … (a warn line). An installed package was left out, with the reason. The Modules screen shows the same as Not running; install a new build of it, or remove it (Modules).
  • The site shows old content. Publishing asks the site to rebuild; the website module's Builds screen shows each build and why one failed. Check its build hook and the site's SHADE_API_TOKEN (Publishing).
  • Emails are not sent. The email service needs SMTP or Brevo set up in the admin. Every mail is in the Sent email log on the Email screen, a failed one with its error (Email).
  • A module misbehaves and you cannot deploy. An admin switches the modules (data sources, forms, webhooks, realtime, notifications, private files, search) off under Settings → Modules, without a deploy. Its routes answer 404, its background work waits and nothing is deleted (Site settings).
  • A module answers "service unavailable" (503), "try again later". SHADE paused it after repeated failures: a task that failed, 10 or more errors from its tasks and jobs in two hours, or jobs that gave up. Its background work is stopped and its queued jobs wait, kept. Find the cause under Errors, fix it, then press Resume on the module's card under Settings → Modules; it stays paused until you do. If it fails again it is paused again. The pause is in the audit log and in the A module needs attention alert; shade_module_state shows it in the metrics (Site settings).

Signing in

  • No admin yet. Open the address in the admin container's log (…/create-owner) and enter its code. It is printed as a block headed SHADE: CREATE THE OWNER ACCOUNT, and again every five minutes until the owner exists. The code works for an hour; the block then carries a new one, as does restarting the admin container, and an earlier code keeps working until its hour is up. The page answers 404 at any other address than SHADE_ADMIN_URL (else SHADE_API_URL), so a proxy that changes the Host header hides it: use create-admin then.
  • The only admin lost their password. Run create-admin on the server: pnpm create-admin in a checkout, or node console/create-admin.mjs in the API's container (Signing in).
  • Too many attempts. After 10 sign-in attempts (or two-factor codes) from one IP address within 15 minutes, sign-in is refused for the rest of that quarter hour (Request protection).

In development

  • pnpm dev stops at once. Run pnpm dev:check: it starts every app, waits until the API and the admin answer, and names the one that is not up, with its last output.
  • Port 3000, 4000, 5432 or 6379 is taken. Another program uses it; stop it, or change the port in .env and docker-compose.yml.

Still stuck? Open an issue in the repository, with the log lines and what you did. A security problem never goes in an issue: see Reporting a vulnerability.