Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Dismissed
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
Description
Created question in FIWARE Q/A platform on 19-02-2020 at 15:02
Please, ANSWER this question AT https://stackoverflow.com/questions/60302099/connect-orion-to-a-mongodb-replica-set
Question:
Connect orion to a mongodb replica set
Description:
I try to connect the orion context broker to a mongodb replica set. I have the following mongodb url:
mongodb://rwuser:****@192.168.0.139:8635,192.168.0.180:8635/test?authSource=admin&replicaSet=replica
As described here I set the following parameters:
-rplSet replica
-dbhost 192.168.0.139:8635,192.168.0.180:8635
-dbuser rwuser
-dbpwd password
-dbAuthDb admin
But orion can't connect to the database:
time=Wednesday 19 Feb 10:42:20 2020.241Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongoConnectionPool.cpp[213]:mongoConnect | msg=Database Startup Error (cannot connect to mongo - doing 100 retries with a 1000 millisecond interval)
What am I missing?
2020-02-19 15:06|CREATED monitor | # answers= 0, accepted answer= False