Page 1 of 2
Nefit Easy XMPP authentication failure
Posted: Tuesday 29 May 2018 13:00
by SweetPants
Since today there seems to be some issues with the nefit-easy-http-server resulting in XMPP authentication failures.
I already informed Robert Klep (author of the nefit-easy SW) about this and he acknowledged this.
https://github.com/robertklep/nefit-eas ... /issues/12
There seems to be something changed at the server side as my Android client still works.
Edit: Last news is that Robert found a solution, but it will take some time to implement. Watch the repo for updates
Update: Update nefit-easy-http-server to v4.0.0 and associated utilities to latest version and problem is solved. Thanks to Robert Klep
Re: Nefit Easy XMPP authentication failure
Posted: Wednesday 30 May 2018 0:24
by felix63
Wow... quick fix!
I used
Code: Select all
sudo npm update nefit-easy-http-server -g
to update
Re: Nefit Easy XMPP authentication failure
Posted: Wednesday 30 May 2018 17:00
by Bartb
Brilliant! Works perfectly again.
Thanks!
Re: Nefit Easy XMPP authentication failure
Posted: Friday 01 June 2018 21:57
by mchangsp
Unfortunately afther the nefit easy upgrade I still get an "XMPP authentication error"
What can be wrong?
I already did:
sudo apt-get update
sudo apt-get upgrade
Here are the versions of my packages
npm -v: 6.1.0
node -v: v9.9.0
easy-server -v: 4.0.1
Re: Nefit Easy XMPP authentication failure
Posted: Friday 01 June 2018 22:57
by SweetPants
Works fine with:
node -v 6.14.2
npm -v 3.10.10
easy-server -v 4.0.1
Re: Nefit Easy XMPP authentication failure
Posted: Saturday 02 June 2018 9:39
by Milifax
Thanks for the fix.
Really appreciate it!
Re: Nefit Easy XMPP authentication failure
Posted: Saturday 02 June 2018 12:48
by Jamie
I updated as suggested, unfortunately I now get a:
module.js:549
throw err;
^
Error: Cannot find module '@xmpp/connection'
When running easy-server.
I tried cleaning, reinstalling, reinstalling NodeJS (8.11.2), but until now no success.
Any help appreciated.
NodeJS 8.11.2
NPM 2.15.11
easy-server > ERROR
Re: Nefit Easy XMPP authentication failure
Posted: Saturday 02 June 2018 13:22
by SweetPants
Did you get any errors installing Node.js? When I did it told me my npm version was too low. (sudo npm install npm -g) What tells easy-server -v?
Re: Nefit Easy XMPP authentication failure
Posted: Sunday 03 June 2018 0:13
by Jamie
You are right! I removed every instance of NPM and Node(js), literely every file. Thereafter reinstalled with
then did a dist-upgrade and voila: latest NPM and latest Node(Js) AND after re-installing with the new NPM: a working Easy-Server!
Thanks!
Re: Nefit Easy XMPP authentication failure
Posted: Tuesday 05 June 2018 22:09
by PAHVelthuis
Hi,
easy-server keeps reporting v3.0.0 after running the following command:
Code: Select all
sudo npm update nefit-easy-http-server -g
node -v v6.14.2
npm -v 3.10.10
What can I do?
Re: Nefit Easy XMPP authentication failure
Posted: Wednesday 06 June 2018 16:09
by SweetPants
Try:
sudo npm uninstall neffit-easy-http-server -g (this should remove the old one and dependencies)
sudo npm install nefit-easy-http-server -g (should install 4.0.1)
and probably
sudo npm install nefit-easy-commands -g
Re: Nefit Easy XMPP authentication failure
Posted: Wednesday 06 June 2018 22:44
by PAHVelthuis
Re: Nefit Easy XMPP authentication failure
Posted: Friday 08 June 2018 23:31
by Biarritz
I tried this but still ending up with version 3.1.1
Before I had version 4.0.1 but received the Error: NefitEasy: Error getting http data!
Re: Nefit Easy XMPP authentication failure
Posted: Saturday 09 June 2018 8:15
by SweetPants
Biarritz wrote: ↑Friday 08 June 2018 23:31
I tried this but still ending up with version 3.1.1
Did you see any errors during install?
Biarritz wrote: ↑Friday 08 June 2018 23:31
Before I had version 4.0.1 but received the Error: NefitEasy: Error getting http data!
Don't know about this one, could be a temporary issue. I noticed the Bosch backend servers are not always very reliable
Re: Nefit Easy XMPP authentication failure
Posted: Saturday 09 June 2018 10:12
by Biarritz
Re: Nefit Easy XMPP authentication failure
Posted: Saturday 09 June 2018 12:37
by SweetPants
Ok, remove this one first and re-install.
sudo npm uninstall nefit-easy-http-server -g
sudo npm install nefit-easy-http-server -g
This should give you 4.0.1
Re: Nefit Easy XMPP authentication failure
Posted: Sunday 10 June 2018 10:31
by Biarritz
Did this serveral times already, but 3.1.1 is what I get
Re: Nefit Easy XMPP authentication failure
Posted: Sunday 10 June 2018 11:03
by Biarritz
I have completely removed /usr/lib/node_modules/nefit-easy-http-server directory
started installation of Nefit easy from scratch
Have now version 4.0.1 running but still receive the Error: NefitEasy: Error getting http data!
Re: Nefit Easy XMPP authentication failure
Posted: Sunday 10 June 2018 12:36
by SweetPants
What do you see when starting the easy-server manually with -V (verbose) and domoticz tries to access it?
Re: Nefit Easy XMPP authentication failure
Posted: Sunday 10 June 2018 13:34
by Biarritz
Hmm, this is what I get:
pi@Domoticz:~ $ easy-server --serial=your-xxxx --access-key=xxxx --password=xxxx --host=127.0.0.1
{ SASLError: not-authorized
at XMPPError (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/connection/index.js:10:5)
at SASLError (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/plugins/sasl/index.js:14:5)
at EventEmitter.handler (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/plugins/sasl/index.js:144:15)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at Client.EventEmitter.(anonymous function) [as emit] (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/events/lib/EventEmitter.js:46:24)
at Parser.listeners.element.element (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/connection/index.js:118:12)
at emitOne (events.js:96:13)
at Parser.emit (events.js:188:7)
at Parser.onEndElement (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/connection-tcp/node_modules/@xmpp/xml/lib/Parser.js:54:12)
at SaxLtx.Parser.parser.on.name (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/connection-tcp/node_modules/@xmpp/xml/lib/Parser.js:33:14)
at emitOne (events.js:96:13)
at SaxLtx.emit (events.js:188:7)
at SaxLtx._handleTagOpening (/usr/lib/node_modules/nefit-easy-http-server/node_modules/ltx/lib/parsers/ltx.js:38:12)
at SaxLtx.write (/usr/lib/node_modules/nefit-easy-http-server/node_modules/ltx/lib/parsers/ltx.js:127:18)
at Parser.write (/usr/lib/node_modules/nefit-easy-http-server/node_modules/@xmpp/connection-tcp/node_modules/@xmpp/xml/lib/Parser.js:67:17)
name: 'SASLError',
condition: 'not-authorized',
text: '',
element:
Element {
name: 'failure',
parent:
Element {
name: 'stream:stream',
parent: null,
children: [Object],
attrs: [Object] },
children: [ [Object] ],
attrs: { xmlns: 'urn:ietf:params:xml:ns:xmpp-sasl' } } }
pi@Domoticz:~ $