Netonix Manager does not start

Seb65
Member
 
Posts: 41
Joined: Thu Feb 21, 2019 6:56 pm
Has thanked: 0 time
Been thanked: 1 time

Netonix Manager does not start

Fri Aug 09, 2019 8:24 am

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 :idea:

User avatar
Stephen
Employee
Employee
 
Posts: 965
Joined: Sun Dec 24, 2017 8:56 pm
Has thanked: 77 times
Been thanked: 169 times

Re: Netonix Manager does not start

Fri Aug 09, 2019 11:36 am

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?

Seb65
Member
 
Posts: 41
Joined: Thu Feb 21, 2019 6:56 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Netonix Manager does not start

Sun Aug 11, 2019 5:01 am

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.

User avatar
Stephen
Employee
Employee
 
Posts: 965
Joined: Sun Dec 24, 2017 8:56 pm
Has thanked: 77 times
Been thanked: 169 times

Re: Netonix Manager does not start

Mon Aug 12, 2019 12:33 pm

Did you run the command:
Code: Select all
export NODE_ENV=production


Before you started the bootloader.js?

Seb65
Member
 
Posts: 41
Joined: Thu Feb 21, 2019 6:56 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Netonix Manager does not start

Mon Aug 12, 2019 2:26 pm

Yes I run this command and get errors...

User avatar
Stephen
Employee
Employee
 
Posts: 965
Joined: Sun Dec 24, 2017 8:56 pm
Has thanked: 77 times
Been thanked: 169 times

Re: Netonix Manager does not start

Mon Aug 12, 2019 3:12 pm

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

Seb65
Member
 
Posts: 41
Joined: Thu Feb 21, 2019 6:56 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Netonix Manager does not start

Tue Aug 13, 2019 1:38 am

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:~#
 

User avatar
Stephen
Employee
Employee
 
Posts: 965
Joined: Sun Dec 24, 2017 8:56 pm
Has thanked: 77 times
Been thanked: 169 times

Re: Netonix Manager does not start

Tue Aug 13, 2019 4:58 am

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

Seb65
Member
 
Posts: 41
Joined: Thu Feb 21, 2019 6:56 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Netonix Manager does not start

Tue Aug 13, 2019 11:36 am

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#

Seb65
Member
 
Posts: 41
Joined: Thu Feb 21, 2019 6:56 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Netonix Manager does not start

Tue Aug 20, 2019 6:49 am

Hi,

An idea of problem ? A package is missing ?

Next
Return to General Discussion

Who is online

Users browsing this forum: No registered users and 23 guests