微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无docker的纵横制路由器启动

如何解决无docker的纵横制路由器启动

在Windows 10和crossbar.io中使用pip install crossbar安装了python 3.7

在cmd中,运行以下命令:

crossbar init
crossbar start

但是路由器无法启动。错误日志如下(full logs here):

2020-09-09T22:13:48+0530 [Router      67564] Router transport created for "transport002" [transport_class=<crossbar.worker.transport.RouterWebTransport>]
2020-09-09T22:13:48+0530 [Router      67564] Created "static" Web service on root path "/" of Web transport "transport002"
2020-09-09T22:13:48+0530 [Router      67564] Cannot listen on transport endpoint: [Failure instance: Traceback: <class 'twisted.internet.error.CannotListenError'>: Couldn't listen on any:8080: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted.
autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\defer.py:1418:_inlineCallbacks
autobahn-python\examplestest\cbio\lib\site-packages\crossbar\worker\transport.py:234:start
autobahn-python\examplestest\cbio\lib\site-packages\crossbar\common\twisted\endpoint.py:584:create_listening_port_from_config
autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\endpoints.py:495:listen
--- <exception caught here> ---
autobahn-python\examplestest\cbio\lib\site-packages\crossbar\worker\transport.py:234:start
autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\defer.py:122:execute
autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\iocpreactor\reactor.py:157:listenTCP
autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\iocpreactor\tcp.py:458:startListening
]
Traceback (most recent call last):
  File "autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\defer.py",line 1418,in _inlineCallbacks
    result = g.send(result)
  File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\worker\transport.py",line 234,in start
    self.log,File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\common\twisted\endpoint.py",line 584,in create_listening_port_from_config
    return endpoint.listen(factory)
  File "autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\endpoints.py",line 495,in listen
    interface=self._interface)
--- <exception caught here> ---
  File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\worker\transport.py",File "autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\defer.py",line 122,in execute
    result = callable(*args,**kw)
  File "autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\iocpreactor\reactor.py",line 157,in listenTCP
    p.startListening()
  File "autobahn-python\examplestest\cbio\lib\site-packages\twisted\internet\iocpreactor\tcp.py",line 458,in startListening
    raise error.CannotListenError(self.interface,self.port,le)
twisted.internet.error.CannotListenError: Couldn't listen on any:8080: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted.

2020-09-09T22:13:48+0530 [Controller  65984] Could not start node: Traceback (most recent call last):
--- <exception caught here> ---
  File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\node\node.py",line 468,in start
    res = yield self.personality.Node.boot(self)
  File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\node\node.py",line 608,in boot_from_config
    yield d
  File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\node\node.py",line 581,in configure_worker
    yield config_fn(worker_logname,worker_id,worker)
  File "autobahn-python\examplestest\cbio\lib\site-packages\crossbar\node\node.py",line 731,in _configure_native_worker_router
    options=CallOptions())
autobahn.wamp.exception.ApplicationError: ApplicationError(error=<crossbar.error.cannot_listen>,args=['Cannot listen on transport endpoint: {log_failure}'],kwargs={},enc_algo=None,callee=None,callee_authid=None,callee_authrole=None,forward_for=None)

2020-09-09T22:13:48+0530 [Controller  65984] sending TERM to subprocess 67564
2020-09-09T22:13:48+0530 [Controller  65984] waiting for 67564 to exit...
2020-09-09T22:13:48+0530 [Controller  65984] Native worker connection closed uncleanly: A process has ended with a probable error condition: process ended with exit code 1.
2020-09-09T22:13:48+0530 [Controller  65984] detached session 1935629316883057 from realm "crossbar" (authid="crossbar.process.67564",authrole="crossbar.worker.worker001",detached 1 sessions total) <crossbar.router.router.Router.detach>
2020-09-09T22:13:48+0530 [Controller  65984] Node worker worker001 ended with error ([Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.Processterminated'>: A process has ended with a probable error condition: process ended with exit code 1.
])
2020-09-09T22:13:48+0530 [Controller  65984] Checking for node shutdown: worker_exit_success=False,shutdown_requested=False,node_shutdown_triggers=['shutdown_on_worker_exit']
2020-09-09T22:13:48+0530 [Controller  65984] Node worker ended,and trigger 'shutdown_on_worker_exit' is active: will shutdown node ..
2020-09-09T22:13:48+0530 [Controller  65984] Node shutdown requested (restart=False,mode=None,reactor.running=True) ..

注意:我实际上想要实现的目标已发布在here上。我发现crossbarautobahn可能有用。要将它们用于我的上下文,需要一个路由器。

我错过了什么?如何在没有docker的情况下启动路由器?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?