Connecting to kobotoolbox local instance mongo database

Just an interesting question I would like to explore.

Has anyone or is it possible to connect to the mongo database of your own hosted kobotoolbox instance using compass ?

i think if you connect to the container and edit the files you may be able to or maybe configuring the yaml files ?

1 Like

Hi @MalcolmDB - If you wish to connect to Kobo mongo using Compass - you can try the following config:
host: localhost
port: 27107 (or any other depending on your config)
username: MONGO_INITDB_ROOT_USERNAME (This can be obtained from your kobo mongo docker container config)
password: MONGO_INITDB_ROOT_PASSWORD (This can be obtained from your kobo mongo docker container config)

Let me know if this worked!

Hello,
i found mongodb password in kobo-docker/env/envfiles/databases.txt looking like this:

These KOBO_POSTGRES_ settings only affect the postgres container itself and the

wait_for_mongo.bash init script that runs within the kpi and kobocat.

Please see kobocat.txt to set container variables

KOBO_MONGO_PORT=27017
KOBO_MONGO_HOST=mongo.domain.name
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=Ki);k!klOP.ml?*
MONGO_INITDB_DATABASE=formhub
KOBO_MONGO_USERNAME=kobo
KOBO_MONGO_PASSWORD=Ki);k!klOP.ml?*

Let me know if the password Ki);k!klOP.ml?* can help me to connect in compass for mongodb. or if it is a hash or crypted password…

Thank You

Hello,
In files kobo-docker/env/envfiles/databases.txt i see password like :slight_smile: # These KOBO_POSTGRES_ settings only affect the postgres container itself and the

wait_for_mongo.bash init script that runs within the kpi and kobocat.

Please see kobocat.txt to set container variables

KOBO_MONGO_PORT=27017
KOBO_MONGO_HOST=mongo.domain.name
MONGO_INITDB_ROOT_USERNAME=root
MONGO_INITDB_ROOT_PASSWORD=Ki);k!klOP.ml?*
MONGO_INITDB_DATABASE=formhub
KOBO_MONGO_USERNAME=kobo
KOBO_MONGO_PASSWORD=Ki);k!klOP.ml?*
Can i connect to mongodb with compass?

Thank for the answer