R
Railway•6mo ago
TheJoker

[CRITICAL] WORKER TIMEOUT (pid:13) error

My app builds OK and deploys but I notice static files in Console/Network are pending, then once they load in my Railway Deploy logs I get
[12] [CRITICAL] WORKER TIMEOUT (pid:13)

[13] [INFO] Worker exiting (pid: 13)

[12] [ERROR] Worker (pid:13) exited with code 1

[12] [ERROR] Worker (pid:13) exited with code 1.

[14] [INFO] Booting worker with pid: 14
[12] [CRITICAL] WORKER TIMEOUT (pid:13)

[13] [INFO] Worker exiting (pid: 13)

[12] [ERROR] Worker (pid:13) exited with code 1

[12] [ERROR] Worker (pid:13) exited with code 1.

[14] [INFO] Booting worker with pid: 14
Is it timing out whilst trying to load my static files? The site is also incredible slow to load betwenn requests. Site is being buit via this railway.json, i've tried adding timeout command to gunicorn as I read that may solve the problem but not 100% of syntax within a json file
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python"]
}
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn mysite.wsgi"
}
}
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python"]
}
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn mysite.wsgi"
}
}
7 Replies
Percy
Percy•6mo ago
Project ID: 175edb31-fcdb-4550-a1d8-3f56f4ed6301
TheJoker
TheJoker•6mo ago
Project id - 175edb31-fcdb-4550-a1d8-3f56f4ed6301
Brody
Brody•6mo ago
could be related #🚨|incidents
TheJoker
TheJoker•6mo ago
I'll try again in morning Still the issue, is there a way to add flags (increase timeout, add —debug) to gunicorn command in the railway.json to help debug this?
Brody
Brody•6mo ago
yeah just add it --timeout 600
TheJoker
TheJoker•6mo ago
adding --threads 3 seems to have solved this.
Brody
Brody•6mo ago
awesome
Want results from more Discord servers?
Add your server
More Posts
What is the best way to have my server restart at a particular time every day?I want one of my servers to restart at 2AM every morning. What is the best way to make this happen oDjango deployment strategy for serving mediaHello! I'm currently dealing with an issue regarding how to serve media from a Django application. Migrated Postgres using migration tool, app now fails to deployI used the migration tool to go from Postgres legacy plugin to the database service. The migration c${{Postgres.PRIVATE_DATABASE_URL}} connection fails, but ${{Postgres.DATABASE_URL}} works${{Postgres.PRIVATE_DATABASE_URL}} connection fails, but ${{Postgres.DATABASE_URL}} works project iSupport emails bouncingHey there, I'm on a Pro plan and having an issue. I sent an email to support@railwayapp.com yesterdaAny way to prevent existing apps from restarting when scaling up?I have a use case where getting a service/app going takes a bit of effort. Essentially there will beStatic files not workingThis is related to a Django problem where Railway isn't collecting my static files on deployment, i Does railway observability support for log level=warning ?I have a NodeJs / svelte kit project and I am using just the standard console logs. All the `consoleHas anyone deployed a Dart Frog API?Searching through the Discord, it doesn't look like anyone has posted about Dart Frog. I'd love to mHelp needed to deploy Hugo appDoes anyone have a resource on how to deploy Hugo on railway. It doesn’t detect it automatically and