---
title: Troubleshooting
description: Common symptoms, what causes them, and how to fix them yourself.
---

Quick fixes for the issues we see most often. Each entry starts with the symptom you're seeing, so scan the headings for yours. If none of these match, contact support from the dashboard and include your service name and what you tried.

## My site works, but www doesn't

**Symptom:** `myapp.com` loads fine, but `www.myapp.com` shows a security warning ("Your connection is not private") or an error page.

**Cause:** The www variant of your domain isn't set up. It needs its own DNS record and redirect.

**Fix:**

1. Open your service → **Domains** tab
2. On your domain's card, make sure the **www redirect** toggle is on
3. If ZevCloud manages your domain's DNS, that's it — it's live within a minute
4. If you manage DNS elsewhere, add the `www` record shown in the dashboard at your DNS provider, then wait for the deploy the toggle triggers

See [Custom Domains → www Redirect](/guide/domains#www-redirect) for details.

## "Your connection is not private" right after adding a domain

**Symptom:** You just added a custom domain and the browser shows a certificate warning.

**Cause:** The SSL certificate is issued automatically after DNS verification, which takes a minute or two.

**Fix:** Wait 1-2 minutes and refresh. If it persists beyond ~10 minutes:

- Confirm your DNS records match what the **Domains** tab shows (use the **DNS** button on the domain row)
- If your DNS is on Cloudflare, make sure the record is **"DNS Only"** (gray cloud), not "Proxied"

## Pages 404 when refreshed or opened from a direct link

**Symptom:** Your React/Vue app works when navigating from the home page, but refreshing on a route like `/dashboard` (or sharing that link) shows a 404.

**Cause:** Client-side routing needs the server to serve `index.html` for every route. Without that fallback, only `/` exists as a real file.

**Fix:** Open **Service Settings → Build & Deploy**, make sure **Static site** is on, then enable **SPA (Single Page Application)** and redeploy.

## "Bad Gateway", or the service shows Running but no endpoint responds

**Symptom:** The build and deploy both succeed, the logs show your app started normally, the dashboard says **Running** — and every URL returns **Bad Gateway**. Health checks may even be passing.

**Cause:** Your app is listening on a different port from the one configured on the service. Traffic is sent to the port in your service settings; if nothing is listening there, you get Bad Gateway no matter how healthy the app is. This is the single most common cause of "it deployed but nothing works".

**Fix:**

1. Open the **Logs** tab and find the line where your server starts. It almost always names the port — for example `Uvicorn running on http://0.0.0.0:8000`.
2. Go to **Service Settings → Build & Deploy** and set **Port** to that number.
3. **Redeploy.** A restart is not enough — the routing is applied when the container is rebuilt, so a restart will leave the old port in place.

Default ports, if you haven't set one explicitly in your code:

| Framework | Port |
| --- | --- |
| FastAPI / Uvicorn | `8000` |
| Django | `8000` |
| Flask / Gunicorn | `8000` |
| Go | `8080` |
| Node, Express, NestJS | `3000` |
| Next.js, Nuxt, Remix, SvelteKit | `3000` |
| Ruby on Rails | `3000` |
| PHP / Laravel | `80` |

> **Tip: Make this impossible**
>
> ZevCloud sets a `PORT` environment variable on every service. If your app binds to `PORT` instead of a hard-coded number, the port can never drift out of sync again:
>
> ```python
> # FastAPI / Uvicorn
> import os, uvicorn
> uvicorn.run("main:app", host="0.0.0.0", port=int(os.environ.get("PORT", 8000)))
> ```
>
> ```go
> // Go
> port := os.Getenv("PORT")
> if port == "" { port = "8080" }
> http.ListenAndServe(":"+port, nil)
> ```
>
> ```js
> // Node / Express
> app.listen(process.env.PORT || 3000)
> ```
>
> Read `PORT` in your code as above rather than in the start command. Start commands can't use `$VARIABLES` (see [below](#your-start-command-cant-contain)), so a command like `--port $PORT` is refused.

## Build fails with "failed to detect the application type"

**Symptom:** The repository clones fine, then the build stops within a minute or two saying it couldn't work out what kind of application this is.

**Cause:** We looked in your **Root Directory** and found no recognised project file there — no `package.json`, `requirements.txt`, `pyproject.toml`, `go.mod`, `Gemfile` or `composer.json`. Nearly always the folder is slightly wrong. A single wrong character (`yaqb_backend` instead of `yaqub_backend`) clones successfully and then finds an empty folder, so the error names the build tool rather than the path.

**Fix:**

1. Open **Service Settings → Build & Deploy**.
2. Open the **Root Directory** dropdown and pick the folder from the list rather than typing it. Folders containing a project file are listed first, with the file named next to them.
3. Redeploy.

If the folder is right and the error persists, check that your dependency file is actually committed — a `requirements.txt` in `.gitignore` produces exactly this.

> **Tip: Workspaces are different**
>
> If your repository uses pnpm/Yarn/npm workspaces or Turborepo, the Root Directory should stay at `/` and the build should be filtered to one app instead. See [Monorepos](/guide/web-apps#monorepos).

## "Your start command can't contain ..."

**Symptom:** Saving your install, build or start command fails with an error like *"Your start command can't contain ";"..."*.

**Cause:** Commands can chain steps with `&&` or `||`, but can't contain `;`, a single `|` or `&`, redirects (`>` `<`), backticks, parentheses, or `$VARIABLES` outside single quotes.

**Fix:** Move the logic into a script and run the script. For a Node app, add it to `package.json`:

```json
{
  "scripts": {
    "start": "node migrate.js; node server.js"
  }
}
```

Then set the start command to `npm start`. Python, Ruby and other stacks can do the same with a shell script committed to the repository, for example `sh start.sh`. Environment variables are still available to your app at runtime; read them in code. See [Command rules](/guide/web-apps#command-rules).

## "The build queue is full right now"

**Symptom:** A deploy is refused with *"The build queue is full right now. Try again in about N seconds."*

**Cause:** Builds are momentarily busy. Nothing is wrong with your app or its settings.

**Fix:** Wait the number of seconds shown and deploy again.

## My app was stopped after crashing repeatedly

**Symptom:** Your app is stopped, the dashboard says it was stopped for crashing, and the team owner got an email about it.

**Cause:** Crash-loop protection. If an app crashes 10 times in a row while starting, it's stopped automatically instead of restarting forever. Common causes are a missing environment variable, a database it can't reach, or a start command that exits straight away.

**Fix:**

1. Open the **Logs** tab and read the last lines before a crash. The error that stopped your app is usually there.
2. Fix the cause in your code or settings.
3. **Redeploy.** A successful redeploy clears the stop.

See [Crash-loop protection](/guide/web-apps#crash-loop-protection).

When ZevCloud can tell why the app won't stay up, the dashboard banner and the email say so and link to the matching entry below.

## App stops right after starting, with no error in the logs

**Symptom:** The build and deploy succeed, then the app is stopped for crashing repeatedly. The **Logs** tab is empty or nearly empty, and there's no error anywhere. The app ran for less than a second each time and exited cleanly (exit code 0).

**Cause:** The start command finishes instead of running a server. A web app has to keep running and listen for requests. The most common reason by far is an app **built for another hosting platform**. TanStack Start, Nuxt, SolidStart and other Nitro apps can be compiled for Cloudflare Workers, Vercel or Netlify, and that output only exports a request handler. `node .output/server/index.mjs` loads it, has nothing to start, and exits. AI coding tools often pick one of those targets by default.

The other common reason is a start command that runs a build or a one-off script rather than the server. For a FastAPI, Flask or Django app, see [App loads and exits (Python)](#app-loads-and-exits-python).

**Fix:**

1. Open the latest deployment on the **Deployments** tab. If it shows an amber **Built for ...** notice, or the build log has a line like `` Building Nitro Server (preset: `cloudflare-module`, ...) ``, the build targeted another platform.
2. Set the server preset to `node-server` in your framework config:
   - **TanStack Start 1.132+:** `nitro({ preset: 'node-server' })` in `vite.config.ts`
   - **TanStack Start 1.121 to 1.131:** `tanstackStart({ target: 'node-server' })` in `vite.config.ts`
   - **TanStack Start 1.120 and earlier:** `server: { preset: 'node-server' }` in `app.config.ts`
   - **Nuxt:** `nitro: { preset: 'node-server' }` in `nuxt.config.ts`
   - **Other Nitro apps:** `preset: 'node-server'` in `nitro.config.ts`
3. Remove any Cloudflare Workers or Vercel adapter plugin, keep the start command `node .output/server/index.mjs`, and redeploy.

Full snippets for each version are in [TanStack Start, Nuxt and other Nitro apps](/guide/nitro-apps#set-the-server-preset-to-node-server). If your app isn't a Nitro app, check that the **Start Command** in **Service Settings → Build & Deploy** starts your server, for example `node server.js` or `npm start`.

## App loads and exits (Python)

**Symptom:** A FastAPI, Flask or Django app builds and deploys, then is stopped for crashing repeatedly. The **Logs** tab is empty or nearly empty, and the app exited cleanly (exit code 0) each time.

**Cause:** Nothing started a web server. With no start command, or a start command like `python main.py`, Python imports your app, defines it, and exits. FastAPI and Flask apps need an app server pointed at them.

**Fix:**

1. Open **Settings → Build & Deploy** and set the **Start Command** to a server command:
   - **FastAPI:** `uvicorn main:app --host 0.0.0.0 --port 8000` (use `app.main:app` if your app is in `app/main.py`)
   - **Flask:** `gunicorn --bind 0.0.0.0:8000 app:app`
   - **Django:** `gunicorn mysite.wsgi --bind 0.0.0.0:8000`, with your project's folder in place of `mysite`
2. Use the service's port number in place of `8000` if you changed it.
3. Make sure `uvicorn` or `gunicorn` is in `requirements.txt` or `pyproject.toml`, then redeploy.

The **Setup check** on the service's Overview tab shows the command we recommend for your app, with a **Use this** button. If you leave the start command empty, ZevCloud fills in the recommended one on the next deploy. See [Python web apps](/guide/python-apps#start-command).

## App ran out of memory

**Symptom:** The app restarts over and over, or is stopped for crashing repeatedly, and its log just stops mid-way or is empty.

**Cause:** It needs more memory than its plan allows. When an app goes over its memory limit it's stopped immediately, before it can write an error, so the log looks normal right up to the point it ends.

**Fix:** Reduce what the app loads at startup (large in-memory caches, loading a whole dataset, too many worker processes), or move the service to a plan with more memory on the **Billing** tab, then redeploy. The [Metrics](/guide/metrics) tab shows how close to the limit it runs.

## Command not found when the app starts

**Symptom:** The app is stopped for crashing repeatedly and the log shows something like `sh: 1: vinxi: not found` or `command not found` (exit code 127).

**Cause:** The start command, or a program it calls, doesn't exist in the built app. Usually it's a tool that's only in `devDependencies`, a typo in the start command, or a command for a different framework version.

**Fix:** Check the **Start Command** in **Service Settings → Build & Deploy**. If it runs a tool from your dependencies, move that package to `dependencies`, or run it through a `package.json` script such as `npm start`. Then redeploy.

## Cannot find module when the app starts

**Symptom:** The log shows `Error: Cannot find module '...'` or `ERR_MODULE_NOT_FOUND` as the app starts.

**Cause:** The app imports something that isn't in the built app. Either a package is missing from `dependencies` (often it's only in `devDependencies`), or the start command points at a file the build didn't produce, for example `.output/server/index.mjs` when the build wrote to `dist/`.

**Fix:**

- **A package name** (`'h3'`, `'express'`): add it to `dependencies` in `package.json`, commit your lockfile, and redeploy.
- **A path** (`'/app/.output/server/index.mjs'`): run the build locally and check where the server file ends up, then make the start command match. For TanStack Start this usually means the Nitro plugin is missing; see [TanStack Start, Nuxt and other Nitro apps](/guide/nitro-apps#set-the-server-preset-to-node-server).

## Port already in use, or the app only listens on localhost

**Symptom:** The log shows `EADDRINUSE` / `address already in use`, or the app says it's listening on `127.0.0.1` or `localhost`.

**Cause:** With `EADDRINUSE`, two servers in the app try to use the same port, or the start command starts the server twice. With `localhost`, the server only accepts connections from inside its own container, so requests never reach it.

**Fix:** Start one server, listening on the port in the `PORT` environment variable and on all interfaces (`0.0.0.0`). See the port examples under [Bad Gateway](#bad-gateway-or-the-service-shows-running-but-no-endpoint-responds).

## Missing environment variable at startup

**Symptom:** The app stops as it starts with an error such as `Missing required environment variable: DATABASE_URL` or `JWT_SECRET is not set`.

**Cause:** The app checks for a variable at startup and it isn't set on the service.

**Fix:** Add the variable on the **Variables** tab, then redeploy. Variables reach the app on the next deploy, so saving one doesn't fix a running app on its own. See [Environment Variables](/guide/env-vars).

**Exit code 3 with no output.** Exit code 3 with no error usually means the app refused to start because a required setting is missing. Open the **Setup check** on the service's Overview tab: it lists variables your code uses that aren't set, each with an **Add** button.

## Moving an app to another account or team: copy start command and variables

**Symptom:** An app that worked in one service crash-loops, or misbehaves, after you created a new service from the same repository: in another account, another team, or a fresh project or environment.

**Cause:** A new service starts from the repository and ZevCloud's defaults. Anything you set on the old service by hand doesn't come with it.

**Fix:** Open the old service's **Settings** and **Variables** tabs next to the new one's and copy these across:

1. **Start command** (Settings → Build & Deploy). A Python app with no start command runs `python main.py` and exits; see [App loads and exits (Python)](#app-loads-and-exits-python).
2. **Port.** The port the old service used, and the port inside the start command if it names one.
3. **Root directory**, if the app lives in a subfolder of the repository.
4. **Environment variables** (Variables tab). Use **Import .env** to paste them all at once. Secret values are hidden after saving, so copy them from where you keep them, not from the old service. Update anything that names the old address, such as `CORS_ORIGINS` or a callback URL.
5. **Build settings:** framework, build command, install command, runtime version and static site options.

Then redeploy. The **Setup check** on the new service's Overview tab flags a missing start command, a port mismatch and variables the code reads that aren't set yet.

## My build takes several minutes every time

**Symptom:** Every deploy takes far longer than you'd expect, not just the first one.

**Cause:** Usually one dependency that compiles from source on every build. The most common by a wide margin is `psycopg2`, which installs a C compiler and PostgreSQL headers before it can build.

**Fix:** Swap it for a prebuilt equivalent — `psycopg2-binary` instead of `psycopg2`, `pymysql` instead of `mysqlclient`. Both are drop-in and install in seconds.

A first build being slow and later ones being quick is normal and needs no fix. [How Deploys Work](/guide/how-deploys-work#why-a-build-is-slow) covers what's cached and what invalidates it.

## I can't connect to my database from my own machine

**Symptom:** The connection string on the database's Overview page works from an app deployed on ZevCloud, but times out or is refused from `psql`, TablePlus, or a local dev server.

**Cause:** New databases are private by default. They're reachable from services you deploy on ZevCloud, and not from the public internet — which is the safe default, not a fault.

**Fix:** Open the database → **Access & Connection** → turn on **public access**. You'll get a separate public host and port to use from outside. Keep using the internal URL for apps deployed on ZevCloud: it never leaves our network and is faster.

Public access is available on paid database plans. If the toggle is unavailable, the plan is the reason and the dashboard links to the upgrade.

## My environment variable change didn't take effect

**Symptom:** You added or edited a variable, but the running app still uses the old value.

**Cause:** Environment variables are applied when a service is built, so a change doesn't reach a container that's already running.

**Fix:** Redeploy the service. You can make several variable changes first — one deploy applies them all. The dashboard shows a reminder while you have unapplied changes.

> **Tip:**
>
> To change a variable's value, add it again with the same key — the new value replaces the old one. You don't need to delete it first.

## My API is running but every route returns 404

**Symptom:** The service is up and reachable, but requests return `404 Not Found` — including the root URL `/`.

**Cause:** Most API frameworks don't define a route for `/` unless you write one. A 404 here means routing is working correctly and your app simply has nothing at that path. This is different from Bad Gateway, which means traffic never reached your app at all.

**Fix:** Request a path your app actually defines. If you're using FastAPI, the interactive docs are the quickest check:

- FastAPI — `/docs` (Swagger UI) or `/redoc`
- Django REST Framework — the path in your `urls.py`, often `/api/`
- Express / NestJS — whichever prefix you registered, often `/api`

If `/docs` loads but your own routes 404, check that your routers are actually included in the app, and that you're calling the right prefix. If you deployed from a monorepo, also confirm the **Base Directory** points at the folder containing your app, not the repository root.

## Vite / React deploy fails with a port or health check error

**Symptom:** The build succeeds but the deploy ends in "Failed", often mentioning ports or health checks.

**Cause:** Client-rendered apps don't run a server, so there's nothing listening on a port for the platform to route to.

**Fix:** Enable **Static site** in **Service Settings → Build & Deploy** (or during creation). Your build output is then served directly as files — no port involved. See [Static Sites & SPAs](/guide/web-apps#static-sites--spas).

## Deploy succeeds but the site is blank

**Symptom:** The deploy shows as Ready, but visiting the site shows a blank page or a 404.

**Cause:** For static sites, the **Publish Directory** doesn't match the folder your build actually produces.

**Fix:** Check your build tool's output folder (Vite: `dist`, Create React App: `build`, Astro: `dist`) and set it as the Publish Directory in **Service Settings → Build & Deploy**, then redeploy.

## I pushed to GitHub but nothing deployed

**Symptom:** A push to your repository didn't trigger a deployment.

Work through these in order:

1. **Branch** — auto-deploy only fires for the branch configured on the service. Check **Service Settings**.
2. **Monorepo folder** — if the service has a **Root Directory** set, pushes that don't touch that folder don't redeploy it. That's [by design](/guide/auto-deploy#monorepos-only-what-changed-gets-deployed).
3. **Open invoice** — deploys are held while the service has an unpaid invoice. The Deployments tab shows a "Held" entry; settle the invoice and push again (or hit Deploy).
4. **Unrecognized committer** — pushes from someone who isn't a linked member of your team are queued as **pending approval** instead of deploying. Approve them from the Deployments tab.

## The Free plan is greyed out when creating a service

**Symptom:** In the plan picker, the Free plan can't be selected and a notice mentions a free tier limit.

**Cause:** Each team can run a limited number of free services at a time.

**Fix:** Upgrade one of your existing free services to a paid plan, or delete one you no longer use. The picker unlocks immediately.

## Emails from my app never arrive

**Symptom:** Code that sends mail via SMTP times out.

**Cause:** Direct SMTP ports are blocked platform-wide to prevent abuse.

**Fix:** Use your email provider's HTTPS API instead (Resend, Mailgun, Postmark, SendGrid all offer one). HTTPS traffic is unrestricted. See [outbound network restrictions](/guide/web-apps#outbound-network-restrictions).

## Build output missing for an old deployment

**Symptom:** Opening an older deployment shows a note that its build output is no longer available.

**Cause:** Only recent build history is retained on the build infrastructure.

**Fix:** Trigger a new deploy — its output appears in full. The old deployment's metadata (commit, status, timing) remains in the list.

> **Note: Still stuck?**
>
> Contact support from the dashboard. Include the service name, what you expected, what happened instead, and roughly when — it turns a back-and-forth into a one-reply fix.
