Wrong authentication. Packet ignored

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
eduardofilo
Posts: 6
Joined: 06 Feb 2015 20:39

Wrong authentication. Packet ignored

Post by eduardofilo »

Hello.

I have several installations with these elements:
  • * Razberry: Manufacturing date 13/02/2015
    * z-way server: V2.0.1-rc25
    * Aeon Labs Multi Sensor 1.18 GEN5
They were working well for months, but last week two of them, independently, began to produce errors like this:

Code: Select all

[2015-11-03 10:29:43.090] [D] [zway] RECEIVED: ( 01 1D 00 04 00 02 17 98 81 B4 1A AA 6C 1B 1E B3 CF C8 27 04 E7 BA B4 DE 7E 65 98 2F F4 70 0F )
[2015-11-03 10:29:43.091] [D] [zway] SENT ACK
[2015-11-03 10:29:43.091] [D] [zway] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2015-11-03 10:29:43.091] [I] [zway] Node 2:0 CC Security: Received a secure message
[2015-11-03 10:29:43.091] [W] [zway] Node 2:0 CC Security: wrong authentication. Packet ignored
What could be the problem? It sounds like a certificate expiration.

Thanks and regards...
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Wrong authentication. Packet ignored

Post by pofs »

There's no certificates there, it is just a shared network key which can't expire.
First of all, check your SD card, it may wear off and produce I/O errors, so network key is incorrectly read from/saved to config.
You also may try to reinclude the sensor, so it gets an actual network key (in case it "forgot" it for some reason).
eduardofilo
Posts: 6
Joined: 06 Feb 2015 20:39

Re: Wrong authentication. Packet ignored

Post by eduardofilo »

Thanks for the reply.

I think that I have no problems with SD. At least I don't see errors of that kind in logs. Besides, two installations have failed by its side and both of them have about six months of running. That's why I thought of an expiration problem.

I want also to say that the problem is related to z-way server and not to sensors, because each installation has paired more than 4 sensors and all of them begin to produce the "wrong authentication" problem at same time.

Really, excluding and reincluding the sensors they begin to work, but this solution it isn't practice for us because installations are remotes.

By the way, where is the network key located?

Regards...
remoticz
Posts: 45
Joined: 07 Oct 2015 20:35
Location: no

Re: Wrong authentication. Packet ignored

Post by remoticz »

pofs wrote:First of all, check your SD card, it may wear off and produce I/O errors, so network key is incorrectly read from/saved to config.
So it is not a good idea to run ZWay on RaspberryPi and similar SD card architectures?
v2.1.1 raspi2
eduardofilo
Posts: 6
Joined: 06 Feb 2015 20:39

Re: Wrong authentication. Packet ignored

Post by eduardofilo »

Hi.

I have managed to find where the key is stored. It is inside a file in /opt/z-way-server/config/zddx directory.
In one of the installations that give me the related problem I find:

Code: Select all

<data name="networkKey" invalidateTime="1432297330" updateTime="1446382795" type="binary" value="[ eb 26 48 48 f9 8d f3 66 7a e7 68 3f f2 94 cc b0 ]"/>
The updateTime correspond to "sun 01 nov 2015 13:59:55 CET GMT+1:00" that is exactly the instant when I began losing all multisensors. If I had known, I would have saved.

Anyway, do you believe the interpretation is correct? And why can this have happened?

Thanks...
Post Reply