Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4672

FIWARE.Question.Tech.Data.OrionContextBroker.NotShowPolInWirecloudMapViewerWidget

    Details

      Description

      Created question in FIWARE Q/A platform on 28-11-2014 at 21:11
      Please, ANSWER this question AT http://stackoverflow.com/questions/27195503/cant-show-a-poi-in-the-wirecloud-mapviewer-widget

      Question:
      Can't show a PoI in the Wirecloud MapViewer widget

      Description:
      Following my previous question How to show an entity from in the Wirecloud MapViewer widget , I installed rush, and when I intend to start the contextBroker from the folder /etc/sysconfig I get the following results:

      [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

      Although I get "MHD_start_daemon failed" when I check if the rush and the contextBroker are running, with the "netstat -tupln" command, I get the following result :

      [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

      And then I return to "https://mashup.lab.fi-ware.org" and I put the following input on each widget/operator:

      NGSI Source

      NGSI server URL: thiisorioncontextbroker:1026/ (with http no https)

      NGSI proxy URL: https://ngsiproxy.lab.fi-ware.org/

      NGSI entities: City

      NGSI Attributes: position

      NGSI Entity to Poi

      Coordinates attribute: position

      But nothing shows up in the map again .

      After have runned the following command I got an ssl error:

      [root@fiware sysconfig]# curl -k https://localhost:1026/version
      curl: (35) SSL connect error

      ----------------------------------------------------------------------------------

      I killed the contextBroker running process and start again, and then I runned the following command again:

      [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>

      The contextBroker url with https protocol (https://YYY.YYY.YYY.YYY:1026) works perfectly with NGSIUpdater widget. So I'm also using in the wirecloud widget/operator https://YYY.YYY.YYY.YYY:1026 instead of http://YYY.YYY.YYY.YYY:1026, but I still don't get the marks (PoI) to be shown in the MapViewer.

      Running netstat -tupln again show me the following results:

      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

      Thanks for all the great support from fiware people.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-06 12:05|CREATED monitor | # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-06 12:05|CREATED monitor | # answers= 2, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-06 15:05|UPDATED status: transition Answer| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-06 15:05|UPDATED status: transition Answer| # answers= 2, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-06 18:05|UPDATED status: transition Answered| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-06 18:05|UPDATED status: transition Answered| # answers= 2, accepted answer= True
        Hide
        mev Manuel Escriche added a comment -

        2015-10-13 12:00|UPDATED status: transition Finish| # answers= 2, accepted answer= True

        Show
        mev Manuel Escriche added a comment - 2015-10-13 12:00|UPDATED status: transition Finish| # answers= 2, accepted answer= True

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: