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

[fiware-stackoverflow] How to make Orion Context Broker works with HTTPS notification?

    Details

      Description

      Created question in FIWARE Q/A platform on 04-04-2017 at 18:04
      Please, ANSWER this question AT http://stackoverflow.com/questions/43212442/how-to-make-orion-context-broker-works-with-https-notification

      Question:
      How to make Orion Context Broker works with HTTPS notification?

      Description:
      I want to enable https for notifications. The Orion Context Broker version 1.7.0 is installed in Ubuntu 16.04. To start, the following command is being used:

      sudo /etc/init.d/contextBroker start -logAppend -https -key /path/to/orion.key -cert /path/to/orion.crt

      The answer is:

      [ ok ] Starting contextBroker (via systemctl): contextBroker.service.

      The status is:

      sudo systemctl status contextBroker.service
      contextBroker.service - LSB: Example initscript
      Loaded: loaded (/etc/init.d/contextBroker; bad; vendor preset: enabled)
      Active: active (exited) since Tue 2017-04-04 12:56:13 BRT; 14s ago
      Docs: man:systemd-sysv-generator(8)
      Process: 8312 ExecStart=/etc/init.d/contextBroker start (code=exited, status=0/SUCCESS)
      Apr 04 12:56:13 fiware-ubuntu systemd[1]: Starting LSB: Example initscript...
      Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: contextBroker
      Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: /path/bin/contextBroker
      Apr 04 12:56:13 fiware-ubuntu systemd[1]: Started LSB: Example initscript.

      Another approach is running Orion as:

      sudo /path/bin/contextBroker -logLevel DEBUG -localIp x.y.z.t -https -key /path/to/orion.key -cert /path/to/orion.crt

      The log follows:

      time=2017-04-04T18:37:58.881Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1705]:main | msg=Orion Context Broker is running
      time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[205]:mongoConnect | msg=Successful connection to database
      time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[681]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
      time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[724]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
      time=2017-04-04T18:37:58.888Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[626]:runCollectionCommand | msg=Database Operation Successful (command:

      { buildinfo: 1 }

      )
      ...
      time=2017-04-04T18:37:58.897Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=rest.cpp[1720]:restStart | msg=Fatal Error (error starting REST interface)

      It is not working...

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1d 1 Backlog Manager 05/Apr/17 9:04 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 06/Apr/17 12:04 AM
        Answered Answered Closed Closed
        63d 15h 5m 1 Fernando Lopez 08/Jun/17 3:10 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        fermin Fermín Galán added a comment -

        Assigning back to backlog manager in order to avoid reminder emails. Once the system gets adapted to avoid them (see https://github.com/flopezag/fiware-management-scripts/pull/17) you can assign me it back if you want

        Show
        fermin Fermín Galán added a comment - Assigning back to backlog manager in order to avoid reminder emails. Once the system gets adapted to avoid them (see https://github.com/flopezag/fiware-management-scripts/pull/17 ) you can assign me it back if you want
        fermin Fermín Galán made changes -
        Assignee Fermín Galán [ fermin ] Backlog Manager [ backlogmanager ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 04-04-2017 at 18:04
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/43212442/how-to-make-orion-context-broker-works-with-https-notification


        +Question:+
        How to make Orion Context Broker works with HTTPS notification?

        +Description:+
        I want to enable https for notifications. The Orion Context Broker version 1.7.0 is installed in Ubuntu 16.04. To start, the following command is being used:

        sudo /etc/init.d/contextBroker start -logAppend -https -key /path/to/orion.key -cert /path/to/orion.crt


        The answer is:

        [ ok ] Starting contextBroker (via systemctl): contextBroker.service.


        The status is:

        sudo systemctl status contextBroker.service
        contextBroker.service - LSB: Example initscript
        Loaded: loaded (/etc/init.d/contextBroker; bad; vendor preset: enabled)
        Active: active (exited) since Tue 2017-04-04 12:56:13 BRT; 14s ago
        Docs: man:systemd-sysv-generator(8)
        Process: 8312 ExecStart=/etc/init.d/contextBroker start (code=exited, status=0/SUCCESS)
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Starting LSB: Example initscript...
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: contextBroker
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: /path/bin/contextBroker
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Started LSB: Example initscript.


        Another approach is running Orion as:

        sudo /path/bin/contextBroker -logLevel DEBUG -localIp x.y.z.t -https -key /path/to/orion.key -cert /path/to/orion.crt


        The log follows:

        time=2017-04-04T18:37:58.881Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1705]:main | msg=Orion Context Broker is running
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[205]:mongoConnect | msg=Successful connection to database
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[681]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[724]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=2017-04-04T18:37:58.888Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[626]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        ...
        time=2017-04-04T18:37:58.897Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=rest.cpp[1720]:restStart | msg=Fatal Error (error starting REST interface)


        It is not working...
        Created question in FIWARE Q/A platform on 04-04-2017 at 18:04
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/43212442/how-to-make-orion-context-broker-works-with-https-notification


        +Question:+
        How to make Orion Context Broker works with HTTPS notification?

        +Description:+
        I want to enable https for notifications. The Orion Context Broker version 1.7.0 is installed in Ubuntu 16.04. To start, the following command is being used:

        sudo /etc/init.d/contextBroker start -logAppend -https -key /path/to/orion.key -cert /path/to/orion.crt


        The answer is:

        [ ok ] Starting contextBroker (via systemctl): contextBroker.service.


        The status is:

        sudo systemctl status contextBroker.service
        contextBroker.service - LSB: Example initscript
        Loaded: loaded (/etc/init.d/contextBroker; bad; vendor preset: enabled)
        Active: active (exited) since Tue 2017-04-04 12:56:13 BRT; 14s ago
        Docs: man:systemd-sysv-generator(8)
        Process: 8312 ExecStart=/etc/init.d/contextBroker start (code=exited, status=0/SUCCESS)
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Starting LSB: Example initscript...
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: contextBroker
        Apr 04 12:56:13 fiware-ubuntu contextBroker[8312]: /path/bin/contextBroker
        Apr 04 12:56:13 fiware-ubuntu systemd[1]: Started LSB: Example initscript.


        Another approach is running Orion as:

        sudo /path/bin/contextBroker -logLevel DEBUG -localIp x.y.z.t -https -key /path/to/orion.key -cert /path/to/orion.crt


        The log follows:

        time=2017-04-04T18:37:58.881Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[1705]:main | msg=Orion Context Broker is running
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[205]:mongoConnect | msg=Successful connection to database
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[681]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1)
        time=2017-04-04T18:37:58.887Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[724]:getWriteConcern | msg=Database Operation Successful (getWriteConcern)
        time=2017-04-04T18:37:58.888Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[626]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 })
        ...
        time=2017-04-04T18:37:58.897Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=rest.cpp[1720]:restStart | msg=Fatal Error (error starting REST interface)


        It is not working...
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-04-06 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-04-06 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-04-05 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-04-05 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-04-04 21:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-04-04 21:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: