2015-10-06 57 views
3

我已经安装了天鹅0.8.2上fiware图像的CentOS-7-64,我订阅了猎户座的上下文经纪人使用:天鹅例如不从猎户座背景下券商达到

(curl 193.48.247.246:1026/v1/subscribeContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Fiware-Service: egmmqtt' --header 'Fiware-ServicePath: /egmmqttpath' -d @- | python -mjson.tool) <<EOF 
{ 
    "entities": [ 
     { 
      "type": "sensors", 
      "isPattern": "false", 
      "id": "sensors:switch2A" 
     } 
    ], 
    "attributes": [ 
     "switch2A" 
    ], 
    "reference": "http://193.48.247.223:5050/notify", 
    "duration": "P1M", 
    "notifyConditions": [ 
     { 
      "type": "ONCHANGE", 
      "condValues": [ 
       "switch2A" 
      ] 
     } 
    ], 
    "throttling": "PT1S" 
} 
EOF 

没有通知已经到达新天鹅和我这个错误在orionContextBroker日志:

time=2015-10-06T17:43:37.898CEST | lvl=WARNING | trans=1443447780-161-00000000423 | function=sendHttpSocket | comp=Orion | msg=clientSocketHttp.cpp[358]: Notification failure for 193.48.247.223:5050 (curl_easy_perform failed: Couldn't connect to server) 

我不知道为什么相关的公共IP地址下没有达到天鹅的实例。事实上,我无法从Orion实例中ping天鹅座机器实例。我错过了什么想法?谢谢!

回答

2

在cygnus实例的安全规则中,cygnus正在侦听的端口(在我的情况下是5050)必须打开,以便orion可以到达cygnus实例。