When selecting the location for your sqlite database, the helptext says choose the directory to place the file. But it actually wants a file. It times out if I put a directory but it worked when I set it to a file.
Expected Behavior
Text should say choose the location of the database file
Actual Behavior
Text says choose the location of the database directory
Reproduction Steps
During initial setup flow
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
SQLite
Blob Storage
SQLite
Search Engine
Internal
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
Still reproducible in v1.0.3 (Linux, systemd, SQLite, setup wizard).
The Path field help text still says “Path to the SQLite data directory” and the field is prefilled with /var/lib/stalwart/
Submitting it fails with: “Failed to build connection pool: timed out waiting for connection: unable to open database file: /var/lib/stalwart/”
The directory is owned by the stalwart user and writable; entering a file path (/var/lib/stalwart/data.sqlite3) works
Docs (Storage > Backends > SQLite) say “path to the SQLite database file”, so the wizard text and the DataStore schema reference (“Path to the SQLite data directory”) contradict them. Suggested fix: change the help text to “database file” and prefill a file path, or accept a directory and append a default file name.
The field takes the path to the database file, so /var/lib/stalwart/data.sqlite3 is the correct setting and you can keep using it. The “data directory” wording was copied from the RocksDB field. The /var/lib/stalwart/ prefill comes from the same place: the wizard starts with RocksDB selected, and when you switch to SQLite it carries over the RocksDB directory.
I’ve gone with the second option you suggested and also fixed the help text. The field is now described as the database file, and if the path points at an existing directory, Stalwart creates the database inside it as stalwart.db. The wizard’s prefilled value will then work as it is. A path to a file is used exactly as before, so your current setup isn’t affected. This ships in the next weekly Stalwart release.