Repository navigation
user docs operations
Run one application or migration process against a database at a time. Persistent data is in the configured data directory, including the SQLite database, its WAL/sidecar files, and all images. See installation for paths and permissions.
TrueNAS or your host handles snapshot scheduling, retention, and replication. Snapshot the complete /data dataset atomically; do not copy only the live mindflow.sqlite file. If live snapshot consistency is not verified for your storage configuration, stop the app first.
Protect backups as private data. They contain accounts, workspaces, images, SMTP credentials, and possibly pending credential-link emails. Deleting a live record does not erase retained snapshots or immediately shrink the database file.
-
Stop the app and take a safety snapshot of its current dataset.
-
Restore the entire dataset from one snapshot, preserving ownership and permissions. Never mix database/sidecar files from different snapshots.
-
Before exposing the restored app, use the matching image to check data and revoke restored credentials. For the supplied source-checkout Compose deployment:
docker compose -f deploy/compose.yaml run --rm mindflow check-data docker compose -f deploy/compose.yaml run --rm mindflow revoke-credentials docker compose -f deploy/compose.yaml up -d
On TrueNAS, run equivalent one-off commands against the restored dataset while the normal app is stopped. For a local binary, set
MINDFLOW_DATA=/path/to/dataon each command. -
Sign in again and verify accounts, workspaces, images, new saves, and SMTP. Resend needed invitations.
revoke-credentials removes sessions, invitation/reset links, queued token emails, and editor control; it preserves passwords and content. A restore may resurrect accounts or content deleted after the snapshot. Review those changes before reopening access.
Snapshot the data, stop the old container, deploy a pinned new image, and check readiness. For a prebuilt-image Compose deployment, pull the chosen tag before starting it. Startup applies pending domain migrations automatically. The TrueNAS YAML additionally runs the same image as a one-shot migrate service and starts the server only after it exits successfully. Keep the image version, data mount, and UID/GID identical in both services; a completed migration container is expected to stay stopped. Stop the old server before applying an upgrade so migrations do not run alongside an older process.
Each migration is transactional, but an upgrade across domains is not one transaction. A failed migration rolls back its own changes; earlier successful domains remain applied and retry resumes the remaining work. The app refuses newer unsupported schemas. Roll back with the old image and its matching pre-upgrade snapshot, rather than assuming an old binary can read the new database.
For a TrueNAS deployment, inspect both services' logs. If migrate fails, fix the reported path, permissions, or migration issue and redeploy the app. When applying a new image, recreate the migration service together with the server. The server still checks migrations when restarted directly.
To migrate explicitly with the supplied source-checkout Compose file, stop the normal service first, then run:
docker compose -f deploy/compose.yaml run --rm mindflow migrateThe scratch image has no shell. Invoke maintenance commands through its entrypoint, or use /usr/local/bin/mindflow with docker exec.
| Symptom/check | What to inspect |
|---|---|
/health/live |
Process can respond. |
/health/ready |
Database is accessible after startup/migrations. An uninitialized instance can be ready for setup. |
| Login works only locally or cookies are missing | Public HTTPS URL, production mode, and reverse-proxy configuration. |
| Email fails | Provider host/port, verified TLS mode, credentials, sender permission, and queued delivery status. |
| Other tabs update slowly | SSE streaming and proxy buffering/caching. Polling is a fallback. |
Database cannot be opened or migrate fails before creating tables |
Confirm the host dataset exists, both services mount it at /data, MINDFLOW_DATA is a directory, and the configured UID/GID (568:568 in the TrueNAS YAML; 10001:10001 by default) can create/write the database and its sidecar files. Check free space and dataset read-only state. |
| Save failed or disconnected | Network, available disk space, permissions, current editor control, and server logs. Preserve the tab until work is saved or recovered. |
SMTP failure does not take the canvas offline. Logs exclude passwords, cookies, token URLs, image bytes, and document bodies, apart from the intentionally logged first-run setup credential.
Image processing is serialized to bound memory. Start with two CPUs and 1 GiB memory, then measure your workload; this is not a guaranteed minimum. Keep free disk for originals, variants, WAL growth, and snapshots. Read the security policy before exposing or restoring an instance.
Keep SMTP working: active non-admin users receive inactivity reminders after 90 days without authenticated use, and a final seven-day reminder before permanent deletion. Grace deadlines start from successful SMTP delivery, not queue creation. Missing delivery receipts prevent automatic deletion. Inactive/unactivated accounts are excluded; administrators are exempt. Check the email-delivery status in user management when mail fails. A successful SMTP handoff does not guarantee inbox delivery, so monitor your mail provider's bounces too.
Use version-tagged production images so the app can identify releases. The first observed release establishes a baseline; subsequent semantic-version upgrades email only users who explicitly opted in. Restarting the same image or rolling back does not send another announcement. The cursor and queued announcements are stored in SQLite and therefore follow your backups. Restoring an older snapshot can repeat an announcement previously sent after that snapshot.
Feedback reports and screenshots are private to authors and administrators. Review Administration → Feedback & bugs periodically; new reports are not automatically emailed or sent to GitHub. A screenshot can contain private workspace content that its author deliberately shared. Account deletion removes owned reports and screenshots as well as authored report comments.
Closed feedback reports (both bugs and feature requests) are automatically removed 30 days after closure, including discussion, attachments, and unread metadata. Reopening cancels expiry and a later closure starts a new 30-day period. Adding comments does not extend retention. Reports already closed when this policy is first installed receive a fresh 30-day window. Existing backups may retain deleted reports according to your snapshot policy.