Hello,
I am trying to install Netonix Manager on a CentOS 7 server and have been able to download netonix-manager-1.0.17.tar.gz, unzip, run "export NODE_ENV=production" and also "node bootloader.js" but still get the following:
# node bootloader.js
starting child process
Error: Cannot find module '../build/Release/bson'
Require stack:
- /opt/netonix-manager/node_modules/bson/ext/index.js
- /opt/netonix-manager/node_modules/bson/lib/bson/index.js
- /opt/netonix-manager/node_modules/mongodb/lib/mongodb/index.js
- /opt/netonix-manager/node_modules/mongoose/lib/utils.js
- /opt/netonix-manager/node_modules/mongoose/lib/schema.js
- /opt/netonix-manager/node_modules/mongoose/lib/index.js
- /opt/netonix-manager/node_modules/mongoose/index.js
- /opt/netonix-manager/app.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/opt/netonix-manager/node_modules/bson/ext/index.js',
'/opt/netonix-manager/node_modules/bson/lib/bson/index.js',
'/opt/netonix-manager/node_modules/mongodb/lib/mongodb/index.js',
'/opt/netonix-manager/node_modules/mongoose/lib/utils.js',
'/opt/netonix-manager/node_modules/mongoose/lib/schema.js',
'/opt/netonix-manager/node_modules/mongoose/lib/index.js',
'/opt/netonix-manager/node_modules/mongoose/index.js',
'/opt/netonix-manager/app.js'
]
}
Express server listening on port 3443
...but still no web UI
node --version
v14.15.4
Netonix Manager on CentOS 7 install issue
-
Stephen - Employee
- Posts: 1033
- Joined: Sun Dec 24, 2017 8:56 pm
- Has thanked: 85 times
- Been thanked: 181 times
Re: Netonix Manager on CentOS 7 install issue
Try running it with node version 8.9.0
- OacysShop
- Member
- Posts: 29
- Joined: Thu Dec 28, 2017 7:10 pm
- Has thanked: 3 times
- Been thanked: 0 time
Re: Netonix Manager on CentOS 7 install issue
Same result, just less output.
# node bootloader.js
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3443
# node -v
v8.17.0
# node bootloader.js
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3443
# node -v
v8.17.0
-
Stephen - Employee
- Posts: 1033
- Joined: Sun Dec 24, 2017 8:56 pm
- Has thanked: 85 times
- Been thanked: 181 times
Re: Netonix Manager on CentOS 7 install issue
Try deleting and reinstalling the node_modules, but do NOT upgrade them. Also that is version 8.17.0 It might work, but I know it works on 8.9.0
- OacysShop
- Member
- Posts: 29
- Joined: Thu Dec 28, 2017 7:10 pm
- Has thanked: 3 times
- Been thanked: 0 time
Re: Netonix Manager on CentOS 7 install issue
Similar results...
# node -v
v8.9.0
]# node bootloader.js
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3000
{ Error: ENOENT: no such file or directory, open '/opt/netonix-manager/storage/configs'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/netonix-manager/storage/configs' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3000
{ Error: ENOENT: no such file or directory, open '/opt/netonix-manager/storage/configs'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/netonix-manager/storage/configs' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3000
{ Error: ENOENT: no such file or directory, open '/opt/netonix-manager/storage/configs'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/netonix-manager/storage/configs' }
...that is continuous
# node -v
v8.9.0
]# node bootloader.js
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3000
{ Error: ENOENT: no such file or directory, open '/opt/netonix-manager/storage/configs'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/netonix-manager/storage/configs' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3000
{ Error: ENOENT: no such file or directory, open '/opt/netonix-manager/storage/configs'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/netonix-manager/storage/configs' }
process exit code 1
starting child process
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/netonix-manager/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3) code: 'MODULE_NOT_FOUND' }
Express server listening on port 3000
{ Error: ENOENT: no such file or directory, open '/opt/netonix-manager/storage/configs'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/netonix-manager/storage/configs' }
...that is continuous
-
Stephen - Employee
- Posts: 1033
- Joined: Sun Dec 24, 2017 8:56 pm
- Has thanked: 85 times
- Been thanked: 181 times
Re: Netonix Manager on CentOS 7 install issue
Please try re-extracting the tar file, it appears that part of the directory is missing.
Also, you may need to install a centos package for bson, there was a similar report in the past for ubuntu, their solution was to just apt install the package and then make sure that the associated bson npm module was installed as well. I'm not very familiar with CentOS myself, but the reference I mentioned can be found here where Seb65 had some luck:
viewtopic.php?f=6&t=5623&p=30297&hilit=bson#p30297
Also, you may need to install a centos package for bson, there was a similar report in the past for ubuntu, their solution was to just apt install the package and then make sure that the associated bson npm module was installed as well. I'm not very familiar with CentOS myself, but the reference I mentioned can be found here where Seb65 had some luck:
viewtopic.php?f=6&t=5623&p=30297&hilit=bson#p30297
- OacysShop
- Member
- Posts: 29
- Joined: Thu Dec 28, 2017 7:10 pm
- Has thanked: 3 times
- Been thanked: 0 time
Re: Netonix Manager on CentOS 7 install issue
I installed the bson library and re-extracted the tar file and the directory it keeps complaining about /opt/netonix-manager/storage still is not present and still getting the same results as above.
- OacysShop
- Member
- Posts: 29
- Joined: Thu Dec 28, 2017 7:10 pm
- Has thanked: 3 times
- Been thanked: 0 time
Re: Netonix Manager on CentOS 7 install issue
# ls -al /opt/netonix-manager
total 108
drwxr-xr-x 6 197609 197609 4096 Jan 15 08:23 .
drwxr-xr-x. 4 197609 197609 4096 Jan 15 08:22 ..
-rwx------ 1 197609 197609 35088 Jan 16 2020 app.js
-rwx------ 1 197609 197609 2075 Jan 16 2020 bootloader.js
-rwx------ 1 197609 197609 762 Dec 28 2017 certificate.pem
-rw-r--r-- 1 root root 2064 Jan 15 09:15 crash.log
drwxr-xr-x 2 197609 197609 4096 Jan 16 2020 models
-rwx------ 1 197609 197609 918 Jun 7 2019 netonix-manager.init
drwx------ 226 197609 197609 12288 Jan 16 2020 node_modules
-rwx------ 1 197609 197609 906 Dec 28 2017 private.key
drwxr-xr-x 7 197609 197609 4096 Jan 16 2020 public
-rwx------ 1 197609 197609 131 Jun 7 2019 start.sh
-rwx------ 1 197609 197609 149 Jun 7 2019 stop.sh
-rwx------ 1 197609 197609 4281 Jan 16 2020 util.js
-rwxrwx--- 1 544 197609 7 Jan 16 2020 version.txt
drwx------ 2 197609 197609 4096 Jan 16 2020 views
#
total 108
drwxr-xr-x 6 197609 197609 4096 Jan 15 08:23 .
drwxr-xr-x. 4 197609 197609 4096 Jan 15 08:22 ..
-rwx------ 1 197609 197609 35088 Jan 16 2020 app.js
-rwx------ 1 197609 197609 2075 Jan 16 2020 bootloader.js
-rwx------ 1 197609 197609 762 Dec 28 2017 certificate.pem
-rw-r--r-- 1 root root 2064 Jan 15 09:15 crash.log
drwxr-xr-x 2 197609 197609 4096 Jan 16 2020 models
-rwx------ 1 197609 197609 918 Jun 7 2019 netonix-manager.init
drwx------ 226 197609 197609 12288 Jan 16 2020 node_modules
-rwx------ 1 197609 197609 906 Dec 28 2017 private.key
drwxr-xr-x 7 197609 197609 4096 Jan 16 2020 public
-rwx------ 1 197609 197609 131 Jun 7 2019 start.sh
-rwx------ 1 197609 197609 149 Jun 7 2019 stop.sh
-rwx------ 1 197609 197609 4281 Jan 16 2020 util.js
-rwxrwx--- 1 544 197609 7 Jan 16 2020 version.txt
drwx------ 2 197609 197609 4096 Jan 16 2020 views
#
-
Stephen - Employee
- Posts: 1033
- Joined: Sun Dec 24, 2017 8:56 pm
- Has thanked: 85 times
- Been thanked: 181 times
Re: Netonix Manager on CentOS 7 install issue
It appears the storage directory is not present, perhaps it's not being generated because the manager isn't running with the correct privilege it needs.
Who is online
Users browsing this forum: No registered users and 77 guests