Help: Issue with wss python

#1

Hi ,

I have tried to run wss python example mentioned in https://github.com/crossbario/crossbar-examples/tree/master/wss/python with out any issues. When I replace server_cert.pem and server_key.pem with commercial certificates and start the crossbar server it exits with the following trace. I have attached the full trace.

2017-04-14T12:33:24+0000 [Controller 489] Container ‘worker-002’: component ‘component-001’ started

2017-04-14T12:33:24+0000 [Controller 489] Local node configuration applied successfully!

2017-04-14T12:33:24+0000 [Container 501] Lost connection to component ‘component-001’ with code ‘1006’.

2017-04-14T12:33:24+0000 [Container 501] connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)

2017-04-14T12:33:24+0000 [Container 501] Container is hosting no more components: stopping container …

The complete trace has been attached. Are there anyother changes to be made in the config.json other than replacing server_cert and server_key files? Please help.

version details

Crossbar.io : 17.3.1 (Crossbar.io COMMUNITY)

Autobahn : 0.17.2 (with JSON, MessagePack, CBOR, UBJSON)

Twisted : 17.1.0-EPollReactor

LMDB : 0.92/lmdb-0.9.18

Python : 2.7.12/CPython

OS : Linux-4.4.0-64-generic-x86_64-with-Ubuntu-16.04-xenial

Machine : x86_64

Thank You,

Srinivas

wsstrace.txt (6.14 KB)

0 Likes

#2

HI ,
I have solved this issue by proxy passing through nginx and running crossbar without TLS. Nginx changes below

location /ws {

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection “upgrade”;

proxy_http_version 1.1;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Host $host;

proxy_pass http://localhost:8080;

}

···

On Friday, April 14, 2017 at 6:19:56 PM UTC+5:30, Pruthvi N wrote:

Hi ,

I have tried to run wss python example mentioned in https://github.com/crossbario/crossbar-examples/tree/master/wss/python with out any issues. When I replace server_cert.pem and server_key.pem with commercial certificates and start the crossbar server it exits with the following trace. I have attached the full trace.

2017-04-14T12:33:24+0000 [Controller 489] Container ‘worker-002’: component ‘component-001’ started

2017-04-14T12:33:24+0000 [Controller 489] Local node configuration applied successfully!

2017-04-14T12:33:24+0000 [Container 501] Lost connection to component ‘component-001’ with code ‘1006’.

2017-04-14T12:33:24+0000 [Container 501] connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)

2017-04-14T12:33:24+0000 [Container 501] Container is hosting no more components: stopping container …

The complete trace has been attached. Are there anyother changes to be made in the config.json other than replacing server_cert and server_key files? Please help.

version details

Crossbar.io : 17.3.1 (Crossbar.io COMMUNITY)

Autobahn : 0.17.2 (with JSON, MessagePack, CBOR, UBJSON)

Twisted : 17.1.0-EPollReactor

LMDB : 0.92/lmdb-0.9.18

Python : 2.7.12/CPython

OS : Linux-4.4.0-64-generic-x86_64-with-Ubuntu-16.04-xenial

Machine : x86_64

Thank You,

Srinivas

0 Likes