You need at least Mongo 3.6 for session support. In addition, you need to have a replica set. Please
refer to the Mongo documentation on how to configure a replicaset:
The current OpenConext-deploy Ansible scripts will install a Mongo 4.0 database with replication set
On 12/16/19 4:15 PM, Domingos Gonçalves wrote:
> We are trying to put *OIDC-NG* finally working but we are facing some issues on >Manage to perform
> the *Push* to *OIDC-NG*.
> When pressing *PUSH* on *Manage* with *OIDC-NG* Enable we have some errors and the PUSH is not done
> with success.
> The error on OIDC-NG log says "*Sessions are not supported by the MongoDB cluster to which this
> client is connected*"
> *OIDC-NG* is connecting to the database with success using its specific user (confirm log-file in
> attach */03_mongodb_accepting_oidcng_connection.log/*)
> Confirming the collections on *MongoDB* server created already by *OIDC-NG*.
> [root@db-server ~]# mongo -u oidcngrw -p '<password>' --authenticationDatabase 'oidcng'
> MongoDB shell version v3.4.23
> connecting to: mongodb://127.0.0.1:27017
> MongoDB server version: 3.4.23
>> use oidcng
> switched to db oidcng
>> show collections
> On *Manage* the log shows an error "*org.springframework.web.client.HttpClientErrorException: 400*",
> more info on log-file in attach *02_manage_error_pressing_push.log*
> On *OIDC-NG* we can find a better message saying "*com.mongodb.MongoClientException: Sessions are
> not supported by the MongoDB cluster to which this client is connected*", for more details you can
> check the log-file in attach: *01_oidcng_error_after_manage_push.log*
> I already tested the OIDC-NG to connect to a MongoDB 4.0.x to see if it's the MongoDB client driver,
> but I'm believe we still have to use the MongoDB 3.x driver version.
> The impression I have is the OIDC-NG is not able to insert the data into the database, received from
> Manage API.
> Any suggestion?
> If need more info, just ask.
> Best regards,
> Domingos Gonçalves
> OpenConext - Open For Collaboration
> You received this message because you are subscribed to the Google Groups "OpenConext Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> To view this discussion on the web visit