my-appengineer Courses

Health, logs and fixing what breaks

Launch and operateLesson20 min17 / 20

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

  1. Is the app running? (health)
  2. If not, or if it misbehaves, why? (logs)
  3. What changed recently? (your change log, the last build or commit)

Answer them in that order, before you change anything.

Where to look

WhatWhere on the platformThrough Claude
Is it live?Your apps: status on the app cardlist_apps, get_app_health
Why did it fail?App hub: logsget_app_logs (also of a container that crashed)
What changed?App hub: repo and commits; the synced commit above the app cardslist_builds, get_build
RestartCheck your dashboardrestart_app (needs Deploy apps)

Open your 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.

Ask Claude
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

SymptomTypical log lineUsual causeFix
App never becomes healthy after a deployCannot find module / file not foundStart command points to a file that does not existFix the start command or build output
Crash right at startSTRIPE_SECRET_KEY is not defined or similarA required environment variable is missingSet it under Apps → App hub → the app's card → Integrations; the app restarts with it
Works, then crashes under loadOut of memory, killedMemory limit of your plan, or a memory leakFix the leak; consider a bigger plan
Some pages 500Database errors (relation does not exist)A migration did not runRun the migration; ask the builder to make it part of deploy
Webhooks failingSignature verification failedWrong webhook secret, or body parsed before verificationCheck the secret per endpoint; use the raw body
Emails not sentSMTP authentication or connection errorsMissing or wrong SMTP_* settingsReconnect 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.
Watch out

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:

  1. An external uptime check on your public address and a health endpoint (for example /health that checks the database). Many uptime services have a free tier; they email or text you when the check fails.
  2. A weekly Claude review: health, a summary of errors in the logs, and anything unusual.
  3. 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.
Ask Claude
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.

Open Pulse

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.

How it works in your country

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.

Your task

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.