Error: EACCES: permission denied, open '/root/.pm2/module_conf.json'
at Object.openSync (node:fs:601:3)
at Object.readFileSync (node:fs:469:35)
at Configuration.getAllSync (/www/server/nodejs/v18.16.1/lib/node_modules/pm2/lib/Configuration.js:299:26)
at Configuration.getSync (/www/server/nodejs/v18.16.1/lib/node_modules/pm2/lib/Configuration.js:270:30)
at new API (/www/server/nodejs/v18.16.1/lib/node_modules/pm2/lib/API.js:116:44)
at Object.<anonymous> (/www/server/nodejs/v18.16.1/lib/node_modules/pm2/lib/binaries/CLI.js:22:11)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
/www/server/nodejs/v18.16.1/lib/node_modules/pm2/node_modules/@pm2/agent/src/InteractorClient.js:58
if (stats.uid === 0) {
^
TypeError: Cannot read properties of undefined (reading 'uid')
at /www/server/nodejs/v18.16.1/lib/node_modules/pm2/node_modules/@pm2/agent/src/InteractorClient.js:58:21
at FSReqCallback.oncomplete (node:fs:208:21)
Node.js v18.16.1 |