Skip to content
Node.js and Python3 min read

Phusion Passenger error: Web application could not be started

Web application could not be started

Short answer

"Web application could not be started" means Phusion Passenger tried to launch your Node.js or Python app and the process crashed, exited or didn't respond in time. The real cause is in the app's log: usually a missing package, a wrong startup file, a missing environment variable, or a Node app that doesn't listen on `process.env.PORT`.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Causes
  2. How to fix it
  3. Prevention
  4. On ArabyHost

Phusion Passenger is the application server that starts your Node.js or Python app when a request arrives, passes the request to it, and restarts it when needed. If the app fails during that start, Passenger shows its error page instead of your site. Depending on the server’s settings, you’ll see “Web application could not be started”, a short “We’re sorry, but something went wrong”, or a plain 503 error. The page itself never contains the real reason; the log does.

Causes

  • A missing package: dependencies weren’t installed in the app’s environment (Cannot find module or ModuleNotFoundError).
  • Wrong startup file or app root: app.js set while the code starts from server.js, or the root points to the wrong folder.
  • Node.js listens on a fixed port instead of process.env.PORT, or the code also starts a second server.
  • Python has no application object in passenger_wsgi.py, which is what Passenger calls.
  • Missing environment variables, so the code throws when it reads a token or database password.
  • A syntax or runtime error at import time.
  • Slow startup: connecting to external services or loading big models before the app responds.
  • Memory limits reached while the app loads.

How to fix it

  1. Read the log. Open the app in cPanel’s Setup Node.js App or Setup Python App, check the log file path, open that file in File Manager or over SSH (tail -n 50 path/to/log), and look for the last traceback or error.

  2. Start the app by hand to see the error directly. Over SSH, copy the command shown at the top of the app’s page to enter its environment, then:

    # Node.js
    node app.js
    # Python: import the entry file and print any traceback
    python -c "import passenger_wsgi"
  3. Check the startup file and root on the app’s page against your real file names.

  4. Install the dependencies with Run NPM Install or Run Pip Install (Python needs requirements.txt added under Configuration files).

  5. Node.js: listen on the port Passenger gives you:

    const port = process.env.PORT || 3000;
    app.listen(port);
  6. Python: expose application in passenger_wsgi.py:

    from app import app as application          # Flask
    # from mysite.wsgi import application       # Django
  7. Add missing variables in the app’s environment variables section.

  8. Restart with the Restart button, or touch tmp/restart.txt in the app root, then reload the page.

Prevention

  • Run the app locally with the same startup file and Node or Python version you set on the server.
  • Fail fast with a clear message when a required variable is missing.
  • Keep startup light: connect to databases lazily, not at import time.

On ArabyHost

On ArabyHost AI/Developer plans, Node.js 20/24 and Python 3.9 to 3.12 apps run through cPanel’s Setup Node.js App and Setup Python App (CloudLinux selectors with Phusion Passenger). They create the virtual environment and pass the port automatically, so apps must listen on process.env.PORT. Memory per account is limited by the plan. If the log isn’t clear, Araby AI in the panel reads the error log and explains the fix. Full walkthroughs: Node.js and Flask.

FAQ

Where do I find the Passenger log?

On cPanel, the app's page in Setup Node.js App or Setup Python App has a log file field; if it's empty, set a path such as `/home/USER/logs/myapp.log` and restart. Some servers also write an `stderr.log` file in the app's folder.

How do I restart a Passenger app?

Click Restart on the app's page in cPanel, or create the file `tmp/restart.txt` in the app's root (`touch tmp/restart.txt`). Passenger reloads the app on the next request.

Can I run FastAPI under Passenger?

Passenger on cPanel loads Python apps through WSGI, while FastAPI is ASGI. Wrap it with an adapter such as `a2wsgi` in `passenger_wsgi.py` and keep long-running work out of request handlers.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.