Service just stops working for no apparent reason
aviroshkovan4
HOBBYOP

a year ago

Hello everyone,

I have been working with railway for a while. I'm on the hobby track.

Many times services that I upload (in Python, for example) start working and at a certain point simply stop. We have neat logs that we can see. The service is supposed to work 24/7 and it can suddenly stop for no particular reason.

Other cases are when I upload a service, I see blogs starting container and there it gets stuck. Servers that already worked and ran and if I upload them again they get stuck.

Has anyone experienced this?

20 Replies

brody
EMPLOYEE

a year ago

Hello,

"stuck" or "it stops" are very vague terms, could you please describe the issue in detail, in practice what happens when your app gets "stuck" ?

Request timeouts? error codes?


aviroshkovan4
HOBBYOP

a year ago

Zero errors

Just freeze, I see the logs not printing any thing new.

There are some times that I am deploying something and it just get freeze after 3-4 lines of logs.

When I run in locally everything is good.


brody
EMPLOYEE

a year ago

I'm sorry but "Just freeze" is too vague for us to help you with.

Either way, this would be an application level issue, so there isn't all that much we can help with regardless, besides some common tips, though we can't give you any tips without knowing what's actually happening.


aviroshkovan4
HOBBYOP

a year ago

What do yo want to see?


brody
EMPLOYEE

a year ago

For starters, I'd need a link to the service.


aviroshkovan4
HOBBYOP

a year ago

how i can copy the link of a service? should i open a new thread?


brody
EMPLOYEE

a year ago

Copy the URL + Paste the URL. No new thread needed.


aviroshkovan4
HOBBYOP

a year ago

https://railway.app/project/810e874a-722d-4846-affa-89341b0ed0f3/service/01c13eeb-e943-4348-881b-928334c14fa3

as you can see it stuck on starting container,

i threw some prints just to check if it works and its not.

would appreciate any help


brody
EMPLOYEE

a year ago

Please share your repo.


brody
EMPLOYEE

a year ago

Please do not open duplicate threads.


aviroshkovan4
HOBBYOP

a year ago

It’s private, please let’s talk on the second thread.


brody
EMPLOYEE

a year ago

The duplicate thread was removed.

Given that this is an application level issue and not a platform issue we would need to see your repo or a minimal reproducible example to be of help here.


aviroshkovan4
HOBBYOP

a year ago

I understand that but I can’t share here a repo. I will send in to you privately with no problems.

How did you decided that it’s an application problem?


brody
EMPLOYEE

a year ago

The deployment is listed as running, and it's gathering non zero metrics.

You can add me to your repo, my GitHub is brody192.


aviroshkovan4
HOBBYOP

a year ago

added you, let me know if you find something problematic.

thanks a lot


brody
EMPLOYEE

a year ago

Between the from and workdir lines add ENV PYTHONUNBUFFERED=1


aviroshkovan4
HOBBYOP

a year ago

What it does?


aviroshkovan4
HOBBYOP

a year ago

And it should be added in the main.py?



eyalroshkovan
TRIAL

a year ago

Hey, I've tried adding this line to the dockerfile, unfortunately it's still stuck, do you have any idea on how to make this work ?


Loading...