R
Railway2y ago
Logan

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
Percy
Percy2y ago
Project ID: 6faf4c55-b612-44fb-9f25-1ae86f7c17be
Logan
LoganOP2y ago
6faf4c55-b612-44fb-9f25-1ae86f7c17be
root
root2y ago
Try checking "Replica ID" in the log preferences.
Logan
LoganOP2y ago
Hide replica ID?
Logan
LoganOP2y ago
I don't see any other setting for replica ID
root
root2y ago
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.
Logan
LoganOP2y ago
I don't see any errors though
Logan
LoganOP2y ago
I'm running local and railway at the same time now, and this is the difference
root
root2y ago
Did the app stop after 4-5 restarts? Never mind I see a TypeError
Logan
LoganOP2y ago
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
root
root2y ago
No, it shouldn't weird
Logan
LoganOP2y ago
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?
root
root2y ago
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
Logan
LoganOP2y ago
Oh I assumed submitting a report created a ticket nvm then
Logan
LoganOP2y ago
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
Logan
LoganOP2y ago
It keeps having memory spikes, is it possible that the code is using up too much memory and causing crashes?
root
root2y ago
That's entirely possible. Let me look for the solution.
Logan
LoganOP2y ago
Okay thanks
root
root2y ago
What language/framework are you using?
Logan
LoganOP2y ago
Python with disnake It’s a fork of discordpy
root
root2y ago
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
Percy
Percy2y ago
Flagging this thread. A team member will be with you shortly.
Logan
LoganOP2y ago
Sounds good, thank you Let me know if you need more info from me
Ray
Ray2y ago
(Tagging myself in here so I can take a look when I have time)
Adam
Adam2y ago
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
Brody
Brody2y ago
bed time adam
Adam
Adam2y ago
what
Brody
Brody2y ago
youre tired
Adam
Adam2y ago
no
Logan
LoganOP2y ago
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!
Want results from more Discord servers?
Add your server