Page 1 of 3

Failed to perform handshake

Posted: 15 Jul 2011 10:12
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.


Should be fixed now

Posted: 15 Jul 2011 10:12
by PoltoS
Excuse for the late answer, we had some problems with connectivity. We hope to fix them definitely soon.

Same problem

Posted: 15 Jul 2011 10:12
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.

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

Posted: 15 Jul 2011 10:12
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.

Same problem here.....

Posted: 15 Jul 2011 10:12
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!

Same problem here

Posted: 15 Jul 2011 10:12
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...

After a while

Posted: 15 Jul 2011 10:12
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

Fixed

Posted: 15 Jul 2011 10:12
by PoltoS
We apologize, there was a server side problem Not it is fixed,

SSL

Posted: 15 Jul 2011 10:12
by cvdberg
I am connected to Z-cloud but SSL is preventing opening the page, 'it hangs' on several computers

What do you mean by "prevent"?

Posted: 15 Jul 2011 10:12
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?