I installed Ubuntu 20.04 from scratch, updated (apt-get update), installed mongoDB (sudo apt-get install -y mongodb-org = 4.4.4 mongodb-org-server = 4.4.4 mongodb-org- shell = 4.4.4 mongodb-org-mongos = 4.4.4 mongodb-org-tools = 4.4.4), I made the necessary modifications of the OS limits (ulimit -a) modifying for best practices … I installed the version node LTS ( nvm list
-> v12.21.0) but when installing GenieACS 1.2.5 the services do not start with the genieacs user. If I boot from the root shell it is ok.
This is what catches my attention:
npm install -g genieacs@1.2.5
/root/.nvm/versions/node/v12.21.0/bin/genieacs-cwmp → /root/.nvm/versions/node/v12.21.0/lib/node_modules/genieacs/bin/genieacs-cwmp
/root/.nvm/versions/node/v12.21.0/bin/genieacs-ext → /root/.nvm/versions/node/v12.21.0/lib/node_modules/genieacs/bin/genieacs-ext
/root/.nvm/versions/node/v12.21.0/bin/genieacs-fs → /root/.nvm/versions/node/v12.21.0/lib/node_modules/genieacs/bin/genieacs-fs
/root/.nvm/versions/node/v12.21.0/bin/genieacs-nbi → /root/.nvm/versions/node/v12.21.0/lib/node_modules/genieacs/bin/genieacs-nbi
/root/.nvm/versions/node/v12.21.0/bin/genieacs-ui → /root/.nvm/versions/node/v12.21.0/lib/node_modules/genieacs/bin/genieacs-ui
- genieacs@1.2.5
updated 1 package in 2.235s
$ systemctl status genieacs-cwmp
● genieacs-cwmp.service - GenieACS CWMP
Loaded: loaded (/etc/systemd/system/genieacs-cwmp.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-03-16 12:18:32 -03; 47s ago
Main PID: 7775 (code=exited, status=1/FAILURE)
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: at Module._compile (internal/modules/cjs/loader.js:999:30)
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: at Module.load (internal/modules/cjs/loader.js:863:32)
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: at Function.Module._load (internal/modules/cjs/loader.js:702:16)
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: code: ‘MODULE_NOT_FOUND’,
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: requireStack: [ ‘/usr/bin/genieacs-cwmp’ ]
Mar 16 12:18:32 grf-arc-acs genieacs-cwmp[7775]: }
Mar 16 12:18:32 grf-arc-acs systemd[1]: genieacs-cwmp.service: Main process exited, code=exited, status=1/FAILURE
Mar 16 12:18:32 grf-arc-acs systemd[1]: genieacs-cwmp.service: Failed with result ‘exit-code’.