尝试在FIWARE Orion上创建订阅通知Cygnus实例。但无论我尝试什么或做什么,我的订阅状态都失败了。
主要问题似乎是我用来通知的Cygnus URL,但是Cygnus已经启动并运行,没有任何问题,而且这个问题仍然存在。
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.887d615a9dfc2c09c99e511f8cefb148aa54809eFIWARE 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问题,因为它是作为码头容器运行的。但是您可以在日志和示例中看到,我使用容器的IP地址(而不是localhost等),问题是常量的。
我在这里错过了什么,因为这与订阅创建没有多大关系,而且看起来非常简单,但是所有的订阅都以失败作为我上面描述的状态和问题而返回。
谢谢。
发布于 2018-09-28 12:06:48
这似乎是一个连接问题。
你提到你在使用码头,我知道猎户座和天鹅座在不同的码头集装箱中运行。因此,可能存在某种连接问题,您在订阅中使用的IP不是正确的,或者Cygnus容器没有向其他人公开端口5050。
https://stackoverflow.com/questions/52538387
复制相似问题