FIWARE / context.Orion-LD

Context Broker and CEF building block for context data management which supports both the NGSI-LD and the NGSI-v2 APIs
https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.06.01_60/gs_CIM009v010601p.pdf
GNU Affero General Public License v3.0
50 stars 43 forks source link

Docker-compose: Startup Error (cannot connect to mongo - doing 100 retries with a 1000 microsecond interval) #75

Closed tanktoo closed 5 years ago

tanktoo commented 5 years ago

Hi, I just updated the docker container. Now broker is not starting due to some connection problems to mongo db. time=Wednesday 15 May 08:30:35 2019.273Z | 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) As far as I can see the mongo db is running. Maybe there is something wrong with the new docker image? System is started via docker-compose.

kzangeli commented 5 years ago

We're experimenting with docker right now, trying to get functional tests running at PR creation. It has proved more difficult than expected. Hopefully the problem will be fixed today. The problem you are seeing might be due to this. Can you go back to the older docker image until the problem is solved?

tanktoo commented 5 years ago

No hurry, will do something else. Was just wondering. Good luck with fixing :)

caa06d9c commented 5 years ago

The latest image was updated, you can try to pull changes. To verify that image is correct, orion should return (/version) git hash : 21b88fe95a17feb29777b34f672d527ea92f692b

tanktoo commented 5 years ago

Seems to be fixed. Thanks

MasaGon commented 5 years ago

I got reproduced on latest docker image.

fiware/orion-ld latest ffab7da30589 2 hours ago 110MB

caa06d9c commented 5 years ago

Hi! Thank you for the report. Issue fixed in the latest commit, a new image will be available in ~15 min

MasaGon commented 5 years ago

Thanks! But I got another errors. Should I post as a different issue? (Booted with brand new mongo container)

orion_1  | time=Tuesday 21 May 02:40:41 2019.351Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldRequestSend.cpp[183]:orionldRequestSend | msg=curl_easy_perform error 77
orion_1  | time=Tuesday 21 May 02:40:41 2019.351Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=orionldContextDownloadAndParse.cpp[118]:orionldContextDownloadAndParse | msg=orionldRequestSend failed (try number 1 out of 5): https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/defaultContext/defaultContext.jsonld
caa06d9c commented 5 years ago

Hi! No, we are investigating the reason.