Failed to perform handshake

Discussions about Z-Way software and Z-Wave technology in general
aspliid
Posts: 7
Joined: 11 Jun 2011 21:44

Failed to perform handshake

Post by aspliid »

Hi!

For about a day or so, I have been unable to connect to the Z-Cloud server. I get a "Failed to perform handshake: (null)" error.

User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Should be fixed now

Post by PoltoS »

Excuse for the late answer, we had some problems with connectivity. We hope to fix them definitely soon.
mredeker
Posts: 1
Joined: 26 Jan 2012 18:53

Same problem

Post by mredeker »

I registered today and wanted to take a look at this but the "z-connector" stays at "Performing SSL handshake..." and the portal says that my agent is not connected.
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

We don't see any connection for your account on our side.

Post by PoltoS »

May be you have a firewall blocking port 9087?

Have you changes something in Z-Connector settings? The only field to change is the Serial Port name. Other options should be kept as is.
Soepkip
Posts: 15
Joined: 17 Jan 2012 16:04

Same problem here.....

Post by Soepkip »

While I have been connected to the cloud at some point, now the SSL handshake cannot be completed.

Checked my router and COM-port settings, turned out I had the wrong COM port selected. Corrected this and now it's connected to Z-Cloud!
woudt
Posts: 5
Joined: 12 Feb 2012 16:52

Same problem here

Post by woudt »

I'm running into similar problems:

Environment:
- Mac OS X 10.7.3
- Aeon Labs Z-Stick 2
- new drivers from http://www.silabs.com/products/mcu/Page ... ivers.aspx as the ones on the Aeotec site don't work

Contents of Run_Z-Agent.sh:

#!/bin/bash

while [ 1 ]
do
${0%/*}/z-agent --debug -s z-cloud.z-wave.me --cacert ../Certificates/cacert.pem --cert ../Certificates/cert.pem --key ../Certificates/cert.key -d /dev/cu.SLAB_USBtoUART
# substitute /dev/ttyUSB0 by /dev/ttyACM0 or another device depending on the hardware you have

sleep 1 # spare the CPU
done


Note that I did add --debug to get some more debugging information. This results in the following log when I try to run the agent:


$ ./Run_Z-Agent.sh
Opening device...
[D] Configuring device...
[W] Failed to alter device settings: 22
[D] Creating a socket...
[D] Enabling keep-alives on the socket...
Connecting to server...
[D] Initialising OpenSSL environment...
[D] Allocating SSL context...
[D] Loading personal certificate...
[D] Loading personal certificate key...
[D] Loading CA certificate...
[D] Setting verification mode...
Establishing SSL connection...
[D] Allocating SSL session...
[D] Assigning socket...
Performing SSL handshake...
[D] Initialising SSL state...
[D] Sending handshake...


and there it just hangs...
woudt
Posts: 5
Joined: 12 Feb 2012 16:52

After a while

Post by woudt »

Turns out that if I wait long enough, the following happens:


.......
[D] Sending handshake...
Loop started
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] socket has data
[D] 5 bytes:
[D] 01 03 00 07 FB
[D] Server has closed the connection
[E] Socket has gone
Loop ended
[D] Shutting down SSL session...
[D] Freeing SSL session...
[D] Freeing SSL context...


And then it all starts over again, due to the loop in Run_Z-Agent.sh

The website is still complaining that the Z-Connector is not connected to the Z-Cloud server
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Fixed

Post by PoltoS »

We apologize, there was a server side problem Not it is fixed,
cvdberg
Posts: 1
Joined: 25 Feb 2012 11:36

SSL

Post by cvdberg »

I am connected to Z-cloud but SSL is preventing opening the page, 'it hangs' on several computers
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

What do you mean by "prevent"?

Post by PoltoS »

Note that Z-Cloud supports only Chrome (preferred), Firefox and Safari. IE and Opera will not work.

If you use one of supported browser, do you see moving icon with blue circles?
Post Reply