-
Notifications
You must be signed in to change notification settings - Fork 15
Unable to start once supplying Unifi Controller details. #10
Comments
@LeeRoyy91 I ran into this as well on both win10 and macOS machines running newest node.js and following the readme instructions from this github. I was able to get around this error by generating an ssh key and adding it to the unifi controller following these instructions. https://help.ubnt.com/hc/en-us/articles/235247068-UniFi-Adding-SSH-Keys-to-UniFi-Devices |
hmm, i can ssh into the controller from the mac terminal but unifi-parental still fails to login using the same credentials. Fails at controller.getSelf.controller.login (/Users/mattjezyk/Documents/GitHub/unifi-parental/index.js:68:17) |
I think the fix is pretty simple. Edit your unifi-parental/config-sample.jsonc Line 118 in 384c43d
I'll fix config-sample.jsonc to reflect what the code expects in the config file. |
I'm getting the same error with the "block" in my config.json
|
I've found the problem, but it'll take be a couple of days to fix it up (need to brush up on my JS) In the interim, there is a simple fix - make sure the
If they don't match then you'll get the error. |
thanks that got me up and running. |
Unable to start once I have supplied login details in the config / env files
unifi-parental:server Listening on port 4000 +0ms
TypeError: Cannot read property 'block' of undefined
at controllerLogin (/home/ubuntu/unifi-parental/index.js:159:21)
at controller.login (/home/ubuntu/unifi-parental/index.js:68:17)
at /home/ubuntu/unifi-parental/node_modules/node-unifi/unifi.js:1411:13
at /home/ubuntu/unifi-parental/node_modules/async/dist/async.js:958:16
at next (/home/ubuntu/unifi-parental/node_modules/async/dist/async.js:5211:18)
at Request._callback (/home/ubuntu/unifi-parental/node_modules/node-unifi/unifi.js:1394:27)
at Request.self.callback (/home/ubuntu/unifi-parental/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/home/ubuntu/unifi-parental/node_modules/request/request.js:1163:10)
unifi-parental:server Config saved +403ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start:
node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2019-01-03T11_51_42_894Z-debug.log
ubuntu@ip-172-31-24-98:~/unifi-parental$
Although within the Unifi controller I can see that there has been two login attempts from the server.
Regards,
Lee
The text was updated successfully, but these errors were encountered: