No runtime logs show up
alasagna
FREEOP

24 days ago

My pipeline is working correctly but I am not getting any runtime logs (which I assume falls under deployment logs, kind of unclear). I have a job queue and a delivery worker that is quite noisy and is set to print status whenever it does anything. I can check the queue as well and I can see that the status of the job is completed. Any idea on why I'm not getting any logs?

Solved$10 Bounty

Pinned Solution

domehane
FREETop 5% Contributor

24 days ago

Hello alasagna,

your buffering theory is legit, railway only captures what actually gets written to stdout/stderr, so if your output is buffered and never flushed before the process ends, railway never sees it.

so the fix depends on your language/runtime, you need to make sure your stdout is set to unbuffered or that you're explicitly flushing after each log, also worth checking: railway drops logs if you exceed 500 lines per second per replica, so if your worker is very noisy you might be hitting that limit silently

8 Replies

Status changed to Open Railway 24 days ago


Is there something in your codebase that filters out such logs in a production environment?


0x5b62656e5d

Is there something in your codebase that filters out such logs in a production environment?

alasagna
FREEOP

24 days ago

I don't believe so. Only thing I can think of is my outputs are buffered, and something went wrong between the error and the log being created. Do you think that's a real possibility?


domehane
FREETop 5% Contributor

24 days ago

Hello alasagna,

your buffering theory is legit, railway only captures what actually gets written to stdout/stderr, so if your output is buffered and never flushed before the process ends, railway never sees it.

so the fix depends on your language/runtime, you need to make sure your stdout is set to unbuffered or that you're explicitly flushing after each log, also worth checking: railway drops logs if you exceed 500 lines per second per replica, so if your worker is very noisy you might be hitting that limit silently


domehane
FREETop 5% Contributor

24 days ago

what language are you using? that'll help narrow down the exact fix


alasagna
FREEOP

24 days ago

It's entirely in python. I just unbuffered my error messages but I'm still not getting any runtime logs.


alasagna

It's entirely in python. I just unbuffered my error messages but I'm still not getting any runtime logs.

alasagna
FREEOP

24 days ago

Thank you for taking the time to help me with this btw.


alasagna
FREEOP

24 days ago

Ah! Nevermind. Unbuffering fixed it. Was just a slight delay.


domehane
FREETop 5% Contributor

24 days ago

glad it works


Status changed to Solved brody 24 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...