https://github.com/lldap/lldap logo
Slyke - hello, it seems changes are not saved t...
# troubleshooting
s
hello, it seems changes are not saved to the db when creating a user (nor the root password change) after restarting. i have a fresh instance up and running. the logs do not show any issues. the config file is basically the default one.
database_url = "sqlite:///data/users.db?mode=rwc"
i believe this is from the sqlite db file being in the /app directory by default and not the /data directory. if i delete the users.db file, i get the error: Errors: [updateUser:2:3: Database error:
Execution Error: error returned from database: (code: 1032) attempt to write a readonly database
] so it seems like it's not respecting the
database_url
string. i am using version
lldap/lldap:2024-04-24-debian
on kubernetes https://cdn.discordapp.com/attachments/992916353847668756/1233684031845957632/image.png?ex=662dfd49&is=662cabc9&hm=d0966a605b564441215ed8af935e79da86fe609bfa7b110ccf5c83193e24d119& https://cdn.discordapp.com/attachments/992916353847668756/1233684032362119188/image.png?ex=662dfd4a&is=662cabca&hm=d13bfa786d0503f242717c0a955590e500cc5280473c3f38a4f16afc505853bf&
Okay, I found the issue. If it doesn't have write permissions to the
/data
directory, it defaults back to
/app
. Might be worth putting an error message for write failures.
2 Views