Opal: Databases not registering correctly

Hi. I encountered the following on an Opal Linux installation.

Errors: the database could not be loaded because of errors.

Doing opal.projects_databases(o) reveals nothing, but I can see that MongoDB is running (systemctl status).

Based on a previous thread, I think somehow no databases were registered: Cannot add table to Project on opal

I went into Administration/Databases to manually register a Data Database, however when I test it I keep getting

Failed to connect: [0]

What could be the issue here?

Ok, I just checked on the wiki, it looks like my connection URL was missing the ?authSource=admin parameter.

https://opaldoc.obiba.org/en/latest/web-user-guide/administration/databases.html?highlight=mongodb#id3

It works fine now, but I am still wondering if it’s possible to register DBs programmatically.