#Bot hosting help

1 messages · Page 1 of 1 (latest)

rough pine
#

Bot not running

drowsy jasper
rough pine
#

@drowsy jasper

drowsy jasper
#

It says your package.json has a package that doesn't exist and its failing everytime

#

Delete node_modules and reinstall them

#

Reset your token as well

rough pine
#

I am delete package.json file

#

@drowsy jasper

rough pine
#

[Bot-Hosting Daemon]: Finished pulling Docker container image
v20.19.5
:/home/container$ if [[ -d .git ]] && [[ ${AUTO_UPDATE} == "1" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then /usr/local/bin/npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then /usr/local/bin/npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f /home/container/package.json ]; then /usr/local/bin/npm install; fi; if [[ ! -z "${START_BASH_FILE}" ]]; then bash ${START_BASH_FILE}; else /usr/local/bin/node /home/container/${BOT_JS_FILE}; fi;
npm error code ENOTEMPTY
npm error syscall rename
npm error path /home/container/node_modules/express-session
npm error dest /home/container/node_modules/.express-session-xoe98Onq
npm error errno -39
npm error ENOTEMPTY: directory not empty, rename '/home/container/node_modules/express-session' -> '/home/container/node_modules/.express-session-xoe98Onq'
npm error A complete log of this run can be found in: /home/container/.npm/_logs/2025-11-29T06_18_55_974Z-debug-0.log

safe depot
#

Your bot is not starting because one folder inside node_modules express-session didn’t install properly, and now npm can’t remove or rename it.
That’s why you see the error:

ENOTEMPTY: directory not empty, rename

#

Dlt
node_modules/express-session
any folder starting with .express-session-
package-lock.json

#

Then restart the server

#

@rough pine

rough pine
#

.express-session 580

#

@safe depot

#

This file

safe depot
#

Yep

rough pine
#

Not work

safe depot
#

Dlt package-lock.json

#

@rough pine

rough pine
drowsy jasper
# rough pine

Go to startup tab and in additional node packages put dotenv

rough pine
#

Wer

drowsy jasper
#

Use normal dotenv

#

No dotenvx