Skip to content
This repository was 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

@ottfro1

Description

@ottfro1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions