R
Railway9mo ago
dan

Unknown errors in logs

I was viewing my logs randomly and I noticed some strange errors that don't relate much to anything my bot does. Are these errors from railway and should I be worried?
13 Replies
Percy
Percy9mo ago
Project ID: N/A
dan
dan9mo ago
N/A Wait why did I say N/A 4d567c55-5247-4e54-8899-ae3cd121045f Crap
dan
dan9mo ago
Here's a screenshot:
No description
Brody
Brody9mo ago
theses are from your app, railway itself does not log anything in the deployment logs
dan
dan9mo ago
I see. I've never seen errors like these before so it's incredibly strange to me. From what I can see the process ran out of memory. I'll investigate more to make sure it isn't a memory leak
Brody
Brody9mo ago
you can always check the metrics tab of the service
dan
dan9mo ago
Right, I did. Out of nowhere the memory just blasted to 5 gb. I checked the debug logs my bot has and for whatever reason an evaluation occurred that was evaluating something as stressful as for (;;) {}. This wasn't done through a command because there are no logs of eval being ran. Overall an extremely weird situation but I'll enable further debugging and possibly find out the issue. What makes it weirder is the fact that the bot hadn't received any commands for 10 minutes before this happened and logged to never receive any even after the jump Thanks for the help anyway
Brody
Brody9mo ago
that is indeed very weird
dan
dan9mo ago
The good thing is that it lasted for about a minute and no more. It would've been bad if it lasted more because it would've increased my monthly cost by quite a bit, Not to mention that I wouldn't have known anything had I not checked the console
Brody
Brody9mo ago
you can always set a spend limit
dan
dan9mo ago
I did that the second I signed up for the platform, no worries I figured out what the issue was. My own system to prevent failures backfired on me. I tried to evaluate something about 7 days prior and it failed bc I pushed a change to GitHub which made the bot auto deploy. The failure was stored in the db and the bot executed it itself after the check I do every 7 days for failed commands, causing the load to spike up because it was a really stressful evaluation of the database... I should probably add an exception for commands like eval when it comes to failures :/
Brody
Brody9mo ago
interesting
dan
dan9mo ago
Not my wisest moment, It could've caused a lot of issues It's meant to try and resolve issues with things like unbanning users once the duration expires (if it fails to initially) and some other infraction related things Anyway, u can close this post now, it's all good
Want results from more Discord servers?
Add your server