来自猎户座上下文经纪人的cygnus实例未到达

时间:2015-10-06 16:00:54

标签: fiware iot fiware-orion fiware-cygnus

我在软件映像CentOS-7-x64上安装了cygnus 0.8.2,我使用以下方式订阅了orion上下文代理:

(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 cygnus机器实例。我错过了什么想法?谢谢!

1 个答案:

答案 0 :(得分:2)

在天鹅座实例的安全规则中,天鹅座正在听的端口(在我的情况下是5050)必须是开放的,所以猎户座可以到达天鹅座实例。