FIWARE Orion 订阅创建失败

FIWARE Orion subscription creation failed

正在尝试在 FIWARE Orion 上创建订阅以通知 Cygnus 实例。但无论我尝试或做什么,我都以订阅状态失败。

主要问题似乎是 Cygnus URL 我正在使用通知,但 Cygnus 已经启动并且 运行ning 没有任何问题,这个问题仍然存在。

FIWARE Orion 版本:

"orion" : {
"version" : "1.15.0-next",
"uptime" : "0 d, 0 h, 24 m, 24 s",
"git_hash" : "9cf2ea8243e4757a52c9019d197112abcf715dbe",
"compile_time" : "Mon Sep 24 08:22:30 UTC 2018",
"compiled_by" : "root",
"compiled_in" : "ea5d2e530912",
"release_date" : "Mon Sep 24 08:22:30 UTC 2018",
"doc" : "https://fiware-orion.readthedocs.org/en/master/"
}

FIWARE Cygnus 版本:

version 1.9.0_SNAPSHOT.887d615a9dfc2c09c99e511f8cefb148aa54809e

FIWARE Orion 错误日志:

time=Thursday 27 Sep 13:33:09 2018.712Z | lvl=WARN | corr=N/A | 
trans=1538055058-177-00000000002 | from=pending | srv=pending | 
subsrv=pending | comp=Orion | 
op=AlarmManager.cpp[328]:notificationError | msg=Raising alarm 
NotificationError http://172.20.0.2:5050/notify: (curl_easy_perform 
failed: Timeout was reached)

订阅正文:

{
"description": "A subscription to get info about Room entity",
"subject": {
"entities": [
  {
    "idPattern": ".*",
    "type": "Room"
  }
],
"condition": {
  "attrs": [

  ]
}
},
"notification": {
"http": {
  "url": "http://172.20.0.2:5050/notify"
},
"attrs": [

]
},
"expires": "2040-01-01T14:00:00.00Z",
"throttling": 5
}

我发现了很多类似的问题,它们都指出了 Cygnus 的 url 问题,因为它是 运行 作为 docker 容器。 但是您可以在日志和示例中看到我使用容器的 IP 地址(不是本地主机等),并且问题一直存在。

我在这里错过了什么,因为与订阅创建没有太多关系,它看起来非常简单,但所有订阅仍然返回失败状态和我上面描述的问题。

谢谢。

这似乎是连接问题。

您提到您正在使用 Docker,我了解到 Orion 和 Cygnus 运行 在不同的 docker 容器中。因此,可能两者之间存在某种连接问题,您在订阅中使用的 IP 不正确,或者 Cygnus 容器未向其他人公开端口 5050。