ERROR: could not connect container component to router

105 views
Skip to first unread message

Nick Z

unread,
Mar 28, 2015, 6:56:07 PM3/28/15
to cross...@googlegroups.com
Hi i am having trouble getting crossbar to start on the raspberry pi.
I get this ERROR: could not connect container component to router - transport establishment failed (User timeout caused connection failure.)
I have tried three time with clean installs of latest raspbian with no luck.
any help would be appreciated.

Thanks

2015-03-28 22:30:30+0000 [Controller  21672] Log opened.
2015-03-28 22:30:30+0000 [Controller  21672] ==================== Crossbar.io ====================

2015-03-28 22:30:30+0000 [Controller  21672] Crossbar.io 0.10.3 starting
2015-03-28 22:30:30+0000 [Controller  21672] Running on CPython using EPollReactor reactor
2015-03-28 22:30:30+0000 [Controller  21672] Starting from node directory /home/pi/env/.crossbar
2015-03-28 22:30:31+0000 [Controller  21672] Starting from local configuration '/home/pi/env/.crossbar/config.json'
2015-03-28 22:30:32+0000 [Controller  21672] Router created for realm 'crossbar'
2015-03-28 22:30:32+0000 [Controller  21672] No WAMPlets detected in enviroment.
2015-03-28 22:30:32+0000 [Controller  21672] Starting Router with ID 'worker1' ..
2015-03-28 22:30:32+0000 [Controller  21672] Entering reactor event loop ...
2015-03-28 22:30:33+0000 [Router      21960] Log opened.
2015-03-28 22:30:48+0000 [Router      21960] Running under CPython using EPollReactor reactor
2015-03-28 22:30:52+0000 [Router      21960] Entering event loop ..
2015-03-28 22:30:52+0000 [Controller  21672] Router with ID 'worker1' and PID 21960 started
2015-03-28 22:30:52+0000 [Controller  21672] Router 'worker1': PYTHONPATH extended
2015-03-28 22:30:52+0000 [Controller  21672] Router 'worker1': realm 'realm1' (named 'realm1') started
2015-03-28 22:30:52+0000 [Controller  21672] Router 'worker1': role 'role1' (named 'anonymous') started on realm 'realm1'
2015-03-28 22:30:53+0000 [Router      21960] Site starting on 8080
2015-03-28 22:30:53+0000 [Controller  21672] Router 'worker1': transport 'transport1' started
2015-03-28 22:30:53+0000 [Controller  21672] Starting Container with ID 'worker2' ..
2015-03-28 22:30:54+0000 [Container   22273] Log opened.
2015-03-28 22:31:08+0000 [Container   22273] Running under CPython using EPollReactor reactor
2015-03-28 22:31:12+0000 [Container   22273] Entering event loop ..
2015-03-28 22:31:13+0000 [Controller  21672] Container with ID 'worker2' and PID 22273 started
2015-03-28 22:31:13+0000 [Controller  21672] Container 'worker2': PYTHONPATH extended
2015-03-28 22:31:23+0000 [Container   22273] ERROR: could not connect container component to router - transport establishment failed (User timeout caused connection failure.)
2015-03-28 22:31:23+0000 [Container   22273] Unhandled Error
2015-03-28 22:31:23+0000 [Container   22273] Traceback (most recent call last):
2015-03-28 22:31:23+0000 [Container   22273] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 1077, in connectionFailed
2015-03-28 22:31:23+0000 [Container   22273] self.factory.clientConnectionFailed(self, reason)
2015-03-28 22:31:23+0000 [Container   22273] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/endpoints.py", line 244, in clientConnectionFailed
2015-03-28 22:31:23+0000 [Container   22273] self._onConnection.errback(reason)
2015-03-28 22:31:23+0000 [Container   22273] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 424, in errback
2015-03-28 22:31:23+0000 [Container   22273] self._startRunCallbacks(fail)
2015-03-28 22:31:23+0000 [Container   22273] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 491, in _startRunCallbacks
2015-03-28 22:31:23+0000 [Container   22273] self._runCallbacks()
2015-03-28 22:31:23+0000 [Container   22273] --- <exception caught here> ---
2015-03-28 22:31:23+0000 [Container   22273] File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 578, in _runCallbacks
2015-03-28 22:31:23+0000 [Container   22273] current.result = callback(current.result, *args, **kw)
2015-03-28 22:31:23+0000 [Container   22273] File "/usr/local/lib/python2.7/dist-packages/crossbar/worker/container.py", line 298, in error
2015-03-28 22:31:23+0000 [Container   22273] raise ApplicationError('crossbar.error.cannot_connect', emsg)
2015-03-28 22:31:23+0000 [Container   22273] autobahn.wamp.exception.ApplicationError: ApplicationError('crossbar.error.cannot_connect', args = ('ERROR: could not connect container component to router - transport establishment failed (User timeout caused connection failure.)',), kwargs = {})
2015-03-28 22:31:23+0000 [Container   22273] 'Failure while invoking procedure <bound method ContainerWorkerSession.start_container_component of <crossbar.worker.container.ContainerWorkerSession object at 0x24e7770>> registered under "crossbar.node.raspberrypi.worker.worker2.start_container_component".'
2015-03-28 22:31:23+0000 [Controller  21672] Traceback (most recent call last):
2015-03-28 22:31:23+0000 [Controller  21672]   File "/usr/local/lib/python2.7/dist-packages/crossbar/controller/node.py", line 183, in run_node_config
2015-03-28 22:31:23+0000 [Controller  21672]     yield self._run_node_config(config)
2015-03-28 22:31:23+0000 [Controller  21672] ApplicationError: ApplicationError('crossbar.error.cannot_connect', args = ('ERROR: could not connect container component to router - transport establishment failed (User timeout caused connection failure.)',), kwargs = {})
2015-03-28 22:31:23+0000 [Controller  21672] Main loop terminated.

Elvis Stansvik

unread,
Mar 30, 2015, 7:24:12 AM3/30/15
to cross...@googlegroups.com
Hi,

On Saturday, March 28, 2015 at 11:56:07 PM UTC+1, Nick Z wrote:
Hi i am having trouble getting crossbar to start on the raspberry pi.
I get this ERROR: could not connect container component to router - transport establishment failed (User timeout caused connection failure.)
I have tried three time with clean installs of latest raspbian with no luck.
any help would be appreciated.

It would help to see your node configuration (.crossbar/config.json or .crossbar/config.yml).

Elvis

Nick Z

unread,
Mar 31, 2015, 2:40:27 AM3/31/15
to cross...@googlegroups.com
Hi.
Here is the .crossbar/config.json contents
I am just using the .crossbar init --template hello:python template.

{
   "controller": {
   },
   "workers": [
      {
         "type": "router",
         "options": {
            "pythonpath": [".."]
         },
         "realms": [
            {
               "name": "realm1",
               "roles": [
                  {
                     "name": "anonymous",
                     "permissions": [
                        {
                           "uri": "*",
                           "publish": true,
                           "subscribe": true,
                           "call": true,
                           "register": true
                        }
                     ]
                  }
               ]
            }
         ],
         "transports": [
            {
               "type": "web",
               "endpoint": {
                  "type": "tcp",
                  "port": 8080
               },
               "paths": {
                  "/": {
                     "type": "static",
                     "directory": "../hello/web"
                  },
                  "ws": {
                     "type": "websocket"
                  }
               }
            }
         ]
      },
      {
         "type": "container",
         "options": {
            "pythonpath": [".."]
         },
         "components": [
            {
               "type": "class",
               "classname": "hello.hello.AppSession",
               "realm": "realm1",
               "transport": {
                  "type": "websocket",
                  "endpoint": {
                     "type": "tcp",
                     "host": "127.0.0.1",
                     "port": 8080
                  },
                  "url": "ws://127.0.0.1:8080/ws"
               }
            }
         ]
      }
   ]
}

Thanks.

- Nick

Elvis Stansvik

unread,
Apr 3, 2015, 8:35:13 AM4/3/15
to cross...@googlegroups.com
2015-03-31 8:40 GMT+02:00 Nick Z <s61...@gmail.com>:
Hi.
Here is the .crossbar/config.json contents
I am just using the .crossbar init --template hello:python template.

That's quite strange. Works for me:

(full_env)[estan@pyret tmp]$ crossbar init --template hello:python
Initializing application template 'hello:python' in directory '/home/estan/Projekt/orexplore/dev/Elvis/tmp'
Using template from '/home/estan/Projekt/orexplore/dev/Elvis/full_env/lib/python2.7/site-packages/crossbar/templates/hello/python'
Creating directory /home/estan/Projekt/orexplore/dev/Elvis/tmp/hello
Creating directory /home/estan/Projekt/orexplore/dev/Elvis/tmp/.crossbar
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/MANIFEST.in
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/README.md
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/setup.py
Creating directory /home/estan/Projekt/orexplore/dev/Elvis/tmp/hello/web
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/hello/hello.py
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/hello/__init__.py
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/hello/web/index.html
Creating file      /home/estan/Projekt/orexplore/dev/Elvis/tmp/.crossbar/config.json
Application template initialized

To start your node, run 'crossbar start --cbdir /home/estan/Projekt/orexplore/dev/Elvis/tmp/.crossbar'
                                                                                           
(full_env)[estan@pyret tmp]$ crossbar start                                                                                          
2015-04-03 14:30:25+0200 [Controller   3963] Log opened.                                                                             
2015-04-03 14:30:25+0200 [Controller   3963] ==================== Crossbar.io ====================                                   
                                                                                                                                     
2015-04-03 14:30:25+0200 [Controller   3963] Crossbar.io 0.10.3 starting                                                             
2015-04-03 14:30:25+0200 [Controller   3963] Running on CPython using EPollReactor reactor                                           
2015-04-03 14:30:25+0200 [Controller   3963] Starting from node directory /home/estan/Projekt/orexplore/dev/Elvis/tmp/.crossbar      
2015-04-03 14:30:25+0200 [Controller   3963] Starting from local configuration '/home/estan/Projekt/orexplore/dev/Elvis/tmp/.crossbar/config.json'                                                                                                                        
2015-04-03 14:30:25+0200 [Controller   3963] Router created for realm 'crossbar'                                                     
2015-04-03 14:30:26+0200 [Controller   3963] No WAMPlets detected in enviroment.                                                     
2015-04-03 14:30:26+0200 [Controller   3963] Starting Router with ID 'worker1' ..                                                    
2015-04-03 14:30:26+0200 [Controller   3963] Entering reactor event loop ...                                                         
2015-04-03 14:30:26+0200 [Router       3967] Log opened.                                                                             
2015-04-03 14:30:26+0200 [Router       3967] Running under CPython using EPollReactor reactor                                        
2015-04-03 14:30:27+0200 [Router       3967] Entering event loop ..                                                                  
2015-04-03 14:30:27+0200 [Controller   3963] Router with ID 'worker1' and PID 3967 started                                           
2015-04-03 14:30:27+0200 [Controller   3963] Router 'worker1': PYTHONPATH extended
2015-04-03 14:30:27+0200 [Controller   3963] Router 'worker1': realm 'realm1' (named 'realm1') started
2015-04-03 14:30:27+0200 [Controller   3963] Router 'worker1': role 'role1' (named 'anonymous') started on realm 'realm1'
2015-04-03 14:30:27+0200 [Router       3967] Site starting on 8080
2015-04-03 14:30:27+0200 [Controller   3963] Router 'worker1': transport 'transport1' started
2015-04-03 14:30:27+0200 [Controller   3963] Starting Container with ID 'worker2' ..
2015-04-03 14:30:27+0200 [Container    3972] Log opened.
2015-04-03 14:30:27+0200 [Container    3972] Running under CPython using EPollReactor reactor
2015-04-03 14:30:28+0200 [Container    3972] Entering event loop ..
2015-04-03 14:30:28+0200 [Controller   3963] Container with ID 'worker2' and PID 3972 started
2015-04-03 14:30:28+0200 [Controller   3963] Container 'worker2': PYTHONPATH extended
2015-04-03 14:30:28+0200 [Controller   3963] Container 'worker2': component 'component1' started
2015-04-03 14:30:28+0200 [Container    3972] subscribed to topic 'onhello': Subscription(id=1881020823, is_active=True)
2015-04-03 14:30:28+0200 [Container    3972] procedure add2() registered: <autobahn.wamp.protocol.Registration object at 0x7f14a5cbed90>
2015-04-03 14:30:28+0200 [Container    3972] published to 'oncounter' with counter 0
2015-04-03 14:30:29+0200 [Container    3972] published to 'oncounter' with counter 1
2015-04-03 14:30:30+0200 [Container    3972] published to 'oncounter' with counter 2
2015-04-03 14:30:31+0200 [Container    3972] published to 'oncounter' with counter 3
2015-04-03 14:30:32+0200 [Container    3972] published to 'oncounter' with counter 4
^C2015-04-03 14:30:32+0200 [Controller   3963] Received SIGINT, shutting down.
2015-04-03 14:30:32+0200 [Controller   3963] Main loop terminated. 
(full_env)[estan@pyret tmp]$ crossbar version

Crossbar.io package versions and platform information:

Crossbar.io                  : 0.10.3

 Autobahn|Python            : 0.10.2
   WebSocket UTF8 Validator : ?
   WebSocket XOR Masker     : ?
   WAMP JSON Codec          : stdlib
   WAMP MsgPack Codec       : msgpack-python-0.4.6
 Twisted                    : 15.0.0-EPollReactor
 Python                     : 2.7.9-CPython

OS                           : Linux-3.19.2-1-ARCH-x86_64-with-glibc2.2.5
Machine                      : x86_64

I have no idea :( Maybe some firefall issue? (Though really should be, as it's connecting to localhost).

Elvis

--
You received this message because you are subscribed to the Google Groups "Crossbar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crossbario+...@googlegroups.com.
To post to this group, send email to cross...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/crossbario/fae457af-07c0-49fb-97a0-0c448a599e03%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages