Issue Description
I’m trying to run the Stalwart bootstrap using PostgreSQL, however whenever I attempt to do so, I get a very generic error message that does not really give me any information about what specifically is going wrong:
Failed to initialize data store: PostgreSQL error (store.postgresql-error): reason = Error occurred while creating a new object: db error
I’m able to connect to the database from the same server using the same connection details and I’m able to create tables, etc. However the database is otherwise empty because Stalwart’s bootstrap never appears to actually be able to get to that point.
I cannot find any knob to tweak to get more information out of Stalwart about what exactly is failing.
If it helps at all, this is running on a Digital Ocean Droplet with their managed PostgreSQL database.
Expected Behavior
I would either get a helpful error message that would point to what the issue is, or it would create the needed tables.
Actual Behavior
The bootstrap gives the error
Failed to initialize data store: PostgreSQL error (store.postgresql-error): reason = Error occurred while creating a new object: db error
Reproduction Steps
- Setup a DO Droplet and PostgreSQL Instance
- Attempt to bootstrap Stalwart using the above.
Relevant Log Output
I don’t know how to get more logging out of Stalwart before bootstrapping.
Stalwart Version
v0.16.x
Installation Method
Binary (Linux)
Database Backend
PostgreSQL
Blob Storage
S3-compatible
Search Engine
PostgreSQL
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.
on