[英]Can't show a PoI in the Wirecloud MapViewer widget
在我之前的問題“ 如何從Wirecloud MapViewer小部件中顯示實體”之后 ,我安裝了rush,並且當我打算從/ etc / sysconfig文件夾啟動contextBroker時,我得到以下結果:
[root@fiware sysconfig]# contextBroker -rush localhost:1234 -https -key /etc/sysconfig/localhost.key -cert /etc/sysconfig/localhost.pem
E@19:00:10 exitFunc[1009]: unlink(/tmp/contextBroker.pid): No such file or directory
[root@fiware sysconfig]# F@19:00:10 ***[1063]: Connected to mongo at localhost:orion
E@19:00:10 restStart[764]: MHD_start_daemon failed
restStart: error 3
E@19:00:10 orionExit[998]: restStart: error
盡管在檢查rush和contextBroker是否正在運行時出現“ MHD_start_daemon失敗”的問題,但是使用“ netstat -tupln”命令卻得到以下結果:
[root@fiware /]# netstat -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 28973/node
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 1622/mongod
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 28942/./home/locala
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 1673/Xvnc
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1234/rpcbind
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 1673/Xvnc
tcp 0 0 0.0.0.0:28017 0.0.0.0:* LISTEN 1622/mongod
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 12809/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1372/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1576/master
tcp 0 0 0.0.0.0:54363 0.0.0.0:* LISTEN 1252/rpc.statd
tcp 0 0 0.0.0.0:1026 0.0.0.0:* LISTEN 20892/contextBroker
tcp 0 0 :::6379 :::* LISTEN 28942/./home/locala
tcp 0 0 :::111 :::* LISTEN 1234/rpcbind
tcp 0 0 :::6001 :::* LISTEN 1673/Xvnc
tcp 0 0 :::22 :::* LISTEN 12809/sshd
tcp 0 0 ::1:631 :::* LISTEN 1372/cupsd
tcp 0 0 ::1:25 :::* LISTEN 1576/master
tcp 0 0 :::42975 :::* LISTEN 1252/rpc.statd
tcp 0 0 :::1026 :::* LISTEN 20892/contextBroker
udp 0 0 0.0.0.0:36688 0.0.0.0:* 1252/rpc.statd
udp 0 0 0.0.0.0:985 0.0.0.0:* 1234/rpcbind
udp 0 0 0.0.0.0:5353 0.0.0.0:* 1361/avahi-daemon
udp 0 0 0.0.0.0:1004 0.0.0.0:* 1252/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:* 1234/rpcbind
udp 0 0 0.0.0.0:631 0.0.0.0:* 1372/cupsd
udp 0 0 0.0.0.0:51640 0.0.0.0:* 1361/avahi-daemon
udp 0 0 0.0.0.0:68 0.0.0.0:* 1131/dhclient
udp 0 0 :::985 :::* 1234/rpcbind
udp 0 0 :::111 :::* 1234/rpcbind
udp 0 0 :::39336 :::* 1252/rpc.statd
然后,我返回到“ https://mashup.lab.fi-ware.org ”,並在每個小部件/操作符上輸入以下內容:
NGSI來源
NGSI服務器URL:thiisorioncontextbroker:1026 /(帶有http no https)
NGSI代理URL: https ://ngsiproxy.lab.fi-ware.org/
NGSI實體:城市
NGSI屬性:位置
NGSI實體到Poi
坐標屬性:位置
但是地圖上再也沒有出現:(。
運行以下命令后,出現ssl錯誤:
[root@fiware sysconfig]# curl -k https://localhost:1026/version
curl: (35) SSL connect error
-------------------------------------------------- --------------------------------
我殺死了contextBroker運行進程並再次啟動,然后再次運行以下命令:
[root@fiware sysconfig]# curl -k https://localhost:1026/version
<orion>
<version>0.14.0</version>
<uptime>0 d, 0 h, 15 m, 18 s</uptime>
<git_hash>5e3d210e4b15fa9ebbfa07c93dd41f8b41697d0e</git_hash>
<compile_time>nodate</compile_time>
<compiled_by>fermin</compiled_by>
<compiled_in>centollo</compiled_in>
</orion>
帶有https協議( https://YYY.YYY.YYY.YYY:1026 )的contextBroker URL與NGSIUpdater小部件完美配合。 所以我也在Wirecloud小部件/操作符https://YYY.YYY.YYY.YYY:1026中使用,而不是在http://YYY.YYY.YYY.YYY:1026中使用 ,但我仍然沒有得到分數(PoI)顯示在MapViewer中。
再次運行netstat -tupln會顯示以下結果:
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 1622/mongod
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 28942/./home/locala
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 1673/Xvnc
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1234/rpcbind
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 1673/Xvnc
tcp 0 0 0.0.0.0:28017 0.0.0.0:* LISTEN 1622/mongod
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 12809/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1372/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1576/master
tcp 0 0 0.0.0.0:54363 0.0.0.0:* LISTEN 1252/rpc.statd
tcp 0 0 0.0.0.0:1026 0.0.0.0:* LISTEN 26631/contextBroker
tcp 0 0 :::6379 :::* LISTEN 28942/./home/locala
tcp 0 0 :::111 :::* LISTEN 1234/rpcbind
tcp 0 0 :::6001 :::* LISTEN 1673/Xvnc
tcp 0 0 :::22 :::* LISTEN 12809/sshd
tcp 0 0 ::1:631 :::* LISTEN 1372/cupsd
tcp 0 0 ::1:25 :::* LISTEN 1576/master
tcp 0 0 :::42975 :::* LISTEN 1252/rpc.statd
tcp 0 0 :::1026 :::* LISTEN 26631/contextBroker
udp 0 0 0.0.0.0:36688 0.0.0.0:* 1252/rpc.statd
udp 0 0 0.0.0.0:985 0.0.0.0:* 1234/rpcbind
udp 0 0 0.0.0.0:5353 0.0.0.0:* 1361/avahi-daemon
udp 0 0 0.0.0.0:1004 0.0.0.0:* 1252/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:* 1234/rpcbind
udp 0 0 0.0.0.0:631 0.0.0.0:* 1372/cupsd
udp 0 0 0.0.0.0:54968 0.0.0.0:* 26706/local
udp 0 0 0.0.0.0:51640 0.0.0.0:* 1361/avahi-daemon
udp 0 0 0.0.0.0:68 0.0.0.0:* 1131/dhclient
udp 0 0 :::985 :::* 1234/rpcbind
udp 0 0 :::111 :::* 1234/rpcbind
udp 0 0 :::39336 :::* 1252/rpc.statd
感謝Fiware員工的大力支持。
似乎代理拒絕啟動,因為已經有一個代理運行(在同一端口上)。
在開始測試之前,請確保沒有任何代理正在運行。
考慮到問題注釋,使用https://github.com/telefonicaid/fiware-orion/blob/master/scripts/httpsPrepare.sh腳本生成密鑰並使用HTTPS設置Orion CB的問題似乎已解決。證書文件。
...
openssl genrsa -out "$keyFileName" 1024 > /dev/null 2>&1
openssl req -days 365 -out "$certFileName" -new -x509 -key "$keyFileName" -subj "$OPTIONS" > /dev/null 2>&1
另外,您需要啟動Rush並運行(使用-rush localhost:1234
啟動Orion,但是我沒有看到任何進程正在監聽1234,所以我知道Rush尚未啟動)。 據我了解,這是在另一個問題中討論的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.