Server logs?

I am wondering how to inspect the application server logs. Doing railway logs just tails the most recent deployment's logs. Thank you.
38 Replies
Percy
Percy2y ago
Project ID: N/A
Niccolò
NiccolòOP2y ago
N/A
Percy
Percy2y ago
It seems that server logs are taking a long time to appear or not showing up at all. It appears that the issue is related to the ReactDevTools extension and that there is a 3-minute delay on the dashboard.
⚠️ experimental feature
Niccolò
NiccolòOP2y ago
Not really my use case.
Finn
Finn2y ago
you can view them on the website or do you need to see them via the cli?
Niccolò
NiccolòOP2y ago
the website would be fine but where exactly?
Brody
Brody2y ago
click on the desired deployment then click on tab for what type of logs you want to view
Niccolò
NiccolòOP2y ago
The deploy logs are not tailing the application server for some reason. But the problem may be on my side, not yours.
Brody
Brody2y ago
are you wanting to view logs from an older deployment in this scenario?
Niccolò
NiccolòOP2y ago
I am interested only in the current deployment
Brody
Brody2y ago
then railway logs or in the UI
Niccolò
NiccolòOP2y ago
in the UI is fine
Brody
Brody2y ago
what shows up in the cli?
Niccolò
NiccolòOP2y ago
same as the UI I am using gunicorn as http server
Brody
Brody2y ago
okay so what seems to be the problem?
Niccolò
NiccolòOP2y ago
I think it's on my side actually
Brody
Brody2y ago
???
Finn
Finn2y ago
LOL
Niccolò
NiccolòOP2y ago
maybe gunicorn should be configured to show logs but it's weird I should at least get something in the deployment logs
Brody
Brody2y ago
you might be running into the python buffered logs issue but just not explaining things correctly
Niccolò
NiccolòOP2y ago
I am thinking about it right here with you Let me recap I am visiting the Deploy Logs from either the CLI / UI I'd expect to see some kind of output from the application server but I don't
Brody
Brody2y ago
set PYTHONUNBUFFERED = 1
Niccolò
NiccolòOP2y ago
Ok, let me try.
Brody
Brody2y ago
then don't say things are fine like you've previously stated
Niccolò
NiccolòOP2y ago
I never said things are fine 🙂 I said that the problem might have been on my side
Brody
Brody2y ago
^^
Niccolò
NiccolòOP2y ago
and that I am not seeing anything in the logs because I might need to turn on logs in the app server No, I was just answering your question about where I would have preferred seeing the logs. "The UI is fine" means "I prefer the UI, thank you". You asked a question. 😄
Brody
Brody2y ago
mhm
Niccolò
NiccolòOP2y ago
I am going to try the environment variable you just suggested. I added the env var to the Django service, automatic redeploy kicked in, but to no avail.
Brody
Brody2y ago
proof?
Niccolò
NiccolòOP2y ago
Niccolò
NiccolòOP2y ago
I wonder why it's not showing gunicorn's welcome screen or whatever it is the one that precedes the server loop
Brody
Brody2y ago
have you setup any kind of logger or changed any logging levels?
Niccolò
NiccolòOP2y ago
doing it right now
Brody
Brody2y ago
that was just a question
Niccolò
NiccolòOP2y ago
Yes, I realized I set gunicorn to be just "warnings" in the start command.
Brody
Brody2y ago
yep that would do it keep that env variable in there for good measure though
Niccolò
NiccolòOP2y ago
alright, thank you.
Want results from more Discord servers?
Add your server