SideProjectGuys / invite-manager-bot

A discord bot that tracks invites and much more
https://docs.invitemanager.co/
GNU General Public License v3.0
166 stars 136 forks source link

Bot not Saving options set using !config #182

Open NoobKeksTV opened 3 years ago

NoobKeksTV commented 3 years ago

So i have the Bot running in "custom" mode and it started u and works . But after some time It resets itself and all my changes made to my settings like hte invite message channel, the message , etc. are gone and it doesnt do that.- I dont restart the bot cause i have it running in a screen. Anything i missed here?

NoobKeksTV commented 3 years ago

and now for some reason it stopped wrking at all. it does open me the Config menue but if i enter a channel for it it just stops reacting. no error message in console.

Debian 10 buster, lastest npm packages, fresh install

chaun14 commented 3 years ago

Check if values are save in the db with phpmyadmin.

NoobKeksTV commented 3 years ago

i dont have phpmyadmin.-- but yeah. which values should i check for?

I got this error today after the bot didnt respond at all

BOT HAS ALREADY STARTED, IGNORING EXTRA READY EVENT EVENT(guildMemberAdd): 573937998820016148 Offizieller EgoPvP.com Community Discord 722528878404436004 Machmut-Alberty#3277 syncDB: 17.495ms

<--- Last few GCs --->

[1736:0x236d750] 82193967 ms: Mark-sweep 1398.8 (1423.0) -> 1398.4 (1423.0) MB, 575.6 / 0.0 ms (average mu = 0.120, current mu = 0.001) allocation failure scavenge might not succeed [1736:0x236d750] 82194541 ms: Mark-sweep 1399.1 (1423.0) -> 1398.7 (1423.5) MB, 573.3 / 0.0 ms (average mu = 0.064, current mu = 0.001) allocation failure scavenge might not succeed

<--- JS stacktrace --->

==== JS stack trace =========================================

0: ExitFrame [pc: 0x117c8d05452b]

Security context: 0x04b29992ede9 1: exec [0x4b299938db1](this=0x2176db66b0d1 <JSRegExp <String[22]: [\0\b\t\n\r\x1a\"\'\]>>,0x16e9d4c02201 <Very long string[69094321]>) 2: escapeString [0x2176db66b169] [/home/discord/invite-bot/node_modules/sqlstring/lib/SqlString.js:~196] [pc=0x117c8d123ec2](this=0x2872a69884d9 ,val=0x16e9d4c02201 <Very long string[69094321]>) ...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 0x7fea7ca0f328 node::Abort() [/lib/x86_64-linux-gnu/libnode.so.64] 2: 0x7fea7ca0f371 [/lib/x86_64-linux-gnu/libnode.so.64] 3: 0x7fea7cbf0832 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [/lib/x86_64-linux-gnu/libnode.so.64] 4: 0x7fea7cbf0a88 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [/lib/x86_64-linux-gnu/libnode.so.64] 5: 0x7fea7cf7f7b2 [/lib/x86_64-linux-gnu/libnode.so.64] 6: 0x7fea7cf90203 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64] 7: 0x7fea7cf90af6 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64] 8: 0x7fea7cf9323d v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64] 9: 0x7fea7cf93292 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64] 10: 0x7fea7cf61bf4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/lib/x86_64-linux-gnu/libnode.so.64] 11: 0x7fea7d1cc4e5 v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object*, v8::internal::Isolate) [/lib/x86_64-linux-gnu/libnode.so.64] 12: 0x117c8d05452b

[screen is terminating]

NoobKeksTV commented 3 years ago

so i reinstalled my DB and now the bot accepted my invite channel again and set all the values i think? (it hasnt fronzen up yet.)

I just checked the Db and it saved everything according to my guild id.

NoobKeksTV commented 3 years ago

BUT after a restart of the bot, it wont show me the changes i made if i do !config again...

So it didnt load it?

It also says this on startup:

Requesting 12 guilds in parallel during startup Scheduling 0 actions from DB Client ready! Serving 1 guilds. Updated invite count for Offizieller EgoPvP.com Community Discord Pending: 0/1

Its only in 1!! guild. its a private bot