Page 1 of 2
Netonix Manager does not start
Posted: Fri Aug 09, 2019 8:24 am
by Seb65
Hello,
I have a new server with Debian 10 + UNMS 1.0.0b9.
I just installed netonix-manager_1.0.15_all.deb but this one does not work.
root@unms:~# service netonix-manager status
● netonix-manager.service - LSB: Start daemon at boot time
Loaded: loaded (/etc/init.d/netonix-manager; generated)
Active: active (running) since Fri 2019-08-09 14:13:28 CEST; 4min 24s ago
Docs: man:systemd-sysv-generator(8)
Process: 495 ExecStart=/etc/init.d/netonix-manager start (code=exited, status=0/SUCCESS)
Tasks: 14 (limit: 4915)
Memory: 105.8M
CGroup: /system.slice/netonix-manager.service
├─ 507 /usr/bin/nodejs bootloader.js
└─5738 nodejs app.js
août 09 14:13:28 unms systemd[1]: Starting LSB: Start daemon at boot time...
août 09 14:13:28 unms systemd[1]: Started LSB: Start daemon at boot time.
root@unms:~# netstat -an | grep 3443
root@unms:~#
root@unms:~# node --version
v10.15.2
root@unms:~# nodejs --version
v10.15.2
root@unms:~#
An idea of the problem
Re: Netonix Manager does not start
Posted: Fri Aug 09, 2019 11:36 am
by Stephen
I'm not extremely familiar with this distro of linux. However, sometimes the environment variable isn't set correctly, you can test that with this:
- Code: Select all
export NODE_ENV=production
node bootloader.js
Also, running it directly might tell us more about what's happening.
It seems like it's implying that it's been active for awhile. Did it work before and suddenly stop?
Re: Netonix Manager does not start
Posted: Sun Aug 11, 2019 5:01 am
by Seb65
I have errors :
- Code: Select all
root@unms:/opt/netonix-manager# node bootloader.js
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODULE_NOT_FOUND' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODULE_NOT_FOUND' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODULE_NOT_FOUND' }
process exit code 1
It seems like it's implying that it's been active for awhile. Did it work before and suddenly stop?
The manager never worked after installation.
Re: Netonix Manager does not start
Posted: Mon Aug 12, 2019 12:33 pm
by Stephen
Did you run the command:
- Code: Select all
export NODE_ENV=production
Before you started the bootloader.js?
Re: Netonix Manager does not start
Posted: Mon Aug 12, 2019 2:26 pm
by Seb65
Yes I run this command and get errors...
Re: Netonix Manager does not start
Posted: Mon Aug 12, 2019 3:12 pm
by Stephen
OK, let's check to see where node is installed at.
Let me know what the results for these command's are:
- Code: Select all
whereis node
and
- Code: Select all
whereis nodejs
Re: Netonix Manager does not start
Posted: Tue Aug 13, 2019 1:38 am
by Seb65
- Code: Select all
root@unms:~# whereis node
node: /usr/bin/node /usr/share/man/man1/node.1.gz
root@unms:~# whereis nodejs
nodejs: /usr/bin/nodejs /usr/lib/nodejs /usr/share/man/man1/nodejs.1.gz
root@unms:~#
Re: Netonix Manager does not start
Posted: Tue Aug 13, 2019 4:58 am
by Stephen
OK I just wanted to make sure that bootloader.js could find your node install's.
It looks for nodejs first, and since you have both installed when we ran the bootloader with 'node' first, it found the 'nodejs' and attempted to open the main nm app with a different binary then what started it.
What happens if you run:
- Code: Select all
export NODE_ENV=production
nodejs bootloader.js
Re: Netonix Manager does not start
Posted: Tue Aug 13, 2019 11:36 am
by Seb65
- Code: Select all
root@unms:~# cd /opt/netonix-manager/
root@unms:/opt/netonix-manager# ls
app.js crash.log node_modules start.sh version.txt
bootloader.js models private.key stop.sh views
certificate.pem netonix-manager.init public util.js
root@unms:/opt/netonix-manager# export NODE_ENV=production
root@unms:/opt/netonix-manager# nodejs bootloader.js
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:1 5:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODUL E_NOT_FOUND' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:1 5:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODUL E_NOT_FOUND' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:1 5:10)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODUL E_NOT_FOUND' }
^C
root@unms:/opt/netonix-manager#
Re: Netonix Manager does not start
Posted: Tue Aug 20, 2019 6:49 am
by Seb65
Hi,
An idea of problem ? A package is missing ?