【问题标题】:HTTPS notification doesn't reach cygnusHTTPS 通知未到达 cygnus
【发布时间】:2019-04-26 13:09:41
【问题描述】:

猎户座版本是2.1.0 Orion 使用 -https 选项在 HTTPS 中启动

我们在订阅中的 URL 中使用“HTTPS”协议架构 --> 参考“:“https://cygnus.domain.com/notify

当我们插入一个匹配订阅的实体时,实体是在 Orion 中创建的,而不是在 STH 中。

但是 Orion 日志返回:通知已成功发送到 https://cygnus.domain.com:443/notify

如果我们在订阅的 URL 中使用“HTTP”协议模式,它就可以工作 如果我们使用 curl 在 HTTP 或 HTTPS 中直接通知 Cygnus 就可以了

猎户座日志如下:

time=Friday 22 Feb 11:24:28 2019.158Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000058 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=logMsg.h[1832]:lmTransactionStart | msg=Starting transaction to https://cygnus.domain.com:443/notify
 time=Friday 22 Feb 11:24:28 2019.159Z | lvl=INFO | corr=6a8319ac-3694-11e9-872e-0242c0a81006 | trans=1550831768-689-00000000056 | from=10.6.11.36 | srv=svctestnca | subsrv=/svcpath/testnca | comp=Orion | op=logMsg.h[1916]:lmTransactionEnd | msg=Transaction ended
 time=Friday 22 Feb 11:24:28 2019.177Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000057 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=httpRequestSend.cpp[615]:httpRequestSendWithCurl | msg=Notification Successfully Sent to https://cygnus.domain.com:443/notify
 time=Friday 22 Feb 11:24:28 2019.159Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000058 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=httpRequestSend.cpp[594]:httpRequestSendWithCurl | msg=Sending message 20 to HTTP server: sending message of 826 bytes to HTTP server
 time=Friday 22 Feb 11:24:28 2019.176Z | lvl=INFO | corr=N/A | trans=1550831768-689-00000000058 | from=pending | srv=pending | subsrv=pending | comp=Orion | op=logMsg.h[1916]:lmTransactionEnd | msg=Transaction ended

感谢您的帮助。

【问题讨论】:

  • 能否升级到 Orion 2.2.0 并再次测试,好吗? Orion 2.2.0 包含一些额外的功能来调试这种场景(参见fiware-orion.readthedocs.io/en/2.2.0/admin/diagnosis/…
  • 我已经升级到 Orion 2.2.0 Orion 日志如下:time=Tuesday 30 Apr 11:52:21 2019.341Z | lvl=警告 |更正=697a13ce-6b3e-11e9-8041-0242ac140006 |反式=1556612725-897-00000000035 |从=172.16.207.135 | srv=svctestnca | subsrv=/svcpath/testnca | comp=猎户座 | op=httpRequestSend.cpp[625]:httpRequestSendWithCurl | msg=通知响应不正常,http 代码:503

标签: fiware-orion fiware-cygnus


【解决方案1】:

这个问题已经解决了 订阅参考是https://cygnus.domain.com/notify 但是 Orion 在 https://cygnus.domain.com:443/notify

中转换了这个

我们有一个 HAProxy 来负载平衡请求。存在用于接受域 cygnus.domain.com 的 ACL,但不存在用于接受 cygnus.domain.com:443 的 ACL

修改ACL解决问题

  • 旧 ACL:acl IS_Cygnus hdr(host) -i cygnus.domain.com
  • 新的 ACL:acl IS_Cygnus hdr_beg(host) -i cygnus.domain.com

【讨论】:

  • 有道理。请注意,HTTPS 协议的默认端口是 443。Orion 遵循此默认值。很高兴知道你解决了! :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-16
  • 1970-01-01
  • 1970-01-01
  • 2011-01-18
  • 2021-09-20
  • 1970-01-01
相关资源
最近更新 更多