#My bot keeps crashing and I don't know why.

1 messages · Page 1 of 1 (latest)

arctic thorn
#

My bot keeps crashing and I don't know why, my bot runs fine for like 12 hours, but then it crashes, is there some sort of verbose mode which I can then log to a file?

Thanks for any responses,

Cookie

calm bolt
#

is it crashing, or the process being killed

fierce folio
#

If it's only happen in the hosting service then I'm pretty sure the hosting service is killing the process

arctic thorn
#

I want to track logs or something.

calm bolt
#

could just be running out of memory and the kernel kills the process

arctic thorn
#

Is there anyway I can track this?

cold elk
arctic thorn
#

AWS lightsail.

arctic thorn
arctic thorn
#

Ok.

#

Update.

#

Only the bot stop.

#

*stops

#

The server doesn't actually crash.

fathom lintel
#

a code u have it is a blocking

cold elk
#

Hmm, even so there would be a traceback pointing to error

#

if an async function is not awaited, it will raise a warning

#

What I suspect is the maybe the memory allocated for that instance is low and the bot uses it all up and when tries to use more, it just crashes.

arctic thorn
cold elk
#

How much memory have you allocated in your instance

#

and how large is your bot ( server wise )?

arctic thorn
#

Memory allocated to the server is..

#

512mb

#

And I think I've found the issue

cold elk
arctic thorn
#

Agreed.

#

Especially as this is a bot I only allow certain people to have.

cold elk
#

Although it depends upon your bot, how resource intensive it is

arctic thorn
#

Mmm, I have 3 other bigger instances. IU reckon I could experiment with a 1gb ram instance and see how it goes.

cold elk
#

Well you could monitor the memory usage of your bot process and see what its max is, if it exceeds 512mb, it will cause a crash

cold elk
arctic thorn
#

This bot also runs intensive things.

#

Alright, that sounds like a plan.

#

I appreciate the help man.

cold elk
#

No problem

arctic thorn
#

Are you aware of the solved command? :-) - Found it. 😆