Skip to content

DocsHelp

Running apps

What to do when a running app starts slowly, crashes, loses files, cannot use its database or cache, sees one address or stops answering; what a banner means.

Lines from the running app are under Logs. What the platform notes there starts with what happened to the replica: it started, it stopped, it ran out of memory.

It was asleep and had to start. Switch on Keep one replica always on under Scaling, or give it a longer time under Sleep after. See Sleep and wake.

Line in the runtime log What to do
The app exited with code N Read the lines above it for the error your app printed
The app ran out of memory and was stopped Choose a larger size under Scaling
The start command could not be run Check the start command in the build settings
The app kept crashing: after N restarts it is not started again Fix the error and deploy again

The memory and the disk of the app are temporary. They are lost when the app is deployed or restarted, and when it sleeps, and replicas do not share them. Keep data in a database or a store outside the app. See A temporary disk.

What the app or its log says What to do
sorry, too many clients already, or remaining connection slots are reserved The direct host has run out of connections: every replica, worker and process keeps a pool of its own. Make the pools smaller, or point the app’s queries at the Pooled URL in a variable of your own and keep migrations on the direct one. See Pooled or direct
connection is insecure (try using sslmode=require) The app connects without TLS. Use DB_URL or DATABASE_URL as the platform sets them, or keep sslmode=require in a URL of your own
invalid connection option "channel_binding", or invalid URI query parameter The Postgres client is older than version 13 and does not know channel binding: update it. psql on your computer too
channel binding required The app also connects to another Postgres server that cannot bind the sign-in to TLS. Add your own PGCHANNELBINDING variable with the value prefer. See Connect from Laravel
password authentication failed The password was replaced with New password. Redeploy the app: it gets the new DB_PASSWORD, DB_URL and DATABASE_URL only then
The variables are missing The database was attached after the last deployment. Redeploy now next to the New resources pill
Every connection is refused The team’s apps are paused: the trial or the plan ended, the credit is used up or a payment is unpaid. The database takes connections again once the team may run apps; its data is kept
project size limit The database is at the storage cap of the plan and refuses writes. Delete data you do not need, or move to a plan with a larger cap. See Limits

The first query after a quiet time takes about half a second longer: the database was asleep and woke for it. Choose a longer Sleep after, or switch off Sleep when idle to keep it running. See Sleep when idle.

What the app or its log says What to do
OOM command not allowed when used memory > 'maxmemory' The cache is full and its eviction policy is noeviction, so writes are refused. Delete keys you do not need, give keys an expiry, or raise its size on the cache’s page. If everything in it can be made again, pick allkeys-lru
Keys disappear before their expiry The cache is full and its eviction policy drops keys to make room. Raise its size, or pick noeviction if the keys must stay, such as a queue or sessions
Writes are refused although the policy drops keys A volatile- policy drops only keys with an expiry; once only keys without one are left, writes are refused. Give the cached keys an expiry, raise the size, or pick an allkeys- policy
NOAUTH, or WRONGPASS The password was replaced with New password. Redeploy the app: it gets the new REDIS_PASSWORD and REDIS_URL
The variables are missing The cache was attached after the last deployment. Redeploy now next to the New resources pill

The runtime log shows “permission denied” or EACCES. The app runs without root rights. It can write in its own folder, in its home folder and in /tmp, and nowhere else. Write there, or better in a store outside the app, because all three are temporary. See No root rights.

Read the visitor’s address from the X-Real-IP header, not from request.ip. Behind the most widely used proxy, X-Real-IP holds the visitor’s address once the domain’s check has seen the domain behind it: choose Check again in the domain’s row, or wait up to an hour. Behind any other proxy, X-Real-IP is the proxy’s address and the visitor’s is in the header your proxy adds; trust it only when X-Real-IP is one of your proxy’s addresses. See The visitor’s address.

The app stops answering when many people are connected

Section titled “The app stops answering when many people are connected”

Every open WebSocket takes one of the places a replica has for requests, and a replica at twice that number answers nothing more. Raise Concurrent requests per replica under Scaling to the number of people you expect connected at once per replica, or allow more replicas. See WebSocket and Socket.IO.

The app runs more than one replica, and the client starts with long polling, which needs every request to reach the same replica. Set the client to WebSocket only: io({ transports: ['websocket'] }). See WebSocket and Socket.IO.

A job inside the app (a timer, a cron package, a queue worker) runs only while a replica of the app runs. The app was asleep. Switch on Keep one replica always on, or move the work to a cron job of the platform, which runs on a machine of its own.

A cron job of the platform that did not run has a run marked as skipped on its page, with the reason: the previous run had not finished, the app is paused, no version is deployed yet, or the plan does not allow running apps. See When a run is skipped.

Variables reach the app with the next deployment. Choose Redeploy now in the notice at the top of the app: it builds the app again, so a variable the build writes into the files (NEXT_PUBLIC_*, VITE_* and the like) is there too. See During the build.

A banner says the team waits for approval, or is suspended

Section titled “A banner says the team waits for approval, or is suspended”
  • “We look at every new team before it can run apps. You can look around and connect GitHub meanwhile; we email the owner once the team is approved.” Deploying or adding an app meanwhile says “We look at every new team before it can run apps, and email the owner once it is approved.” Nothing to do: the owner gets an email, “… is approved”, and the team can create and deploy apps.
  • “This team was not approved to run apps. The owner got an email from us about it.” The email, “… was not approved”, says that we could not approve the team; it gives no reason. Contact support if you think this is a mistake.
  • “This team is suspended, so its apps are paused and nothing can be deployed. Contact support if you think this is a mistake.” Deploying, resuming or creating anything in the team is refused with “This team is suspended, so it cannot run apps. Contact support.” The owner gets an email, “… was suspended”, which gives no reason; contact support. When the suspension is lifted, the email “… can run apps again” says so, and the apps stay paused until you resume them. Caches set to sleep during the suspension stay that way until you switch them back, see Valkey. See Suspending and ending in the terms.

The app was paused under More actions, by a member of the team or by the platform when billing did not allow it to run. Choose Resume; if billing is the reason, the app’s page says what to settle first. See Pause and resume.

An app can also be paused by the platform when it kept a very high processor use for a long stretch. The team gets a notification that says so. The app stays paused until support has looked at it: Resume says “This app was paused for processor use. Support is looking at it.” Contact support if this load is expected.

During the trial, without a card, an app that sends 20 GB in one day (UTC) is paused too. Until midnight UTC, resuming, restarting or deploying it is refused with “This app sent 20 GB today, the most a trial sends in a day. Resume it after midnight UTC, or add a card or choose a plan to lift the limit.” Resume it after midnight, or add a card or choose a plan first. See The trial.

For a short while the platform may pause builds, pause sign-ups or make the dashboard read-only. A banner at the top of the dashboard says which. No reason is given, and there is nothing to set: wait, and it ends by itself.

The banner or message says What still works
Builds are paused for maintenance right now. New deployments, command runs and cron runs start again when they resume; a deployment already queued waits. The apps keep running. A rollback, a restart and scaling still work, since they reuse a built version. Deploy, the deploy hook and Run on the Commands tab answer “Builds are paused for maintenance right now. Try again in a little while.” A queued deployment says “Builds are paused for maintenance right now. Your deployment will start when they resume.” and starts by itself. A cron run is skipped
The dashboard is read-only for a short while. You can look at everything, but nothing can be changed yet. The apps keep running and every page can be read. A save answers “The dashboard is read-only for a short while. Nothing was changed.” Make the change again later
New sign-ups are paused right now. Try again later. Everyone with an account signs in as usual. Only new accounts and new teams wait
Free trials are paused right now. Choose a plan to continue. A new team can start with a plan instead of the trial

The dashboard answers “Too many requests”

Section titled “The dashboard answers “Too many requests””

A page says “Too many requests” and “Slow down for a moment, then try again.” Too many changes reached the platform in a short time, and the last one was not made. Wait a minute and make the change again.

The Profile page says What to do
Remove the other members of … or delete the team first A team you own has other members, and closing your account would take it away from them. Remove them under Team settings, Members, or delete the team. See Close your account
Sign in with your own email code to close the account You are signed in through a link that support made for you. Sign out, sign in with a code sent to your address, and try again
Pay the open invoice of … on its billing page first A team you own owes an invoice. Pay it under Team settings, Billing of that team, then try again. See Close your account