Hello i get this error:
root@localhost:/srv/daemon# sudo npm start
[email protected] start /srv/daemon
node src/index.js | node_modules/bunyan/bin/bunyan -o short
19:42:46.184Z INFO wings: + ------------------------------------ +
19:42:46.190Z INFO wings: | Running Pterodactyl Daemon v0.6.12 |
19:42:46.190Z INFO wings: | https://pterodactyl.io |
19:42:46.190Z INFO wings: | Copyright 2015 - 2019 Dane Everitt |
19:42:46.190Z INFO wings: + ------------------------------------ +
19:42:46.190Z INFO wings: Loading modules, this could take a few seconds.
/srv/daemon/src/http/restify.js:71
RestServer.on('after', Restify.auditLogger({
^
TypeError: Restify.auditLogger is not a function
at Object.
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Function.
at Object.
Github issues are for bug/feature reports, if you need help with installation use the discord https://pterodactyl.io/discord
This is not an"bug"?:
/srv/daemon/src/http/restify.js:71
RestServer.on('after', Restify.auditLogger({
^
TypeError: Restify.auditLogger is not a function
It's an issue with a node_module and you need to clear out the nodejs cache and node_modules folder in the daemon folder,
It's caused by running npm audit fix which force updates restify to a newer version without actually updating the code to respect the changes in the update.
Running
cd /srv/daemon && rm -rf node_modules package.json package-lock.json && wget https://raw.githubusercontent.com/pterodactyl/daemon/v0.6.12/package.json && wget https://raw.githubusercontent.com/pterodactyl/daemon/v0.6.12/package-lock.json && npm install should fix it (Reverts changes by npm audit fix and reinstalls the dependencies)
cd /srv/daemon && rm -rf node_modules package.json package-lock.json && wget https://raw.githubusercontent.com/pterodactyl/daemon/v0.6.12/package.json && wget https://raw.githubusercontent.com/pterodactyl/daemon/v0.6.12/package-lock.json && npm install
Thank you! Fixed my problem
Thanks :)
Most helpful comment
It's caused by running
npm audit fixwhich force updates restify to a newer version without actually updating the code to respect the changes in the update.Running
cd /srv/daemon && rm -rf node_modules package.json package-lock.json && wget https://raw.githubusercontent.com/pterodactyl/daemon/v0.6.12/package.json && wget https://raw.githubusercontent.com/pterodactyl/daemon/v0.6.12/package-lock.json && npm installshould fix it (Reverts changes by npm audit fix and reinstalls the dependencies)