Crash but no Deploy Logs
Hi,
I tried uploading my django4 project but it crashes everytime right after it says to have launch successfully.
The logs don't provide any insight.
"
No deployment logs. All output sent to stdout will be displayed here"
Any ideas?
17 Replies
Project ID:
N/A
You might find these helpful:
- How to add Rust-project when using GitLab?
- at a loss for what the issue could be
⚠️ experimental feature
N/A
is there anything in the build log?
It seems that all requirements have been loaded.
=== Successfully Built! ===
And stuff.
Now there is an error after I set debug to false (though there are no Allowed hosts yet. I guess I have to give it the generated link?
Error:
Operations to perform:
Apply all migrations: admin, auth, contenttypes, databank, sessions
Running migrations:
No migrations to apply.
/bin/bash: line 1: gunicorn: command not found
for the allowed hosts array you can use the environment variable
RAILWAY_STATIC_URL
and for gunicorn not being found, add it to your requirements.txt fileRight now the generated link shows a not found http response.
The Deploy Logs provide this:
Operations to perform:
Apply all migrations: admin, auth, contenttypes, databank, sessions
Running migrations:
No migrations to apply.
[2023-03-19 15:24:51 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-03-19 15:24:51 +0000] [1] [INFO] Listening at: http://0.0.0.0:6348 (1)
[2023-03-19 15:24:51 +0000] [1] [INFO] Using worker: sync
[2023-03-19 15:24:51 +0000] [12] [INFO] Booting worker with pid: 12
Where would I find the RAILWAY_STATIC_URL when navigating railway.app?
environment variable RAILWAY_STATIC_URL
you access that environment variable in code
sometimes railways proxy is a little slow without a healthcheck, so just refresh, since gunicorn did start and started on the correct host / portSorry, I'm a bit slow.
Completely new to this.
I reloaded the page a few times but There is still a
"Not Found
The requested resource was not found on this server." - Error
The RAILWAY_STATIC_URL still goes over my head. I'll have to read into that.
Is the Not Found related to that?
Right now my settings look like this:
DEBUG = False
ALLOWED_HOSTS = ["groelle-lagerde-production.up.railway.app"]
While the Allowed host is the generated Domain from reailway.app
you don't know what environment variables are?
but either way you have manually put the domain in so that would achieve the same result
do you have a Procfile?
Nope, never heard of that one.
If you can point me to a reliable source that explains all necessary steps to deploy a django project on railway I will stop getting on your nerves x)
lol you're not on my nerves dw, I'm here to help, I'm just not well versed in Django and how it works
here is the railway provided template for Django, have a look at it's procfile, and settings.py
https://github.com/railwayapp-templates/django
Hm unfortunately after adding every missing piece from that template it is still giving the not found response.
can you send me the railway domain
As in the link that is supposed to link to the website or...?
That would be this one: https://groelle-lagerde-production.up.railway.app/
ah cool, so railway is proxing traffic to your app, your app just isn't responding
Hmmm