[ https://jira.fiware.org/browse/HELP-15493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] José Ignacio Carretero Guarde closed HELP-15493. ------------------------------------------------ Resolution: Dismissed > [fiware-stackoverflow] Last Docker version of Fiware Orion won't start on Kubernetes > ---------------------------------------------------------------------------------------- > > Key: HELP-15493 > URL: https://jira.fiware.org/browse/HELP-15493 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: José Ignacio Carretero Guarde > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 24-02-2019 at 22:02 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/54856886/last-docker-version-of-fiware-orion-wont-start-on-kubernetes > +Question:+ > Last Docker version of Fiware Orion won't start on Kubernetes > +Description:+ > I am running Fiware Orion on Kubernetes (under IBM Cloud Kubernetes service) > The yaml file used is very simple: > apiVersion: v1 > kind: Pod > metadata: > name: orion > spec: > containers: > - name: orion > image: fiware/orion:latest > ports: > - containerPort: 1026 > args: ["-dbhost", "orion-mongo:27017", "-logLevel", "DEBUG", "-port", "1026"] > restartPolicy: OnFailure > (Even it is the default one, I have added -port 1026 to test if forcing it makes it work but no difference) > Context broker is started as if I get in the pod I see with ps: > root 1 0.2 0.0 237704 13552 ? Ss 21:40 0:00 /usr/bin/contextBroker -fg -multiservice -ngsiv1Autocast -dbhost orion-mongo:27017 -logLevel DEBUG -port 1026 > So contextBroker seems to work and logs show it connects to MongoDB but it won't listen to the port (1026) (Mongo IP address of the MOngo pod (docker) in my configuration is "orion-mongo") > Log shows no error... last lines until it "hangs" there: > time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern) > time=Sunday 24 Feb 21:40:11 2019.187Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 }) > time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database > time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1) > time=Sunday 24 Feb 21:40:11 2019.189Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern) > time=Sunday 24 Feb 21:40:11 2019.190Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 }) > time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[217]:mongoConnect | msg=Successful connection to database > time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[760]:setWriteConcern | msg=Database Operation Successful (setWriteConcern: 1) > time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[807]:getWriteConcern | msg=Database Operation Successful (getWriteConcern) > time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=connectionOperations.cpp[701]:runCollectionCommand | msg=Database Operation Successful (command: { buildinfo: 1 }) > time=Sunday 24 Feb 21:40:11 2019.192Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=MongoGlobal.cpp[231]:mongoInit | msg=Connected to mongo at orion-mongo:27017:orion > But when I try to check it (from inside the pod or using the Nodeport external port) I get: > [root at orion /]# curl http://localhost:1026/version > curl: (7) Failed connect to localhost:1026; Connection refused -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy