Skip to content
Poorva Cloud

Your app keeps restarting

When an app crashes, its services start again by themselves. If it happens again and again, the site flickers between working and 502. How to find the cause.

Updated 26 November 2026

Symptoms

  • The site works, then shows 502 Bad Gateway, then works again.
  • The app's status moves between Running, Restarting and Needs attention.

Cause

Each app runs as one or more services, for example a web service and a database service. Every service is set to start again automatically if it stops unexpectedly. That keeps short failures short, but if the cause stays, the service crashes again straight after it starts. This is called a restart loop.

On our platform the common causes are:

  • the service reaches its memory limit and the system stops it (see App runs out of memory);
  • a broken plugin, setting or code change that makes the app fail at start;
  • the database service fails to start, so the web service fails its health check;
  • the server's disk is full, so the service cannot write what it needs (see Server disk is full).

How to fix

  1. Open the app's Logs tab straight after a restart, or the server's Logs tab with the app chosen under Application, and read the last lines before it stopped. Search for killed, out of memory, No space left, fatal.
  2. Undo the most recent change inside the app, such as a new plugin or setting.
  3. Press Stop, wait until the status is Stopped, then press Start. This gives the app a clean start.
  4. If memory is the cause, reduce what the app loads (heavy plugins, large imports), or move it to a larger server.
  5. If the disk is full, free space first.
  6. If it keeps restarting after this, stop making changes and raise a ticket.

How this works with Docker

Each service of an app runs in its own Docker container, and each container is set to restart by itself when it stops. You do not need Docker access to fix a restart loop: the Logs tab shows what the app and its web server print (and Problems with your apps on that tab may say "Your app {app} keeps restarting. Its lines below may show why."), and Stop, Start and Restart act on all of an app's containers together. See How apps run on your Poorva Cloud server.

When to raise a ticket

Use Raise a ticket on the Support page if the app keeps restarting after you undid your changes, the logs are empty, or the disk and memory look fine. Include the app name, the server name, when it started and the last log lines (remove passwords or keys from the lines first).

Never include passwords, private keys or API keys.

Was this helpful?

Still need help?

24/7 support from our team. Sign in to the console to raise a ticket about this.

Raise a ticket