orion-ld with mongodb atlas

asked 2021-06-28 20:32:05 +0200

GuyD gravatar image

updated 2021-07-12 19:36:22 +0200

Hello,

I'm trying connecting orion-ld to mongodb-atlas. In contrast with orion (where everything works fine) I cannot get the connection orion-ld - mongodb atlas to work.

The docker command I use:

$ docker run -d --name orionld-atlas -p 1027:1026 fiware/orion-ld:latest -dbhost "dev-cluster.xxxxx.mongodb.net/orionld?retryWrites=true&w=majority" -db orionld -dbuser orionld -dbpwd xxxxxxxxxxxx

UPDATE:

Tried with this command (the one that works for 'orion') but still cannot connect from 'orion-ld':

docker run -d --name orionld -p 1027:1026 fiware/orion-ld:latest -dbhost "my-cluster-shard-00-00.ceatd.mongodb.net:27017,my-cluster-shard-00-01.ceatd.mongodb.net:27017,my-cluster-shard-00-02.ceatd.mongodb.net:27017/orionld?ssl=true&replicaSet=atlas-xxxxxx-shard-0&authSource=admin&retryWrites=true&w=majority" -dbuser user -dbpwd pwd

Anyone an idea what I'm missing?

Thanks. Guy

edit retag flag offensive close merge delete

Comments

orion recently moved from the older mongo driver to a new one. The entire connect mechanism changed completely. That might explain why it is working with Orion but not with Orion-LD. That said, it needs to work with Orion-LD as well. We will take a look. Please create an issue on Orion-LD's github

kzangeli gravatar imagekzangeli ( 2021-07-16 10:15:36 +0200 )edit