Health, logs and fixing what breaks
Every app breaks sometimes: a deploy with a typo, a missing setting, a database that fills up, a third-party service that is down. What separates a calm founder from a panicked one is a routine: know where to look, in what order, and what you can do safely. In this lesson you learn that routine on my-app.engineer, with Claude doing the reading.
The three questions when something is wrong
- Is the app running? (health)
- If not, or if it misbehaves, why? (logs)
- What changed recently? (your change log, the last build or commit)
Answer them in that order, before you change anything.
Where to look
| What | Where on the platform | Through Claude |
|---|---|---|
| Is it live? | Your apps: status on the app card | list_apps, get_app_health |
| Why did it fail? | App hub: logs | get_app_logs (also of a container that crashed) |
| What changed? | App hub: repo and commits; the synced commit above the app cards | list_builds, get_build |
| Restart | Check your dashboard | restart_app (needs Deploy apps) |
The docs make one point very clearly: a deploy being accepted does not mean the app started. get_app_health reports whether it did, and get_app_logs returns the output of a container that has crashed. Most deploy integrations can ship code but cannot tell you why it broke; this one can.
The standard diagnosis prompt
Save this prompt; you will use it often.
Use my my-app.engineer workspace. My app [app name] has a problem: [what you see, e.g. "the booking page shows an error" / "the site is down"]. Do not change, restart or deploy anything yet. 1. Call get_app_health and tell me the state. 2. Call get_app_logs and find the first real error (not the noise after it). 3. Explain the cause in plain words. 4. Propose the smallest fix and how we can verify it. Wait for my OK before doing anything.
Common failures and what they look like
| Symptom | Typical log line | Usual cause | Fix |
|---|---|---|---|
| App never becomes healthy after a deploy | Cannot find module / file not found | Start command points to a file that does not exist | Fix the start command or build output |
| Crash right at start | STRIPE_SECRET_KEY is not defined or similar | A required environment variable is missing | Set it under Apps → App hub → the app's card → Integrations; the app restarts with it |
| Works, then crashes under load | Out of memory, killed | Memory limit of your plan, or a memory leak | Fix the leak; consider a bigger plan |
| Some pages 500 | Database errors (relation does not exist) | A migration did not run | Run the migration; ask the builder to make it part of deploy |
| Webhooks failing | Signature verification failed | Wrong webhook secret, or body parsed before verification | Check the secret per endpoint; use the raw body |
| Emails not sent | SMTP authentication or connection errors | Missing or wrong SMTP_* settings | Reconnect with mail_connect_app, never hard-code |
The docs mention exactly these kinds of causes: "a crash loop or a start command pointing at a file that does not exist".
Restarting and rolling back
- Restart (
restart_app) helps after you changed a setting, or when an app is stuck. It does not fix a bug in code; if the app crashes again after restart, read the logs again. - Stop (
stop_app) takes the app offline. Use it only on purpose, for example when you discover a data leak and must stop it immediately. - Roll back: your app's history is in its git repo, and the dashboard shows the synced commit. How to deploy an earlier commit from the dashboard is not documented; check in your App hub what it offers, and practise once before you need it. Through the builder, you can also ask the manager to revert a specific change.
Give Claude the Deploy apps permission only when you want it to restart, stop or deploy. For diagnosis, Read deployments is enough: it covers apps, URLs, status, health and logs without changing anything.
Monitor before customers tell you
You do not want to hear about downtime from a salon owner whose clients could not book. Three layers, from simple to advanced:
- An external uptime check on your public address and a health endpoint (for example
/healththat checks the database). Many uptime services have a free tier; they email or text you when the check fails. - A weekly Claude review: health, a summary of errors in the logs, and anything unusual.
- Cluster tools: the platform can install tools such as Grafana and Prometheus into your cluster with one click, and Velero for backups. Useful when you grow; not required for the first ten customers.
Use my my-app.engineer workspace, read-only. For [app name]: call get_app_health and get_app_logs. Give me a weekly report: is it healthy, how many errors and warnings, the three most frequent error messages with a likely cause, and anything that looks like a security issue (many failed logins, unexpected 401/403 bursts, webhook signature failures). Do not change anything.
Pulse is the platform's tool for counting each app's visits, sign-ups and activations first-party in your cluster, without a third-party script. It answers a different question (are people using it?) but a sudden drop in sign-ups is also a signal that something broke. Whether Pulse needs setup for your app: check in your dashboard.
Backups: test the restore
Your database holds your customers' business. Decide now:
- how often you back up (daily at least);
- where the backup is stored (not only on the same machine);
- how long you keep backups;
- how you restore, and that you have actually done it once.
The platform offers Velero among its cluster tools, and you own your cluster through the kubeconfig. How backups are set up for an app's database on your plan is not described in the docs you have read: check in your dashboard and the Cluster tools docs, and write your routine down. A backup you have never restored is a hope, not a backup.
If you process personal data for customers (Bookwise stores clients' names, emails and phone numbers for salons), your contracts and privacy policy should say where data is stored, how it is backed up and how quickly you report incidents. Under GDPR, personal data breaches must be reported to the supervisory authority within 72 hours where required; national authorities such as the Autoriteit Persoonsgegevens, UODO, the ICO or the CNIL publish how. Check your country's procedure.
Bookwise
Two weeks after launch, the booking page returned errors for 20 minutes. The founder ran the diagnosis prompt: health showed the app restarting, the logs showed STRIPE_WEBHOOK_SECRET is not defined after a settings change. Claude proposed the fix (add the variable back, restart), the founder approved it, and the app was healthy a minute later. The founder added an uptime check that same evening and wrote the incident in the change log.
Save the diagnosis and weekly-report prompts, set up an external uptime check, find where health, logs and the synced commit appear in your dashboard, and write down your backup and restore routine. Practise one restart and one restore on test data.
This course is general information, not personal legal, tax or financial advice. Rules, amounts and dates change: check the official source for your country before you act.