Appearance
Troubleshooting
A page fails validation. Run pnpm foliwake page check. The diagnostic names a file, line, column and fix. Check front matter, component field names and local image paths. In local development, inspect http://127.0.0.1:3000/_dev/diagnostics.
The store cannot be reached. Start local storage with pnpm store:up, or check the configured storage.endpoint and credentials. Only release 1 (the first code prepare of a site) creates a missing bucket. Run pnpm foliwake site list to inspect the configured binding without publishing.
A code release is refused because inputs are dirty. Commit changes in the site's frontend Git repository, then run pnpm foliwake code prepare again. This check is separate from editing Markdown drafts.
Preview is unavailable from another machine. Beyond loopback, preview requires HTTPS and a preview token. Keep both draft pages and draft media behind that protection. See configuration and storage.
An operation was interrupted. With the same site configuration, run pnpm foliwake operation recover --wait, then inspect pnpm foliwake site status. If the state directory was lost or restored from an older backup, see cache work after a state restore. Keep current backups of both state and bucket.
Changes do not appear live. dev shows working files, preview shows saved drafts, and live shows selected published pages. Check the chosen page ID with pnpm foliwake page changes --changed, then publish it explicitly. If a cache is in use, --wait waits within a bounded timeout. A successful publication with cache refresh pending is already committed; use operation recover --wait to retry the remaining cache work. Exit code 3 from recovery means work is still pending.
Cache work after a state restore
“Kept pending”, but this site has no cache. These jobs may have been recorded for an earlier cache, or recovery may lack enough history to prove that no cache was used. They remain pending deliberately. operation recover --wait returns promptly with exit code 3; this does not undo a committed publication. There is no retirement command yet. If the site will never use a cache, retain the jobs until an explicit retirement procedure is available.
The state database was lost or restored from an older backup. Recovery compares its records with committed releases in storage. For unexplained history it records an all-HTML refresh, including the immediate and delayed final phases. With no cache, both remain pending. Repeated recovery does not duplicate the operation. After configuring the site's cache and credentials, run recovery again and check that pending work reaches zero:
bash
pnpm foliwake operation recover --site mysite --wait
pnpm foliwake site status --site mysite --jsonA successful purge request can still take time to affect cached visitors. Verify the page through the cache as well as directly at the origin. An all-HTML refresh can evict unrelated pages: that is intentional when the missing history prevents a narrower reconstruction.
Before upgrading a state database. Stop every Foliwake command and service, then take a consistent backup of the state directory, not a plain copy of a SQLite file while writers are active. This migration changes persistent state. Downgrading requires restoring the pre-upgrade backup; the older engine does not reliably refuse the newer state format. Preserve the bucket's release history as well.
