Does the server goes offline after a period of inactivity?

blockfulintern
PRO

a year ago

Hello Railway community,

I'm facing an issue with my server hosted on Railway. My server is designed to listen for a specific event that occurs roughly every two months and then execute some logic based on that event.

About a week ago, the event was triggered, but the expected logic did not execute. If I manually trigger the event shortly after deploying the server, everything works as expected. However, if the event happens a few weeks after the app starts, nothing happens.

I noticed that after some time, the "Deploy Logs" screen displays a message saying "Log stream has been paused." I'm wondering if the Railway server itself goes offline after a period of inactivity, or if it's just the log stream that gets paused.

Any insights or suggestions would be greatly appreciated!

Thank you,

Solved

4 Replies

a year ago

Railway does not put applications to sleep unless you specifically have that enabled in your service settings, and that setting is always initially disabled by default.

The log stream has been paused is purely just the log streaming websocket connection in your browser being closed due to inactivity on the dashboard and has nothing to do with your application itself.

As for why your application did not run the logic it was supposed to based on the event, I honestly couldn't tell you, to aid in finding out why I would strongly recommend adding some verbose debug logging to help you narrow down what your code is or isn't doing and then that can hopefully help you find the issue.


a year ago

Unfortunately we do not shutoff your application, what protocol are you trying to connect to your application with?


blockfulintern
PRO

a year ago

Hello Brody and Angelo,

Thank you both for your quick and helpful responses!

I appreciate the clarification that Railway doesn't shut down applications due to inactivity. It's good to know that the "Log stream has been paused" message is simply a browser-related issue and not indicative of any problems with the server itself.

Rest assured, I'm actively investigating the issue with my application's logic not executing as expected. I'll be adding more verbose logging as suggested to help pinpoint the cause.

Thanks again for your assistance!

Best regards,

blockfulintern


Status changed to Awaiting Railway Response railway[bot] 11 months ago


a year ago

Awsome, let us know if you need any help with anything!


Status changed to Solved ray-chen 11 months ago


Does the server goes offline after a period of inactivity? - Railway Help Station