Skip to content

Service ID Dashboard

cintiadr edited this page Jan 28, 2025 · 28 revisions

License

No license.

Description of the service

This system is obsolete and being replaced by Keycloak

ID Dashboard allows user creation. It allows SSO for talk (atlas is not working, helpdesk we stopped using it). It keeps a copy of users in OpenLDAP and MongoDB. When modifying a user via formage, it will update both MongoDB and OpenLDAP.

https://wiki.openmrs.org/x/6YCtBQ https://wiki.openmrs.org/x/9oXKB

How to access it

Troubleshooting

User not in Formage

It means the user didn't login to ID since Jan/2019. Ask the user to to login again to ID, using anonymous mode or a new device.

https://talk.openmrs.org/t/fixed-itsm-4118-users-not-in-formage/21296

After network interruption, ID returns 504 on login

Seems to have happened twice. You can see in nginx logs that the backend just never return the requests for POSTs. There are no obvious errors in ID logs.

If there was a network interruption, just restart ID.

How to restart it

cd /root/docker/id
docker-compose restart id-web

Make logging more verbose

Add LOG_LEVEL=trace to the docker environment variables. Omitting this will force it to only at the info level.

Accessing mongodb

ssh id.openmrs.org
docker exec -it id_mongodb_1 bash
mongo

use openmrsid

# Find by username
db.users.findOne({username: 'cintiadr'})

# Count all users
db.users.find().size()

# Count all pending confirmation users
db.users.find({inLDAP: false} ).size()

# Count users with CreateAt field that exists in LDAP
db.users.find({ $and: [ {createdAt: { $exists : true }},{inLDAP: true} ]}).size()

# Count users with CreateAt field that exists in LDAP starting with letter A
db.users.find({ $and: [ {username:{$regex: /^a/}},{createdAt: { $exists : true }},{inLDAP: true} ]}).size()


# Find all groups in mongodb
for (i=0; i < db.groups.find().size(); i++) { text +=  " " + db.groups.find()[i].groupName }

Logs location

/data/docker/volumes/id_id-logs/_data
Clone this wiki locally