#Error issues

1 messages · Page 1 of 1 (latest)

tranquil zinc
#

So basically Im trying to run my bot and I am so lost with these error messages someone help

jagged wraith
tranquil zinc
#

just in the container

jagged wraith
#

do you have that folder anywhere

tranquil zinc
jagged wraith
# tranquil zinc

Try moving everything in here out into the root directory except the node_modules folder

tranquil zinc
#

so just copy everything and paste it into my container

jagged wraith
#

yes

tranquil zinc
jagged wraith
#

yea? what else

tranquil zinc
#

thats all good?

jagged wraith
#

dude stop asking at every step and just try and run it

tranquil zinc
#

god damn

#

my bad brochacho

jagged wraith
#

this is your bot, not mine, you should know how it works

#

all i can do is guess where everything goes

tranquil zinc
#

me too

#

06-23 02:39:42 [PebbleHost Loader]: PebbleHost Bot Loader now starting...
06-23 02:39:42 [PebbleHost Loader]: Running loader version Bot-1.2.2
06-23 02:39:42 [PebbleHost Loader]: Checking for Configured Reverse Proxy...
06-23 02:39:42 [PebbleHost Loader]: Attempting to boot with the following settings: SERVER ID: 1057186, MEMORY: 1024M
06-23 02:39:42 [PebbleHost Loader]: Found package.json
06-23 02:39:42 [PebbleHost Loader]: Node version v23.1.0
06-23 02:39:42 [PebbleHost Loader]: Updating NPM packages (command output is in logs/2025-06-23_02-39-41.txt)...
06-23 02:39:42 [PebbleHost Daemon]: Server marked as running
06-23 02:39:43 [PebbleHost Loader]: Checking if 'npm start' command is set up in package.json
06-23 02:39:43 [PebbleHost Loader]: Found 'npm start' command, running...
06-23 02:39:43 [PebbleHost Loader]: ----------------------------------------------
06-23 02:39:43 > [email protected] start
06-23 02:39:43 > node index.js
06-23 02:39:43 node:internal/modules/cjs/loader:1249
06-23 02:39:43 throw err;
06-23 02:39:43 ^
06-23 02:39:43
06-23 02:39:43 Error: Cannot find module './structures/Client'
06-23 02:39:43 Require stack:
06-23 02:39:43 - /home/container/index.js
06-23 02:39:43 at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
06-23 02:39:43 at Function._load (node:internal/modules/cjs/loader:1072:27)
06-23 02:39:43 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 02:39:43 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 02:39:43 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 02:39:43 at require (node:internal/modules/helpers:139:16)
06-23 02:39:43 at Object.<anonymous> (/home/container/index.js:2:19)
06-23 02:39:43 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 02:39:43 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 02:39:43 at Module.load (node:internal/modules/cjs/loader:1315:32) {
06-23 02:39:43 code: 'MODULE_NOT_FOUND',
06-23 02:39:43 requireStack: [ '/home/container/index.js' ]
06-23 02:39:43 }
06-23 02:39:43
06-23 02:39:43 Node.js v23.1.0
06-23 02:39:43 [PebbleHost Daemon]: Server marked as offline
06-23 02:39:44 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 02:39:44 [PebbleHost Daemon]: Exit code: 0
06-23 02:39:44 [PebbleHost Daemon]: Out of memory: false
06-23 02:39:44 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

@jagged wraith my error code

jagged wraith
#

Go open your structures folder

#

and show whats in there

tranquil zinc
jagged wraith
#

ok so theres nothing in there

tranquil zinc
#

ya

jagged wraith
#

where did you get the bot from

tranquil zinc
jagged wraith
#

Go ask them where the code is

#

this is not something me or you can solve

tranquil zinc
#

hes sleeping

jagged wraith
#

¯_(ツ)_/¯

jagged wraith
#

your bot is missing code, installing stuff from the internet isn't gonna help

#

you need to ask the person who made it

tranquil zinc
#

@jagged wraith its different from inside file explorer

#

@jagged wraith I moved everything into the folder do I run bot now?

#

i am

#

06-23 02:56:33 > kovd'[email protected] start
06-23 02:56:33 > node index.js
06-23 02:56:33 node:internal/modules/cjs/loader:1249
06-23 02:56:33 throw err;
06-23 02:56:33 ^
06-23 02:56:33
06-23 02:56:33 Error: Cannot find module '../utils/ticketRoutes.js'
06-23 02:56:33 Require stack:
06-23 02:56:33 - /home/container/structures/Client.js
06-23 02:56:33 - /home/container/index.js
06-23 02:56:33 at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
06-23 02:56:33 at Function._load (node:internal/modules/cjs/loader:1072:27)
06-23 02:56:33 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 02:56:33 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 02:56:33 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 02:56:33 at require (node:internal/modules/helpers:139:16)
06-23 02:56:33 at Object.<anonymous> (/home/container/structures/Client.js:8:22)
06-23 02:56:33 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 02:56:33 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 02:56:33 at Module.load (node:internal/modules/cjs/loader:1315:32) {
06-23 02:56:33 code: 'MODULE_NOT_FOUND',
06-23 02:56:33 requireStack: [
06-23 02:56:33 '/home/container/structures/Client.js',
06-23 02:56:33 '/home/container/index.js'
06-23 02:56:33 ]
06-23 02:56:33 }
06-23 02:56:33
06-23 02:56:33 Node.js v23.1.0
06-23 02:56:33 [PebbleHost Daemon]: Server marked as offline
06-23 02:56:33 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 02:56:33 [PebbleHost Daemon]: Exit code: 0
06-23 02:56:33 [PebbleHost Daemon]: Out of memory: false
06-23 02:56:33 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

@jagged wraith issue now?

jagged wraith
#

your missing more files in other directories (this time its utils)

tranquil zinc
# jagged wraith your missing more files in other directories (this time its utils)

06-23 03:07:51 [PebbleHost Daemon]: Server marked as offline
06-23 03:07:51 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 03:07:51 [PebbleHost Daemon]: Exit code: 0
06-23 03:07:51 [PebbleHost Daemon]: Out of memory: false
06-23 03:07:51 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

thats what it gave me

#

mb

jagged wraith
#

that shows nothing

tranquil zinc
#

[email protected] start
06-23 03:12:09 > node index.js
06-23 03:12:09 node:fs:448
06-23 03:12:09 return binding.readFileUtf8(path, stringToFlags(options.flag));
06-23 03:12:09 ^
06-23 03:12:09
06-23 03:12:09 Error: ENOENT: no such file or directory, open './configs/config.yml'
06-23 03:12:09 at Object.readFileSync (node:fs:448:20)
06-23 03:12:09 at Object.<anonymous> (/home/container/utils/ticketRoutes.js:4:30)
06-23 03:12:09 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 03:12:09 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 03:12:09 at Module.load (node:internal/modules/cjs/loader:1315:32)
06-23 03:12:09 at Function._load (node:internal/modules/cjs/loader:1125:12)
06-23 03:12:09 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 03:12:09 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 03:12:09 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 03:12:09 at require (node:internal/modules/helpers:139:16) {
06-23 03:12:09 errno: -2,
06-23 03:12:09 code: 'ENOENT',
06-23 03:12:09 syscall: 'open',
06-23 03:12:09 path: './configs/config.yml'
06-23 03:12:09 }
06-23 03:12:09
06-23 03:12:09 Node.js v23.1.0
06-23 03:12:10 [PebbleHost Daemon]: Server marked as offline
06-23 03:12:10 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 03:12:10 [PebbleHost Daemon]: Exit code: 0
06-23 03:12:10 [PebbleHost Daemon]: Out of memory: false
06-23 03:12:10 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

mb mb

#

config now?

jagged wraith
#

yes

tranquil zinc
jagged wraith
#

?

tranquil zinc
#

[email protected] start
06-23 03:13:36 > node index.js
06-23 03:13:36 node:internal/modules/cjs/loader:1249
06-23 03:13:36 throw err;
06-23 03:13:36 ^
06-23 03:13:36
06-23 03:13:36 Error: Cannot find module '../dashboard/routes/index.js'
06-23 03:13:36 Require stack:
06-23 03:13:36 - /home/container/structures/Client.js
06-23 03:13:36 - /home/container/index.js
06-23 03:13:36 at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
06-23 03:13:36 at Function._load (node:internal/modules/cjs/loader:1072:27)
06-23 03:13:36 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 03:13:36 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 03:13:36 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 03:13:36 at require (node:internal/modules/helpers:139:16)
06-23 03:13:36 at Object.<anonymous> (/home/container/structures/Client.js:9:20)
06-23 03:13:36 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 03:13:36 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 03:13:36 at Module.load (node:internal/modules/cjs/loader:1315:32) {
06-23 03:13:36 code: 'MODULE_NOT_FOUND',
06-23 03:13:36 requireStack: [
06-23 03:13:36 '/home/container/structures/Client.js',
06-23 03:13:36 '/home/container/index.js'
06-23 03:13:36 ]
06-23 03:13:36 }
06-23 03:13:36
06-23 03:13:36 Node.js v23.1.0
06-23 03:13:36 [PebbleHost Daemon]: Server marked as offline
06-23 03:13:37 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 03:13:37 [PebbleHost Daemon]: Exit code: 0
06-23 03:13:37 [PebbleHost Daemon]: Out of memory: false
06-23 03:13:37 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

lemme guess

#

index.js now

#

@jagged wraith

jagged wraith
#

why dont you just try

#

the error logs don;t lie

tranquil zinc
jagged wraith
#

you need dashboard/routes/index.js'

tranquil zinc
jagged wraith
#

its in a different folder

tranquil zinc
#

ohh

#

i got it

#

[email protected] start
06-23 03:16:43 > node index.js
06-23 03:16:44 node:internal/modules/cjs/loader:1249
06-23 03:16:44 throw err;
06-23 03:16:44 ^
06-23 03:16:44
06-23 03:16:44 Error: Cannot find module '../middlewares/auth.js'
06-23 03:16:44 Require stack:
06-23 03:16:44 - /home/container/dashboard/routes/index.js
06-23 03:16:44 - /home/container/structures/Client.js
06-23 03:16:44 - /home/container/index.js
06-23 03:16:44 at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
06-23 03:16:44 at Function._load (node:internal/modules/cjs/loader:1072:27)
06-23 03:16:44 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 03:16:44 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 03:16:44 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 03:16:44 at require (node:internal/modules/helpers:139:16)
06-23 03:16:44 at Object.<anonymous> (/home/container/dashboard/routes/index.js:9:28)
06-23 03:16:44 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 03:16:44 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 03:16:44 at Module.load (node:internal/modules/cjs/loader:1315:32) {
06-23 03:16:44 code: 'MODULE_NOT_FOUND',
06-23 03:16:44 requireStack: [
06-23 03:16:44 '/home/container/dashboard/routes/index.js',
06-23 03:16:44 '/home/container/structures/Client.js',
06-23 03:16:44 '/home/container/index.js'
06-23 03:16:44 ]
06-23 03:16:44 }
06-23 03:16:44
06-23 03:16:44 Node.js v23.1.0
06-23 03:16:44 [PebbleHost Daemon]: Server marked as offline
06-23 03:16:44 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 03:16:44 [PebbleHost Daemon]: Exit code: 0
06-23 03:16:44 [PebbleHost Daemon]: Out of memory: false
06-23 03:16:44 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

@jagged wraith imma flip my shit

jagged wraith
#

read the error

#

you have more missin files

tranquil zinc
#

where it at

jagged wraith
#

its in the error message

#

Error: Cannot find module '../middlewares/auth.js'

tranquil zinc
#

i aint got a clue where that at

jagged wraith
#

well i don't either

tranquil zinc
#

oh i found itr

tranquil zinc
jagged wraith
#

?

tranquil zinc
#

what does that mean

#

06-23 03:19:48 Error: /home/container/node_modules/better-sqlite3/build/Release/better_sqlite3.node: invalid ELF header

jagged wraith
#

I think its a problem with the sqlite3 module. im not too sure, try deleting your node_modules folder so it can be redownloaded

tranquil zinc
#

lets see if this will work

tranquil zinc
#

@loud sigil

#

do yk what to do

jagged wraith
#

lets not ping random people unless they are already assisting you. What are you uploading

tranquil zinc
#

[email protected] start
06-23 03:35:35 > node index.js
06-23 03:35:35 node:internal/modules/cjs/loader:1249
06-23 03:35:35 throw err;
06-23 03:35:35 ^
06-23 03:35:35
06-23 03:35:35 Error: Cannot find module 'discord.js'
06-23 03:35:35 Require stack:
06-23 03:35:35 - /home/container/structures/Client.js
06-23 03:35:35 - /home/container/index.js
06-23 03:35:35 at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
06-23 03:35:35 at Function._load (node:internal/modules/cjs/loader:1072:27)
06-23 03:35:35 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 03:35:35 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 03:35:35 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 03:35:35 at require (node:internal/modules/helpers:139:16)
06-23 03:35:35 at Object.<anonymous> (/home/container/structures/Client.js:1:61)
06-23 03:35:35 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 03:35:35 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 03:35:35 at Module.load (node:internal/modules/cjs/loader:1315:32) {
06-23 03:35:35 code: 'MODULE_NOT_FOUND',
06-23 03:35:35 requireStack: [
06-23 03:35:35 '/home/container/structures/Client.js',
06-23 03:35:35 '/home/container/index.js'
06-23 03:35:35 ]
06-23 03:35:35 }
06-23 03:35:35
06-23 03:35:35 Node.js v23.1.0
06-23 03:35:35 [PebbleHost Daemon]: Server marked as offline
06-23 03:35:35 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 03:35:35 [PebbleHost Daemon]: Exit code: 0
06-23 03:35:35 [PebbleHost Daemon]: Out of memory: false
06-23 03:35:35 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.
06-23 03:43:31 [PebbleHost Daemon]: Checking server disk space usage, this could take a few seconds...
06-23 03:43:31 [PebbleHost Daemon]: Server marked as starting
06-23 03:43:31 [PebbleHost Daemon]: Pulling container image, this could take a few minutes to complete...
06-23 03:43:32 [PebbleHost Daemon]: Pulling from pebblehost/pebble-bot
06-23 03:43:32 [PebbleHost Daemon]: Digest: sha256:ebd06789535343bd58570ac805497b67793068b121c6f6b4a578929b0c70b949
06-23 03:43:32 [PebbleHost Daemon]: Status: Image is up to date for pebblehost/pebble-bot:v24
06-23 03:43:32 [PebbleHost Daemon]: Finished pulling container image
06-23 03:43:33 [PebbleHost Loader]: ----------------------------------------------
06-23 03:43:33 [PebbleHost Loader]: PebbleHost Bot Loader now starting...
06-23 03:43:33 [PebbleHost Loader]: Running loader version Bot-1.2.2
06-23 03:43:33 [PebbleHost Daemon]: Server marked as running
06-23 03:43:33 [PebbleHost Loader]: Checking for Configured Reverse Proxy...
06-23 03:43:33 [PebbleHost Loader]: Attempting to boot with the following settings: SERVER ID: 1057186, MEMORY: 1024M
06-23 03:43:33 [PebbleHost Loader]: Found package.json
06-23 03:43:33 [PebbleHost Loader]: Node version v23.1.0
06-23 03:43:33 [PebbleHost Loader]: Updating NPM packages (command output is in logs/2025-06-23_03-43-32.txt)...

#

whats the issue now bro

jagged wraith
#

discord.js is not installed. do you have your package.json?

tranquil zinc
#

wait

#

i think my shit just turned back on

#

i didnt even do anything

#

nvm

#

it turned back off

tranquil zinc
jagged wraith
#

yea it should have it

#

try restarting

tranquil zinc
#

@jagged wraith 06-23 03:47:44 > node index.js
06-23 03:47:44 node:internal/modules/cjs/loader:1249
06-23 03:47:44 throw err;
06-23 03:47:44 ^
06-23 03:47:44
06-23 03:47:44 Error: Cannot find module 'discord.js'
06-23 03:47:44 Require stack:
06-23 03:47:44 - /home/container/structures/Client.js
06-23 03:47:44 - /home/container/index.js
06-23 03:47:44 at Function._resolveFilename (node:internal/modules/cjs/loader:1246:15)
06-23 03:47:44 at Function._load (node:internal/modules/cjs/loader:1072:27)
06-23 03:47:44 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
06-23 03:47:44 at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
06-23 03:47:44 at Module.require (node:internal/modules/cjs/loader:1337:12)
06-23 03:47:44 at require (node:internal/modules/helpers:139:16)
06-23 03:47:44 at Object.<anonymous> (/home/container/structures/Client.js:1:61)
06-23 03:47:44 at Module._compile (node:internal/modules/cjs/loader:1572:14)
06-23 03:47:44 at Object..js (node:internal/modules/cjs/loader:1709:10)
06-23 03:47:44 at Module.load (node:internal/modules/cjs/loader:1315:32) {
06-23 03:47:44 code: 'MODULE_NOT_FOUND',
06-23 03:47:44 requireStack: [
06-23 03:47:44 '/home/container/structures/Client.js',
06-23 03:47:44 '/home/container/index.js'
06-23 03:47:44 ]
06-23 03:47:44 }
06-23 03:47:44
06-23 03:47:44 Node.js v23.1.0
06-23 03:47:44 [PebbleHost Daemon]: Server marked as offline
06-23 03:47:44 [PebbleHost Daemon]: ---------- Detected server process in a crashed state! ----------
06-23 03:47:44 [PebbleHost Daemon]: Exit code: 0
06-23 03:47:44 [PebbleHost Daemon]: Out of memory: false
06-23 03:47:44 [PebbleHost Daemon]: Aborting automatic restart, last crash occurred less than 600 seconds ago.

#

still no work

#

{
"name": "champion-tickets",
"version": "1.7.8",
"description": "Premium Tickets & Service Team Discord Bot rich with features.",
"main": "index.js",
"private": true,
"scripts": {
"start": "node index.js"
},
"dependencies": {
"better-sqlite3": "latest",
"cron": "^2.1.0",
"chalk": "^4.1.2",
"cookie-parser": "^1.4.6",
"discord.js": "^14.17.2",
"ejs": "^3.1.8",
"enmap": "^5.3.1",
"express": "latest",
"form-data": "^4.0.0",
"hastebin-gen": "^2.0.5",
"jsdom": "latest",
"jsonwebtoken": "latest",
"mathjs": "latest",
"quick.db": "^9.1.6",
"yaml": "^2.3.0-4",
"mongoose": "^7.2.2",
"mysql2": "latest"
},
"engines": {
"node": ">=19.9.0"
},
"nodeVersion": "23.1.0"
}

#

thats package.json

jagged wraith
#

weird. try manually installing it with the node package installer

jagged wraith
#

look at the sidebar

tranquil zinc
jagged wraith
#

look into tools

tranquil zinc
jagged wraith
#

yes

tranquil zinc
jagged wraith
#

install discord.js

tranquil zinc
jagged wraith
#

ok well im logging off now, open a ticket if you need help with install discord.js

jagged wraith
#

do /ticket