Repeated Logs
When I run railway, the logs keep repeating as if the bot is restarting, however when I run my docker container locally, I don't have this issue.
Could this be a railway issue or is it an issue on my end?
30 Replies
Project ID:
6faf4c55-b612-44fb-9f25-1ae86f7c17be
6faf4c55-b612-44fb-9f25-1ae86f7c17be
Try checking "Replica ID" in the log preferences.
Hide replica ID?
I don't see any other setting for replica ID
Oh wait never mind that's a beta thing
hmm, weird
Are you sure your app isn't erroring?
Railway will restart it a certain number of times if it crashes.
I don't see any errors though
I'm running local and railway at the same time now, and this is the difference
Did the app stop after 4-5 restarts?
Never mind
I see a TypeError
I can wait and see if it stops on it's own if that helps
Yeah there's that error however that shouldn't crash the program because it's still running locally
Unless railway handles that different
No, it shouldn't
weird
The code for this project is a mess, so maybe it's something on my end. I just thought it strange that the startup code repeated on railway and not local
Okay, after some testing it doesn't seem to stop after 4-5 restarts. I will leave it running and see what happens. Do you think I should create a support ticket through railway so it's easier to look into?
What do you mean, create a support ticket through railway?
Also, is the bot not working?
Bacause, if it's working nontheless, I wouldn't worry
Oh I assumed submitting a report created a ticket nvm then
As to whether it works I'm just testing something and then I can answer that
Okay after some testing, this is correct. The bot is not working due to the bug, it's not just a display issue. The problem is that the bot seems to restart completely when this happens, so any functions that were running get cut off in the middle
It restarts properly at least, so if you run a one off command quickly it works, however the problem is when running commands that take some time because they'll never finish before it restarts
It keeps having memory spikes, is it possible that the code is using up too much memory and causing crashes?
That's entirely possible. Let me look for the solution.
Okay thanks
What language/framework are you using?
Python with disnake
It’s a fork of discordpy
Huh, it looks like python doesn't have a memory cap, so I'm not sure what's going on here
I guess it's time to flag this ticket for the team
Flagging this thread. A team member will be with you shortly.
Sounds good, thank you
Let me know if you need more info from me
(Tagging myself in here so I can take a look when I have time)
your bot is likely crashing when it reaches the memory cap
upgrading to the dev plan will solve this as the limit will increase to 8gb
ah you have the dev plan already
you have to redeploy your app for the new limits to take effect. Looks like you’re still using the free plan limits
bed time adam
what
youre tired
no
I see where the confusion was I think, I have dev plan on my personal account but this project was deployed on someone else's account so it doesn't have dev plan yet.
Thank you for the help!