u/Tall-Reception-7022

Upgrading Stalwart 0.15.2 to 0.16.x – Vandelay export issues and missing emails

Hi everyone,

I'm trying to upgrade my production Stalwart installation from 0.15.2 to 0.16.7 (the latest version available when I started the migration).

My current setup is:

  • MariaDB for the main and index databases
  • RustFS object storage
  • Single-node Redis for cache

I followed the documented migration path and generated the migration plan (migration-plan.ndjson) using migrate_v015_to_plan.py. Importing the plan worked successfully for:

  • Accounts
  • Domains
  • DKIM signatures

After that, I attempted to export user data using Vandelay. For some users, the export fails with errors indicating that certain blobs do not exist. For other users, the export completes with output similar to:

export: Mailbox ...
export: AddressBook ...
export: Calendar ...
export: Identity ...
export: ParticipantIdentity ...
export: Email ...

Mailbox: created=1 fetched=0 updated=0 deleted=0 skipped=5 failed=0
AddressBook: created=0 fetched=0 updated=0 deleted=0 skipped=1 failed=0
Calendar: created=0 fetched=0 updated=0 deleted=0 skipped=1 failed=0
Identity: created=0 fetched=0 updated=0 deleted=0 skipped=1 failed=0
ParticipantIdentity: created=0 fetched=0 updated=0 deleted=0 skipped=1 failed=0
Email: created=2 fetched=0 updated=0 deleted=0 skipped=0 failed=0

However, the resulting export files are much smaller than the actual mailbox sizes shown in Stalwart.

I also tested the migrated data using Bulwark. The mailbox counters appear correctly in the sidebar (for example, the Inbox shows the expected number of messages), but when I open the Inbox, it says that the mailbox is empty.

Has anyone experienced similar issues during a 0.15.x → 0.16.x migration?

My goal is to upgrade my production environment to the latest version, but at the moment I'm concerned about potential data loss. I would also prefer not to use the migration proxy because it adds another layer of complexity to the migration process.

Any advice or recommendations would be greatly appreciated.

reddit.com
u/Tall-Reception-7022 — 8 days ago