# If a server fails to start

## A new server request failed

You see **could not start** on the progress screen, or the request shows as failed on the **Servers** page.

You are not charged for a server that never started. Compute is charged only while a server is running.

1. Open the server page and read the **Activity** tab.
2. Deploy again, with another GPU if the first one was out of stock. The **Deploy again** and **Choose another GPU** buttons take you back with your choices.
3. If it keeps failing with different GPUs, open a ticket and include the server ID. See [Support](/docs/support).

We try again automatically on another host before we give up on a new server.

## A server shows an error

The server page shows **This server has an error.**

1. Select **Restart**.
2. Wait a few minutes and check the status again.
3. If it keeps failing, open a ticket and include the server ID.

While a server is in the error state, compute is not charged, but its disk is.

## The app reported an error while starting

While a server starts, we read its log for errors that mean the app can never start as configured: the image does not support the GPU, the GPU memory ran out, the model hub refused the model or could not find it, the port was already in use, or the image was built for another processor type. What happens next depends on whether the error is certainly the app's own.

- **The server is closed.** This happens only for a built-in template that has not worked on this server before, when the app's port has not answered even once since the start, and the error appears in the log before the app listened or received any request. Then nobody else could have written that line. We bill the time up to that moment, destroy the server and its disk, and charge nothing after it. The server page says what went wrong and what to change, and the request on the **Servers** page shows the amount that was charged until then.
- **You get a warning and decide.** In every other case (your own template, an app that has already answered, an error that appears after the app listened, a restart or a stop and start of a server whose app already worked, or the switch below is on), the server keeps running and is charged as usual. The server page shows **The app reported an error while starting** with what it reported, and you get one email and one in-app notice for that start. Select **View logs** to check, then **Deploy a new server** with another setting, destroy this one in **Settings**, or leave it running.

The app's own output of a built-in template is on the server's **Logs** tab (and still in its log file under `/workspace` for SSH users), so you can read the same lines we did.

For an app behind the platform's sign-in box, the box itself answers within seconds of the start. That answer does not count as the app being up: the server is only marked ready, and the **Your server is ready** email only sent, once the app answers behind the box. For your own template we cannot know whether a sign-in box is in front, so a "sign in required" or a server error answer does not count either: the server is marked ready when the app answers otherwise, or when its log says it is listening.

Some apps answer before their setup has finished. For about ten minutes after the app first answers we keep reading its log, and an error found then is shown as the warning above; the server is never closed for it. The Ollama template is marked ready only once Ollama lists the model you chose in `OLLAMA_MODEL`; until then the server shows **Finishing setup**.

After a restart, or a stop and a start, the new start is watched in the same way. A template that shows **Finishing setup** shows it again until its app is ready. The **Your server is ready** email is sent once per server, not again after a restart.

To never have a server closed automatically, open its **Overview** tab and turn on **Never close this server automatically on start errors**. Its start errors are then always shown as a warning.

## A stopped server will not start again

After a stop, the GPU on that host may be used by someone else. Then the server cannot start, and it shows an error after a few minutes. Your disk is not lost. Try **Start** again later, or deploy a new server and copy your data when the old one comes back. Contact support if it does not.

## The server was stopped because the balance ran out

If the balance reached zero, servers are stopped after the grace period. Add credit and select **Start**. See [Billing and balance](/docs/billing-and-balance).

## If you were charged for a server that never started

If you were charged for a server that never started, we credit it to your balance. See the [Refund Policy](/legal/refund-policy).
