- Mist desktop app: click Logs. The Production tab shows the live app. The Local tab shows your computer.
- CLI:
fluid mist logs --tailstreams the live app’s build and runtime logs.
Creating the app fails
If an app shows Failed, it was rolled back. Create a new one.
The app stays in provisioning
An app moves tolive once its first deployment starts. Check its state with fluid mist show. If it stays in provisioning for more than a few minutes, run fluid mist deployments to see whether the first deployment failed.
A publish or build fails
1
Read the build log
Open Publish output in Mist, or run
fluid mist logs --deployment <id> with the ID from fluid mist deployments. Look for the first error.2
Reproduce it locally
Run the same checks the build depends on:
3
Fix and publish again
Fix the error, then publish again.
The live app crashes or returns errors
Open the Production logs, then load the failing page again. The request’s error shows up as it happens. Errors your code logs withconsole.error show up there too.
If a change works locally but not live, check what differs in production:
- Which app you’re looking at. The Local logs tab is your computer, and Production is the live app. Make sure you read the one that failed.
- The deployment. A change reaches the live app only after you publish and its deployment is
ready. Runfluid mist deploymentsto check. Until then, the live app still runs the previous version. - Data. Production has its own database. Locally,
npm run devuses an embedded database in thelocal.dbfolder. Rows you created locally aren’t in production, and production rows aren’t on your computer. - Environment variables. A variable in your
.env.localmust also be set on the app. See Add your own environment variables. - Fluid context. Fluid adds the installation reference and the session token only when it opens your page inside the Fluid admin. Locally, neither is there, so routes that need them fail. See Local development.
- Embedding. A page that works on its own can still be blocked inside Fluid. See The embed won’t load.
Database errors
Open/api/health on the app. It returns {"db":"ok"} when the database answers, or a 503 with the error.
To start your local database over, stop the app and delete the
local.db folder. It’s created again on the next npm run dev.
You can browse the app’s local and production data in Mist, read-only. See Databases.
Environment variable problems
Webhooks are rejected
The template’s webhook route returns these errors. Find the message in the production logs.
If installs never reach the app, run
fluid mist droplet repair. It fixes the droplet’s embed and lifecycle webhook URLs when they don’t match the app.
Webhooks your app didn’t create
When a company installs your droplet, the template registers the company webhooks you turned on inlib/config/droplet.config.ts. It registers them with that installation’s droplet installation token, so Fluid signs each delivery with the installation’s webhook secret. That’s the secret the template checks.
A company webhook created any other way, for example in the admin or with a company API token, isn’t tied to the installation. Fluid signs it with a different secret, or not at all. Every delivery then fails with “Invalid signature” or “Regular webhooks require an installation signature”. Don’t recreate your app’s webhooks by hand. Let the app register them.
Audit and repair your app’s webhooks
1
List what your app should receive
In
lib/config/droplet.config.ts, note each webhook that has enabled: true: its resource, its event, and the URL, which is your app’s address plus /api/webhooks. Every entry starts with enabled: false.2
List what Fluid has
Call
GET /api/company/webhooks for the company. Match each entry by resource, event and URL. Look for webhooks that are missing, that point at another address, or that your app didn’t create.3
Fix the config and publish
Turn on the webhooks you need in
lib/config/droplet.config.ts, then publish the app.4
Remove webhooks created by hand
Delete the company webhooks for your app’s URL that your app didn’t create, with
DELETE /api/company/webhooks/{id} or on the Webhooks screen.5
Reinstall the droplet
Run
fluid mist droplet reinstall. Fluid sends a fresh droplet.installed, and the app registers its webhooks again with the new installation’s token. See Reinstall a droplet.6
Check the deliveries
Query the app’s
webhooks table in Databases to see what arrived, with any error. To resend a failed delivery, use Retrigger in Webhook Logs. Retrigger sends the event to every active webhook subscribed to it, not only yours.Reinstall a droplet
If an install never finished, for example the app misseddroplet.installed or its token exchange failed, reinstall the droplet. You don’t need to uninstall it by hand first.
fluid mist droplet reinstall replaces the company’s installation in one step. Fluid uninstalls the old installation, creates a new one, moves the old installation’s surfaces to it, and sends the app a fresh droplet.installed. It also fixes the droplet’s embed and lifecycle webhook URLs first, as fluid mist droplet repair does.
The old installation’s credentials stop working, so the command needs your approval twice:
1
Preview the plan
2
Confirm within 15 minutes
--dry-run again. --yes doesn’t approve a reinstall.--watch-timeout <seconds>, up to 3600. Only succeeded means the reinstall is done. If the result is still_running, the reinstall is still going on Fluid’s side. Follow it with the --resume command the result gives you, such as:
mist.destroy permission.
Every webhook the app receives is saved in its webhooks table, with any error. Query it in Databases to see what arrived.
The embed won’t load
Verifying a viewer also needs the
settings scope on the droplet installation. Without it, the store lookup is refused and the page returns 401.
A custom domain doesn’t work
See Connect a custom domain.Restore a deleted app
A deleted app is kept for 15 days. Until then, you can restore it with its code, database and settings intact.Get help
If you’re still stuck, contact Fluid support. Include the app’s slug, what you did and the error from the logs.Email Fluid support at help@fluid.app. The Getting help page lists what to include in your request.
Related pages
- Run and publish in the Help Center
- Hosting, database and environment variables
- Authentication