Cant run basic example

#1

Dear friends,

I used Autiblahn for a while and did not faced problems before. Now I migrated my application to fresh installation and cant start it, I thought it was problem with my app, but I initialized new project(crossbar init --template hello:python --appdir test) and cant start it either :frowning:

It stacks with
2016-07-14T10:51:29+0000 [Controller 7762] Container ‘worker-002’: component ‘component-001’ started

and does not move further. def onJoin(self, details) does not run, and I get error on client

WebSocket connection to ‘ws://127.0.0.1:8080/ws’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

How can I fix it?

Thank you in advance Julia

0 Likes

#2

BTW

crossbar version


/ |__)/ \/__/`|) /\ |__) |/ \

_,| \/././|)/~~| . |_/

Crossbar.io : 0.14.0

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

Twisted : 16.3.0-EPollReactor

LMDB : 0.90/lmdb-0.9.70

Python : 2.7.10/CPython

OS : Linux-3.10.96-86-armv7l-with-Ubuntu-15.10-wily

Machine : armv7l

0 Likes

#3

All output is

2016-07-14T11:56:06+0000 [Controller 2778] __ __ __ __ __ __ __ __

2016-07-14T11:56:06+0000 [Controller 2778] / |__)/ \/__/`|) /\ |__) |/ \

2016-07-14T11:56:06+0000 [Controller 2778] _,| \/././|)/~~| . |_/

2016-07-14T11:56:06+0000 [Controller 2778]

2016-07-14T11:56:06+0000 [Controller 2778] Crossbar.io Version: 0.14.0

2016-07-14T11:56:06+0000 [Controller 2778] Node Public Key: 576572986ae1c053c63ce33f69fd15fad01492f69f838ae131711122976cf725

2016-07-14T11:56:06+0000 [Controller 2778]

2016-07-14T11:56:06+0000 [Controller 2778] Running from node directory ‘/home/odroid/testws/.crossbar’

2016-07-14T11:56:06+0000 [Controller 2778] Controller process starting (CPython-EPollReactor) …

2016-07-14T11:56:06+0000 [Controller 2778] Node configuration loaded from ‘config.json’

2016-07-14T11:56:06+0000 [Controller 2778] Node ID ‘odroid’ set from hostname

2016-07-14T11:56:06+0000 [Controller 2778] Using default node shutdown triggers [u’shutdown_on_worker_exit’]

2016-07-14T11:56:06+0000 [Controller 2778] Joined realm ‘crossbar’ on node management router

2016-07-14T11:56:06+0000 [Controller 2778] Starting Router with ID ‘worker-001’…

2016-07-14T11:56:07+0000 [Router 2785] Worker process starting (CPython-EPollReactor) …

2016-07-14T11:56:07+0000 [Controller 2778] Router with ID ‘worker-001’ and PID 2785 started

2016-07-14T11:56:07+0000 [Router 2785] Realm ‘realm1’ started

2016-07-14T11:56:07+0000 [Controller 2778] Router ‘worker-001’: realm ‘realm-001’ (named ‘realm1’) started

2016-07-14T11:56:07+0000 [Controller 2778] Router ‘worker-001’: role ‘role-001’ (named ‘anonymous’) started on realm ‘realm-001’

2016-07-14T11:56:07+0000 [Router 2785] Site starting on 8080

2016-07-14T11:56:07+0000 [Controller 2778] Router ‘worker-001’: transport ‘transport-001’ started

2016-07-14T11:56:07+0000 [Controller 2778] Starting Container with ID ‘worker-002’…

2016-07-14T11:56:08+0000 [Container 2790] Worker process starting (CPython-EPollReactor) …

2016-07-14T11:56:09+0000 [Controller 2778] Container with ID ‘worker-002’ and PID 2790 started

2016-07-14T11:56:09+0000 [Container 2790] JULIAAAAA

2016-07-14T11:56:09+0000 [Controller 2778] Container ‘worker-002’: component ‘component-001’ started

2016-07-14T11:57:08+0000 [Container 2790] Lost connection to component ‘component-001’ with code ‘1006’.

2016-07-14T11:57:08+0000 [Container 2790] connection was closed uncleanly (peer dropped the TCP connection without previous WebSocket closing handshake)

2016-07-14T11:57:08+0000 [Container 2790] Container is hosting no more components: shutting down.

2016-07-14T11:57:08+0000 [Container 2790] Connection to node controller closed cleanly

2016-07-14T11:57:08+0000 [Controller 2778] Native worker connection closed cleanly.

2016-07-14T11:57:08+0000 [Controller 2778] Node worker worker-002 ended successfully

2016-07-14T11:57:08+0000 [Controller 2778] Node worker ended, and trigger ‘shutdown_on_worker_exit’ active

2016-07-14T11:57:08+0000 [Controller 2778] Node shutting down …

2016-07-14T11:57:08+0000 [Controller 2778] Shutting down node…

2016-07-14T11:57:08+0000 [Controller 2778] sending TERM to subprocess 2785

2016-07-14T11:57:08+0000 [Controller 2778] waiting for 2785 to exit…

2016-07-14T11:57:08+0000 [Controller 2778] sending TERM to subprocess 2790

2016-07-14T11:57:08+0000 [Router 2785] Native worker received SIGTERM - shutting down …

2016-07-14T11:57:08+0000 [Router 2785] Shutdown of worker requested!

2016-07-14T11:57:08+0000 [Router 2785] Connection to node controller closed cleanly

2016-07-14T11:57:08+0000 [Router 2785] (TCP Port 8080 Closed)

2016-07-14T11:57:08+0000 [Controller 2778] Native worker connection closed cleanly.

2016-07-14T11:57:08+0000 [Controller 2778] Node worker worker-001 ended successfully

2016-07-14T11:57:08+0000 [Controller 2778] Node worker ended, and trigger ‘shutdown_on_worker_exit’ active

2016-07-14T11:57:08+0000 [Controller 2778] Node is already shutting down.

Proframm stacks and after I try to access http://127.0.0.1:8080/ it closes connection ;(((

0 Likes

#4

Might be related to this issue: https://github.com/crossbario/autobahn-python/issues/701

···

On Thursday, July 14, 2016 at 4:01:32 AM UTC-7, Julia Rakitina wrote:

BTW

crossbar version


/ |__)/ \/__/`|) /\ |__) |/ \

_,| \/././|)/~~| . |_/

Crossbar.io : 0.14.0

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

Twisted : 16.3.0-EPollReactor

LMDB : 0.90/lmdb-0.9.70

Python : 2.7.10/CPython

OS : Linux-3.10.96-86-armv7l-with-Ubuntu-15.10-wily

Machine : armv7l

0 Likes

#5

Fixed downloading and installing Autoblahn from GIT.

···

On Friday, July 15, 2016 at 7:51:10 PM UTC+4, Lance Kurisaki wrote:

Might be related to this issue: https://github.com/crossbario/autobahn-python/issues/701

On Thursday, July 14, 2016 at 4:01:32 AM UTC-7, Julia Rakitina wrote:

BTW

crossbar version


/ |__)/ \/__/`|) /\ |__) |/ \

_,| \/././|)/~~| . |_/

Crossbar.io : 0.14.0

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

Twisted : 16.3.0-EPollReactor

LMDB : 0.90/lmdb-0.9.70

Python : 2.7.10/CPython

OS : Linux-3.10.96-86-armv7l-with-Ubuntu-15.10-wily

Machine : armv7l

0 Likes