Hi guys,
I’m trying to install the openhab-cloud using this Quick-start Guide and I have some troubles. Maybe someone can help me.
during the install process I have theses warnings and errors
Warnings
npm WARN deprecated mongodb@1.4.40: Please upgrade to 2.2.19 or higher
npm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
npm WARN deprecated mongodb@2.1.8: Please upgrade to 2.2.19 or higher
loadDep:qs → request ▀ ╢██████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
loadDep:sntp → request ▀ ╢██████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"4.2.6","npm":"3.5.2"})
npm WARN prefer global mimer@0.2.1 should be installed with -g
npm WARN prefer global node-gyp@3.6.0 should be installed with -g
npm WARN lifecycle bcrypt@0.8.7~install: cannot run in wd %s %s (wd=%s) bcrypt@0.8.7 node-gyp rebuild /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt
Errors
node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.2/bcrypt_lib-v1.0.2-node-v46-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.2 and node@4.2.6 (node-v46 ABI) (falling back to source compile with node-gyp)
And when I try to start node app.js
ubuntu@ip-172-31-30-104:~/openhabcloud$ sudo node app.js
2017-03-29T08:43:52.091Z - info: openHAB-cloud: Backend service is starting up...
2017-03-29T08:43:52.099Z - info: openHAB-cloud: Backend logging initialized...
2017-03-29T08:43:52.771Z - info: openHAB-cloud: Initializing XMPP connection to GCM
2017-03-29T08:43:53.002Z - error: uncaughtException: Could not locate the bindings file. Tried:
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/Debug/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/Release/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/out/Debug/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/Debug/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/out/Release/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/Release/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/default/bcrypt_lib.node
→ /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/compiled/4.2.6/linux/x64/bcrypt_lib.node date=Wed Mar 29 2017 08:43:52 GMT+0000 (UTC), pid=3040, uid=0, gid=0, cwd=/home/ubuntu/openhabcloud, execPath=/usr/bin/nodejs, version=v4.2.6, argv=[/usr/bin/nodejs, /home/ubuntu/openhabcloud/app.js], rss=64380928, heapTotal=41463648, heapUsed=29050136, loadavg=[0.1875, 0.1845703125, 0.13671875], uptime=4311, trace=[column=9, file=/home/ubuntu/openhabcloud/node_modules/bindings/bindings.js, function=bindings, line=88, method=null, native=false, column=35, file=/home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/bcrypt.js, function=, line=3, method=null, native=false, column=26, file=module.js, function=Module._compile, line=410, method=_compile, native=false, column=10, file=module.js, function=Object.Module._extensions..js, line=417, method=Module._extensions..js, native=false, column=32, file=module.js, function=Module.load, line=344, method=load, native=false, column=12, file=module.js, function=Function.Module._load, line=301, method=Module._load, native=false, column=17, file=module.js, function=Module.require, line=354, method=require, native=false, column=17, file=internal/module.js, function=require, line=12, method=null, native=false, column=14, file=/home/ubuntu/openhabcloud/node_modules/bcrypt-cache/lib/bcrypt.js, function=null, line=7, method=null, native=false, column=3, file=/home/ubuntu/openhabcloud/node_modules/bcrypt-cache/lib/bcrypt.js, function=, line=18, method=null, native=false, column=26, file=module.js, function=Module._compile, line=410, method=_compile, native=false, column=10, file=module.js, function=Object.Module._extensions..js, line=417, method=Module._extensions..js, native=false, column=32, file=module.js, function=Module.load, line=344, method=load, native=false, column=12, file=module.js, function=Function.Module._load, line=301, method=Module._load, native=false, column=17, file=module.js, function=Module.require, line=354, method=require, native=false, column=17, file=internal/module.js, function=require, line=12, method=null, native=false], stack=[Error: Could not locate the bindings file. Tried:, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/Debug/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/Release/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/out/Debug/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/Debug/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/out/Release/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/Release/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/default/bcrypt_lib.node, → /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/compiled/4.2.6/linux/x64/bcrypt_lib.node, at bindings (/home/ubuntu/openhabcloud/node_modules/bindings/bindings.js:88:9), at Object.<anonymous> (/home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/bcrypt.js:3:35), at Module._compile (module.js:410:26), at Object.Module._extensions..js (module.js:417:10), at Module.load (module.js:344:32), at Function.Module._load (module.js:301:12), at Module.require (module.js:354:17), at require (internal/module.js:12:17), at /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/lib/bcrypt.js:7:14, at Object.<anonymous> (/home/ubuntu/openhabcloud/node_modules/bcrypt-cache/lib/bcrypt.js:18:3), at Module._compile (module.js:410:26), at Object.Module._extensions..js (module.js:417:10), at Module.load (module.js:344:32), at Function.Module._load (module.js:301:12), at Module.require (module.js:354:17), at require (internal/module.js:12:17)]
2017-03-29T08:43:53.004Z - error: tries=[/home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/Debug/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/Release/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/out/Debug/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/Debug/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/out/Release/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/Release/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/build/default/bcrypt_lib.node, /home/ubuntu/openhabcloud/node_modules/bcrypt-cache/node_modules/bcrypt/compiled/4.2.6/linux/x64/bcrypt_lib.node]
2017-03-29T08:43:53.748Z - warn: openHAB-cloud: GCM XMPP error: XMPP authentication failure
Is it some possible to do some quick fix?
Big thanks in advance,
Ivan
EDIT:
Finally I’ve got the sweet spot !!!
So, it’s a known issue with bcrypt. https://github.com/kelektiv/node.bcrypt.js/issues/432
Like they said I replace bcrypt with bcrypt-nodejs in the package.json and finally no errors on installation process.
I’m using AWS and I have to say something, in the tutorial, when we are on the “Security Group” we have to add the port 3000 as well as the others one.
And then you can reach your installation with http://<<>your AWS DNS or IP>:3000
EDIT 2:
After diging a while to login in the login area, I could create many users with fake UUID and secrets
but when I try to use the makeadmin.js script it’s impossible. I have some errors with mongoose.
It would be nice to have a little bit more documentation