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.jsset while the code starts fromserver.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
applicationobject inpassenger_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
-
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. -
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" -
Check the startup file and root on the app’s page against your real file names.
-
Install the dependencies with Run NPM Install or Run Pip Install (Python needs
requirements.txtadded under Configuration files). -
Node.js: listen on the port Passenger gives you:
const port = process.env.PORT || 3000; app.listen(port); -
Python: expose
applicationinpassenger_wsgi.py:from app import app as application # Flask # from mysite.wsgi import application # Django -
Add missing variables in the app’s environment variables section.
-
Restart with the Restart button, or
touch tmp/restart.txtin 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.