【问题标题】:Rush installation and integration with Orion Context Broker与 Orion Context Broker 的 Rush 安装和集成
【发布时间】:2014-12-05 14:48:40
【问题描述】:

在运行了监听器和一次匆忙中的消费者之后,我运行:

contextBroker -rush localhost:5001

我确保使用 Orion 0.17 而不是 0.14,输入 /version url 后显示的是:

<orion>
<version>0.17.0</version>
<uptime>0 d, 0 h, 12 m, 14 s</uptime>
<git_hash>127793ff921b37a6a570cd315ddce9a3ec541ccf</git_hash>
<compile_time>Fri Nov 28 09:41:22 CET 2014</compile_time>
<compiled_by>fermin</compiled_by>
<compiled_in>centollo</compiled_in>
</orion>

现在 Rush 中继器工作正常,它在终端中显示的是:

[root@fiware ngsi-proxy]# contextBroker -rush localhost:5001INFO@15:49:27  contextBroker.cpp[1348]: Orion Context Broker is running
[root@fiware ngsi-proxy]# INFO@15:49:27  MongoGlobal.cpp[164]: Successful connection to database
INFO@15:49:27  contextBroker.cpp[1157]: Connected to mongo at localhost:orion
INFO@15:49:28  MongoGlobal.cpp[483]: Database Operation Successful ({ conditions.type: "ONTIMEINTERVAL" })
INFO@15:49:28  contextBroker.cpp[1435]: Startup completed
[root@fiware ngsi-proxy]# INFO@16:01:41  rest.cpp[667]: Starting transaction from 181.64.209.16:8204/version
INFO@16:01:41  rest.cpp[380]: Transaction ended
INFO@16:01:42  rest.cpp[667]: Starting transaction from 181.64.209.16:8204/favicon.ico
WARNING@16:01:42  badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@16:01:42  rest.cpp[380]: Transaction ended

【问题讨论】:

  • 我们需要更多信息来帮助您。 Rush 消费者日志或 Rush 侦听器日志中是否有任何错误消息?如果没有,请尝试在 lib/configBase.js 文件中将日志级别更改为调试并重新启动两个服务(初始化期间可能出现问题)。你安装的是什么版本的redis?请记住,Rush 至少需要 2.6 才能正常工作。请编辑您的问题以包含该信息。
  • @fgalan 我留下了你要问的日志。如果需要任何其他信息,请告诉我。
  • 你用的是哪个redis版本?请编辑您的问题以包含该信息。

标签: https fiware-orion fiware fiware-wirecloud


【解决方案1】:

您应该使用http://myorionserver:1026 填写 NGSI 服务器 URL 设置,因为这是您的 Orion Context Broker 实例的 URL。通过打开以下 URL,确保可以从外部访问您的 Orion 上下文代理:http://myorionserver:1026/version。你应该得到类似的东西:

<orion>
  <version>0.17.0</version>
  <uptime>0 d, 4 h, 38 m, 48 s</uptime>
  <git_hash>127793ff921b37a6a570cd315ddce9a3ec541ccf</git_hash>
  <compile_time>Fri Nov 28 09:41:22 CET 2014</compile_time>
  <compiled_by>fermin</compiled_by>
  <compiled_in>centollo</compiled_in>
</orion>

如果您在连接到 Orion 服务器时遇到问题,请检查您的防火墙配置。其他一切似乎都很好。

更新:更新后,问题似乎与您使用的 Orion Context Broker 的版本有关。 Rush 集成至少需要 0.14.1 版本,但我建议您至少使用 0.17 版本,因为该版本包含有关 Rush 集成的重要修复等内容。一般来说,更新到 Context Broker 的最新稳定版本总是一个好主意;-)

【讨论】:

  • 0.14.1 中引入 libcurl 作为 HTTP 发送库,与之前的系统相比,似乎是一个很大的改进:)
猜你喜欢
  • 1970-01-01
  • 2015-08-14
  • 2017-04-21
  • 1970-01-01
  • 2016-03-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多