Nefit Easy XMPP authentication failure

For heating/cooling related questions in Domoticz

Moderator: leecollings

SweetPants

Nefit Easy XMPP authentication failure

Post 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
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: Nefit Easy XMPP authentication failure

Post by felix63 »

Wow... quick fix!

I used

Code: Select all

 sudo npm update nefit-easy-http-server -g
to update
User avatar
Bartb
Posts: 17
Joined: Monday 29 August 2016 22:19
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Nefit Easy XMPP authentication failure

Post by Bartb »

Brilliant! Works perfectly again.
Thanks!
mchangsp
Posts: 6
Joined: Wednesday 07 August 2013 0:12
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Nefit Easy XMPP authentication failure

Post 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
SweetPants

Re: Nefit Easy XMPP authentication failure

Post by SweetPants »

Works fine with:

node -v 6.14.2
npm -v 3.10.10
easy-server -v 4.0.1
Milifax
Posts: 69
Joined: Friday 23 June 2017 9:27
Target OS: Linux
Domoticz version: 2024.4
Location: The Netherlands
Contact:

Re: Nefit Easy XMPP authentication failure

Post by Milifax »

Thanks for the fix.
Really appreciate it!
Jamie
Posts: 2
Joined: Saturday 02 June 2018 12:46
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post 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
SweetPants

Re: Nefit Easy XMPP authentication failure

Post 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?
Jamie
Posts: 2
Joined: Saturday 02 June 2018 12:46
Target OS: -
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post by Jamie »

You are right! I removed every instance of NPM and Node(js), literely every file. Thereafter reinstalled with

Code: Select all

sudo aptitude install npm
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!
PAHVelthuis
Posts: 5
Joined: Monday 11 May 2015 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post 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?
SweetPants

Re: Nefit Easy XMPP authentication failure

Post 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
PAHVelthuis
Posts: 5
Joined: Monday 11 May 2015 15:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post by PAHVelthuis »

Code: Select all

npm i nefit-easy-http-server -g


did the trick, thanks!
Biarritz
Posts: 11
Joined: Friday 08 June 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post 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!
SweetPants

Re: Nefit Easy XMPP authentication failure

Post 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
Biarritz
Posts: 11
Joined: Friday 08 June 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post by Biarritz »

This is what I get as return:

pi@Domoticz:~ $ sudo npm install nefit-easy-http-server -g
/usr/bin/easy-server -> /usr/lib/node_modules/nefit-easy-http-server/bin/easy-server
/usr/lib
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── @xmpp/[email protected]
│ │ │ ├─┬ @xmpp/[email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── @xmpp/[email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└── [email protected]

pi@Domoticz:~ $
SweetPants

Re: Nefit Easy XMPP authentication failure

Post by SweetPants »

Biarritz wrote: Saturday 09 June 2018 10:12 This is what I get as return:

pi@Domoticz:~ $ sudo npm install nefit-easy-http-server -g
/usr/bin/easy-server -> /usr/lib/node_modules/nefit-easy-http-server/bin/easy-server
/usr/lib
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── @xmpp/[email protected]
│ │ │ ├─┬ @xmpp/[email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── @xmpp/[email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├─┬ [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ ├── [email protected]
│ │ │ │ │ └─┬ [email protected]
│ │ │ │ │ └── [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└── [email protected]

pi@Domoticz:~ $
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
Biarritz
Posts: 11
Joined: Friday 08 June 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post by Biarritz »

Did this serveral times already, but 3.1.1 is what I get
Biarritz
Posts: 11
Joined: Friday 08 June 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post 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!
SweetPants

Re: Nefit Easy XMPP authentication failure

Post by SweetPants »

What do you see when starting the easy-server manually with -V (verbose) and domoticz tries to access it?
Biarritz
Posts: 11
Joined: Friday 08 June 2018 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Nefit Easy XMPP authentication failure

Post 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:~ $
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest