ubuntu / aad-auth

Azure AD authentication module for Ubuntu
GNU Lesser General Public License v3.0
143 stars 22 forks source link

users can not login - database is locked, unable to open database file #475

Open ottfro1 opened 4 months ago

ottfro1 commented 4 months ago

Is there an existing issue for this?

Describe the issue

journalctl -b0 | grep _aad # this will show both logs

Mar 05 05:59:22 Ubuntu aad_auth[1533671]: nss_aad: database error: unable to open database file: /var/lib/aad/cache/passwd.db Mar 05 06:05:15 Ubuntu aad_auth[1533671]: nss_aad: database error: unable to open database file: /var/lib/aad/cache/passwd.db Mar 05 06:25:06 Ubuntu aad_auth[1682366]: nss_aad: database error: database is locked Mar 05 06:32:24 Ubuntu aad_auth[1533671]: nss_aad: database error: unable to open database file: /var/lib/aad/cache/passwd.db Mar 05 06:35:10 Ubuntu aad_auth[1533671]: nss_aad: database error: unable to open database file: /var/lib/aad/cache/passwd.db Mar 05 06:54:26 Ubuntu aad_auth[1694666]: nss_aad: database error: database is locked

problems happens from time to time

it would be good if it was noted in the documentation how to reset the cache. can the files just be deleted? is there a command to reset the cache or unlock the database?

Steps to reproduce it

ubuntu 23.10 we have done apt update apt upgrade

Ubuntu users: System information and logs

N/A

Non Ubuntu users: System information and logs

Environment

Log files

Please redact/remove sensitive information:

aad-auth logs can be found in the system journal and queried with:
`journalctl | grep _aad`

Application settings

Please redact/remove sensitive information:

You can get the configuration file from /etc/aad.conf

Relevant information

N/A

Double check your logs