Your question
I’ve attempted a migration from RocksDB to PostgreSQL using the import/export feature of Stalwart (v0.16) as explained in the documentation. The import seemed to work, i.e., if I \dt postgres shows me all the tables
psql -U stalwart -d stalwart -h localhost -W
Password:
psql (16.13 (Ubuntu 16.13-0ubuntu0.24.04.1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off)
Type "help" for help.
stalwart=> \dt
List of relations
Schema | Name | Type | Owner
--------+---------+-------+----------
public | a | table | stalwart
public | b | table | stalwart
public | d | table | stalwart
public | e | table | stalwart
public | f | table | stalwart
public | g | table | stalwart
public | h | table | stalwart
public | i | table | stalwart
public | j | table | stalwart
public | k | table | stalwart
public | l | table | stalwart
public | m | table | stalwart
public | n | table | stalwart
public | o | table | stalwart
public | p | table | stalwart
public | q | table | stalwart
public | r | table | stalwart
public | s | table | stalwart
public | s_cal | table | stalwart
public | s_card | table | stalwart
public | s_email | table | stalwart
public | s_trace | table | stalwart
public | t | table | stalwart
public | u | table | stalwart
public | w | table | stalwart
public | x | table | stalwart
public | y | table | stalwart
(27 rows)
However, when I start stalwart I everything in the WebUI seems empty, and also the listeners are set to the default ones.
It shouldn’t be a configuration problem, as stalwart seems to correctly import the database to postgres. But here is my config.json:
{
"@type":"PostgreSql",
"host":"127.0.0.1",
"port":5432,
"database":"stalwart",
"authUsername":"stalwart",
"authSecret":{"@type":"Value", "secret":"mysecret"}
}
I didn’t find any error in the log.
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