When something is wrong
The most common failures, how to spot them and what to do.
On this page
Start here
klickops shows what's wrong in one sentence on the workload. So read the status line first. Then open the Logs tab. There the container itself says why it stopped.
Three questions solve most problems:
- Did the workload ever start?
- Did it start and then stop?
- Is it running but not reachable?
Those are three different problems. The sections below follow that order.
It never starts
klickops can't pull the image. Maybe the name is wrong. Maybe the tag doesn't exist. Or the registry needs credentials klickops doesn't have. Check the exact reference. For a private registry, also check the pull credentials. A typo in a tag looks exactly like a missing image.
The project doesn't have enough capacity. The status says so directly, with the numbers. There isn't enough CPU or memory left in the project. Remove or shrink another workload. Or move to a bigger plan, which raises every project's capacity. A database shows this error on its card too.
You reached the plan's limit. You notice this when you create something. A message names the limit. So you see the error right away. See Plans and costs.
It starts and then stops
It exits without an error. klickops restarts it, because an app should keep running. If something should run once and then finish, use a scheduled job.
It crashes on start. You find the reason in the logs of that attempt. It's usually one of three things: an environment variable is missing, the database isn't reachable yet, or the port is wrong. Check that the process listens on the port you set.
It runs out of memory. The container is stopped and restarted. The restart count keeps going up. klickops sizes memory to what the app really uses. If a process really needs more, it gets more. A memory leak will keep getting stopped, though.
If a rollout fails, the old version keeps running. klickops waits until the new copies pass their health check. Only then does it remove the old ones. So with a broken image, the previous version keeps serving. The app looks unhealthy while klickops retries. Your users don't notice anything.
It runs but is not reachable
Check the health check first. klickops only sends traffic once the port accepts a connection. If the process listens on a different port, it's healthy inside. From the outside it can't be reached.
Then check DNS. If the hostname doesn't resolve, there's no certificate. The domain check never turns green. See Domains.
Then check the firewall. A blocked connection times out. So it feels slow instead of refused. The app's Firewall tab lists the connections blocked in the last 15 minutes. One click allows one of them. See Firewall.
A database is stuck provisioning
Give it two minutes. A PostgreSQL cluster needs that long to start. If it takes longer, the project usually lacks capacity. That's described above.
Is the database healthy, but your app can't reach it? Then the database is almost never the problem. Check that the app is bound to the database. Also check that both are in the same project. An app can't reach a database in another project. No firewall rule opens that path either.
When to ask
Ask us once you have three things: the workload's name, the time it started failing and the exact message. With those, we can answer quickly.
Related
- Backups and recovery: when you want to go back to an earlier state.
- Apps: what each tab shows.