我在fiware Image Centos-7-X64上使用Cygnus 0.8.2来订阅Orion Context Broker。这是我使用的代码。
(curl 193.48.247.246:1026/v1/subscribecontext -s -s -s -header'content -type:application/json'-header'accept:application/json'-header'-header'fiware -service:egmmqtt'- -header' - header' - header' - -header' - -header'fiware -servicepath: /egmmqttpath'-d @ - | python -mjson.tool)<< eof {“ entities”:[{“ type'type'':“ sensors”,“ ispattern”:“ ispattern”:“ false”,“ false”,“ id”,“ id”:传感器:switch2a“}],“属性”:[“ switch2a”],“参考”:“ http://193.48.247.223:5050/notify”,“ p1m”:“ p1m”,“ notifyconditions”:notifyconditions“type“:“ on Change”,“ condvalues”:[“ switch2a”]}],“ throttling”:“ pt1s”} eof
我在OrionContextBroker日志上收到了以下错误。
时间= 2015-10-06T17:43:37.898cest |lvl =警告|trans = 1443447780-161-000000423 |函数= sendhttpsocket |Comp = Orion |msg = clienterockethttp.cpp [358]:193.48.247.223:5050的通知失败(curl_easy_perform失败:无法连接到服务器)
我真的无法弄清楚为什么在关联的公共IP地址下未达到Cygnus实例。实际上,我什至无法从Orion实例中ping Cygnus Machine实例。关于我可能错过的什么线索?
在Cygnus实例的安全规则中,Cygnus正在侦听的端口(在我的情况下为5050)必须打开,因此Orion可以到达Cygnus实例。