get-got / discord-downloader-go

A Discord bot program to download and otherwise handle files sent in Discord channels with extensive configuration. Can be used as a genuine Discord Bot or user account / self-bot
MIT License
277 stars 31 forks source link

Bots Crashing With Multiple Instances #145

Closed BigFlubba closed 3 months ago

BigFlubba commented 3 months ago

I am using all real bots and they are all sharing the same cache, database, and log directories. I am running 10 instances at once each in charge of 5 channels each on a different server. Each has their on config files. They are all crashing at once and last i looked at the logs they crashed while all of them doing an auto history run. The last interesting message I got on one of the bots was this then everything crashed. none of the rest of them had anything out of the ordinary.

2024/06/13 14:01:53 history.go:427:     > [History] 978799777997262918/AUTORUN: Tried to edit status message but it doesn't exist, sending new one.

After relaunching any bot after they all crash I have to manually delete the database for them to work again. They seem to crash randomly and one may survive, but also none of them will. I also tested it with jut one instance running and it ran with no issues for 3 hours and it got over 500 messages downloaded.

get-got commented 3 months ago

This is the same issue as here: https://github.com/get-got/discord-downloader-go/issues/144

There is currently no fix.