"Deployment failing with 'waitress-serve: command not found' error despite correct configuration"
kiimleo
TRIALOP

2 years ago

I am experiencing deployment issues with my Django application on Railway. Here's the situation:

Configuration:

Start Command: python -m waitress --port=$PORT --call pesticide_project.pesticide_project.wsgi:application

Procfile contains: web: python -m waitress --port=$PORT --call pesticide_project.pesticide_project.wsgi:application

waitress is included in requirements.txt

Added health check endpoint in Django application

Error Messages:

The deployment fails with the following errors in Deploy Logs:

Starting Container

/bin/bash: line 1: waitress-serve: command not found

container event container died

container event container restart

What I've tried:

Confirmed waitress is in requirements.txt

Tried different command variations (including using python -m)

Verified project structure and WSGI path

Added proper health check endpoint

The build process completes successfully, but the service fails to start. Any assistance in resolving this deployment issue would be greatly appreciated

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

2 Replies

2 years ago

Your overwriting the Procfile in the start command within the service settings -

Attachments


kiimleo
TRIALOP

2 years ago

very helpful.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...