[Backlogmanager] [FIWARE-JIRA] (HELP-22518) [fiware-stackoverflow] Orion-ld fails to establish a connection with the MongoDB Community Operator due to a connection string issue

Ken Zangelin (JIRA) jira-help-desk at jira.fiware.org
Mon Nov 20 08:42:00 CET 2023


     [ https://jira.fiware.org/browse/HELP-22518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Zangelin updated HELP-22518:
--------------------------------
    Status: Answered  (was: In Progress)

> [fiware-stackoverflow] Orion-ld fails to establish a connection with the MongoDB Community Operator due to a connection string issue
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HELP-22518
>                 URL: https://jira.fiware.org/browse/HELP-22518
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Ken Zangelin
>              Labels: fiware, fiware-orion, mongodb, operator-keyword
>
> Created question in FIWARE Q/A platform on 06-10-2023 at 15:10
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/77245778/orion-ld-fails-to-establish-a-connection-with-the-mongodb-community-operator-due
> +Question:+
> Orion-ld fails to establish a connection with the MongoDB Community Operator due to a connection string issue
> +Description:+
> I am attempting to connect Orion-LD to the MongoDB Community Operator in a Kubernetes (k8s) environment, but I am encountering the following error:
> time=Friday 06 Oct 15:25:17 2023.339Z | lvl=WARN | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocInit.cpp[58]:mongocLog | msg=MONGOC[mongoc]: A '/' is required between the host list and any options.
> time=Friday 06 Oct 15:25:17 2023.339Z | lvl=FATAL | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=mongocInit.cpp[294]:mongocInit | msg=Unable to connect to mongo(URI: mongodb://my-user:xxxx@orionld-mongodb-svc:27017?replicaSet=orionld-mongodb&authMechanism=SCRAM-SHA-256&): Invalid host string in URI
> Interestingly, when I use the standard Orion, this issue does not occur. In my view, there is an error in the connection string because a '/' is required between the host list and any options.
> Could someone please assist me with this issue?
> Here's the relevant part of my Kubernetes configuration:
> spec:
>   containers:
>   - name: orion
>     image: fiware/orion-ld
>     args: ["-dbhost","orionld-mongodb-svc:27017","-rplSet","orionld-mongodb","-dbuser","my-user","-dbpwd","xxxx","-dbAuthMech","SCRAM-SHA-256","-db","orion","-logLevel","INFO"]
>     ports:
>     - containerPort: 1026
> I need Orion-ld to connect to the MongoDB Community Operator.



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy