Restarting a discord bot with "quick.db" overloads the memory


#1

Hello! Over the past couple of days I’ve been loving glitch’s accessibility. However, I noticed yesterday that my bot was down and went to take a look, with no errors I ran the “refresh” command, after that I was flooded with this error

/app/node_modules/bindings/bindings.js:96

throw err

^

Error: Could not locate the bindings file. Tried:

→ /app/node_modules/better-sqlite3/build/better_sqlite3.node

→ /app/node_modules/better-sqlite3/build/Debug/better_sqlite3.node

→ /app/node_modules/better-sqlite3/build/Release/better_sqlite3.node

→ /app/node_modules/better-sqlite3/out/Debug/better_sqlite3.node

→ /app/node_modules/better-sqlite3/Debug/better_sqlite3.node

→ /app/node_modules/better-sqlite3/out/Release/better_sqlite3.node

→ /app/node_modules/better-sqlite3/Release/better_sqlite3.node

→ /app/node_modules/better-sqlite3/build/default/better_sqlite3.node

→ /app/node_modules/better-sqlite3/compiled/8.12.0/linux/x64/better_sqlite3.node

at bindings (/app/node_modules/bindings/bindings.js:93:9)

at Object.<anonymous> (/app/node_modules/better-sqlite3/lib/database.js:4:40)

at Module._compile (module.js:653:30)

at Object.Module._extensions..js (module.js:664:10)

at Module.load (module.js:566:32)

at tryModuleLoad (module.js:506:12)

at Function.Module._load (module.js:498:3)

at Module.require (module.js:597:17)

at require (internal/module.js:11:18)

at Object.<anonymous> (/app/node_modules/better-sqlite3/index.js:2:18)

After removing going through all my packages and ruling them out I found that “quick.db” seems to be the issue. So I removed it and readded it. It wet to reinstall and errored out because of a memory issue trying to install “better-sqlite3”. No idea what to do in this situation. I’m unable to do any testing or use my projects because of this.


#2

Try running pnpm rebuild in the console


#3

Hey there @evilpauwse1,

If you still have errors with the quick.db, I strongly recommend joining the Plexi Development Team as they are the owners of the quick.db NPM.

Here is the invite: https://discord.gg/QsvsdwN

Let me know if this helped.