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

[fiware-stackoverflow] Orion Context Broker and Docker - Empty reply from server

    Details

      Description

      Created question in FIWARE Q/A platform on 24-10-2017 at 15:10
      Please, ANSWER this question AT https://stackoverflow.com/questions/46911696/orion-context-broker-and-docker-empty-reply-from-server

      Question:
      Orion Context Broker and Docker - Empty reply from server

      Description:
      I recently started project involving Orion Context Broker. Tried to started it on windows using docker.

      https://hub.docker.com/r/fiware/orion/

      First method didn't come out good, error that I got while using original code from tutorial is:

      ERROR: yaml.parser.ParserError: while parsing a block mapping
      in ".\docker-compose.yml", line 1, column 1
      expected <block end>, but found '<block mapping start>'
      in ".\docker-compose.yml", line 5, column 2

      Then I decided to move on to second method, I started mongoDB with default parameters. I got it to listening for connections and used the 2A way from docker site.

      sudo docker run -d --name orion1 -p 1026:1026 fiware/orion

      It seems to have started because it has not returned any errors while starting. However if I use:

      curl localhost:1026/version

      I receive no response whatsoever it just freeze and in mongoDB console I don't have any new connection. The addr of docker container is right. Firewall is off. It seems like it haven't connected, but it's running. If I want to start again orion context broker it tells me that it's already running, so then I stop it, remove orion1 and can start it again. When I connect to running mongoDB from another console it shows a new connection while when connecting with Context Broker there isn't.

      When I checked CB logs I got

      time=Tuesday 24 Oct 21:37:32 2017.378Z | lvl=ERROR | corr=N/A
      trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion |
      op=mongoConnectionPool.cpp[152]:mongoConnect |
      msg=Database Startup Error (cannot connect to mongo - doing 100 retries with a 1000 microsecond interval)

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:50|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:50|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:53|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:53|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 20:02|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 20:02|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

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

            Dates

            • Created:
              Updated:
              Resolved: