Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

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

Open
2 tasks done
ottfro1 opened this issue Mar 5, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@ottfro1
Copy link

ottfro1 commented Mar 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues and found none that matched mine

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

  • aad-auth version: please run aad-cli version
  • Distribution: (NAME in /etc/os-release)
  • Distribution version: (VERSION_ID on /etc/os-release):

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

  • I have redacted any sensitive information from the logs
@ottfro1 ottfro1 added the bug Something isn't working label Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant