riking / AutoDelete

A Discord bot that automatically deletes all messages in a designated channel on a rolling basis
Apache License 2.0
327 stars 118 forks source link

"Encountered error, settings may or may not have saved." #49

Open aaroninnyc opened 2 years ago

aaroninnyc commented 2 years ago

After I to the start command I get this:

Encountered error, settings may or may not have saved. open ./data/1031004874697097297.yml: too many open files

The message from the bot stating that messages will be deleted automatically is in the channel but deletes do not happen.

Screen Shot 2022-10-16 at 6 45 44 PM
PKollenborg commented 2 years ago

Seeing the same issue. Removing the bot and re-adding it did nothing.

Autodelete_bug
adamgell commented 2 years ago

+1

same error as Aaron

omexlu commented 2 years ago

Jap, me to and seems the bot Not deleting Something since few days.

coralyney commented 2 years ago

Same problem

omexlu commented 2 years ago

@riking Please keep a look and fix it :)

Thanks.

PKollenborg commented 2 years ago

Ok, issue is confirmed present due to the bot hitting global limits by statement of the dev in the discord server. Discord would have to fix it by increasing them. Self-hosting the bot using the docker config solved the problem for now.

derula commented 1 year ago

Ok, issue is confirmed present due to the bot hitting global limits by statement of the dev in the discord server. Discord would have to fix it by increasing them.

Are you sure it's a Discord issue? Sounds like a bot issue to me, or an issue caused by another process on the server where it's hosted. Here's info on the "too many open files" problem in general: https://www.howtogeek.com/805629/too-many-open-files-linux/ While the limit can be increased, getting this error often points to a real problem, for example, file handles being opened and not closed again.

Edit: The overall issue with this bot (and others like it) might well be a Discord issue with self-hosting being the only solution, I'm just talking about this particular error message.