gpt4 book ai didi

fiware - Rush 无法在我的 Orion Context Broker 上运行

转载 作者:行者123 更新时间:2023-12-02 12:49:47 25 4
gpt4 key购买 nike

我已使用 AWS 部署了 Orion Context Broker v0.20.0 实例。我正在尝试在 Fiware Lab Wirecloud Mashup 的 MapViewer 小部件上显示其中的实体。

我似乎在 NGSI 源操作符方面遇到了一些麻烦。我已经配置它:

我像这样运行我的 Conntext 代理实例:contextBroker -port 1026 -logDir/var/log/contextBroker -pidpath/var/run/contextBroker/contextBroker.pid -dbhost localhost -db orion -t 0-255 -rush localhost:5001,它可以工作,但是当我接受运算符(operator)配置来创建订阅时,这是我在 Context Broker 上读到的内容:

DEBUG@12:07:40  senderThread.cpp[47]: sending to: host='ngsiproxy.lab.fi-ware.org', port=443, verb=POST, tenant='', service-path: '', xauthToken: '', path='/callbacks/14:27:47-1:15:08:34-1', content-type: application/xml
DEBUG@12:07:40 sem.cpp[124]: transactionIdSet taking the 'trans' semaphore for 'changing the transaction id'
DEBUG@12:07:40 sem.cpp[126]: transactionIdSet has the 'trans' semaphore
DEBUG@12:07:40 sem.cpp[181]: transactionIdSet gives the 'trans' semaphore for 'changing the transaction id'
INFO@12:07:40 clientSocketHttp.cpp[154]: Starting transaction to ngsiproxy.lab.fi-ware.org:443/callbacks/14:27:47-1:15:08:34-1
DEBUG@12:07:40 clientSocketHttp.cpp[240]: HTTP-HEADERS: 'X-relayer-host: ngsiproxy.lab.fi-ware.org:443'
DEBUG@12:07:40 clientSocketHttp.cpp[247]: HTTP-HEADERS: 'X-relayer-protocol: https'
DEBUG@12:07:40 clientSocketHttp.cpp[260]: HTTP-HEADERS: 'User-Agent: orion/0.20.0 libcurl/7.19.7'
DEBUG@12:07:40 clientSocketHttp.cpp[268]: HTTP-HEADERS: 'Host: localhost:5001'
DEBUG@12:07:40 clientSocketHttp.cpp[305]: HTTP-HEADERS: 'Content-length: 1141'
DEBUG@12:07:40 clientSocketHttp.cpp[353]: Sending message 18 to HTTP server: sending message of 1370 bytes to HTTP server
WARNING@12:07:40 clientSocketHttp.cpp[358]: Notification failure for localhost:5001 (curl_easy_perform failed: Couldn't connect to server)
INFO@12:07:40 clientSocketHttp.cpp[375]: Transaction ended

我知道有类似的问题here ,但到目前为止它还没有解决我的问题,Orion 文档也没有解决。

我非常感谢您提供的任何帮助。

编辑:

看起来那个rush事件没有安装,所以我安装了。

但是每次我尝试运行监听器时,都会出现以下错误:

time=2015-05-07T13:56:17.331Z | lvl=ERROR | op=RESPUSH BUCKET TASKS | msg=Error getting bucket elements | corr=N/A | trans=N/A | hostname=***** | component=retryBuckets | error=[Error: ERR unknown command 'evalsha']

现在,当我接受运算符(operator)时,这是痕迹:

-ORION:

DEBUG@15:04:28  senderThread.cpp[47]: sending to: host='ngsiproxy.lab.fi-ware.org', port=443, verb=POST, tenant='', service-path: '', xauthToken: '', path='/callbacks/13:35:20-1:18:05:22-1', content-type: application/xml
DEBUG@15:04:28 sem.cpp[124]: transactionIdSet taking the 'trans' semaphore for 'changing the transaction id'
DEBUG@15:04:28 sem.cpp[126]: transactionIdSet has the 'trans' semaphore
DEBUG@15:04:28 sem.cpp[181]: transactionIdSet gives the 'trans' semaphore for 'changing the transaction id'
INFO@15:04:28 clientSocketHttp.cpp[154]: Starting transaction to ngsiproxy.lab.fi-ware.org:443/callbacks/13:35:20-1:18:05:22-1
DEBUG@15:04:28 clientSocketHttp.cpp[240]: HTTP-HEADERS: 'X-relayer-host: ngsiproxy.lab.fi-ware.org:443'
DEBUG@15:04:28 clientSocketHttp.cpp[247]: HTTP-HEADERS: 'X-relayer-protocol: https'
DEBUG@15:04:28 clientSocketHttp.cpp[260]: HTTP-HEADERS: 'User-Agent: orion/0.20.0 libcurl/7.19.7'
DEBUG@15:04:28 clientSocketHttp.cpp[268]: HTTP-HEADERS: 'Host: localhost:5001'
DEBUG@15:04:28 clientSocketHttp.cpp[305]: HTTP-HEADERS: 'Content-length: 1141'
DEBUG@15:04:28 clientSocketHttp.cpp[353]: Sending message 1 to HTTP server: sending message of 1370 bytes to HTTP server
INFO@15:04:28 clientSocketHttp.cpp[364]: Notification Successfully Sent to localhost:5001/callbacks/13:35:20-1:18:05:22-1
INFO@15:04:28 clientSocketHttp.cpp[375]: Transaction ended

-监听器:

time=2015-05-07T15:08:12.803Z | lvl=INFO | op=RELAY REQUEST | msg=Relay Request received | corr=N/A | trans=N/A | hostname=Orion-Njoy | component=listener | userID='127.0.0.1' | reqInfo={ url: '/callbacks/13:35:20-1:18:09:06-1',  method: 'POST',  remoteAddress: '127.0.0.1',  headers:    { 'x-relayer-host': 'ngsiproxy.lab.fi-ware.org:443',     'x-relayer-protocol': 'https',     'x-relayer-proxy': undefined,     'x-relayer-retry': undefined,     'x-relayer-httpcallback': undefined,     'x-relayer-persistence': undefined,     'x-relayer-traceid': undefined,     'x-relayer-encoding': undefined,     'content-type': 'application/xml' },  responseTime: 1,  statusCode: 500,  bodyLength: 1141,  id:    { exceptionId: 'SVR1000',     exceptionText: 'Generic Server Error: Error: ERR unknown command \'evalsha\'' } }
time=2015-05-07T15:08:12.803Z | lvl=INFO | op=PERSISTENCE | msg=Persistence Completed | corr=N/A | trans=e1467620-f4ca-11e4-a50f-ebe0dffc0e2e | hostname=Orion-Njoy | component=evPersistence | userID='127.0.0.1' | state='error'

-消费者:

time=2015-05-07T13:56:17.331Z | lvl=ERROR | op=RESPUSH BUCKET TASKS | msg=Error getting bucket elements | corr=N/A | trans=N/A | hostname=Orion-Njoy | component=retryBuckets | error=[Error: ERR unknown command 'evalsha']

请问有什么想法吗?

编辑2:

多亏了大家的回复,我才成功让它发挥作用。问题是我使用的是redis 2.4,并且需要2.6或更高版本。现在我可以在 map 查看器中看到我的实体。

如果有人遇到同样的问题,请不要忘记 install Rush并按照此instructions安装Redis 2.6:

感谢大家的帮助。

最佳答案

可能是redis版本太旧了。 EVAL/EVALSHA 命令是在 redis 2.6 中引入的。我会检查redis版本(>2.6.0)

关于fiware - Rush 无法在我的 Orion Context Broker 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30076969/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com