Issue Description
Migration recovery guidance required — Stalwart v1 started before run --final
Expected Behavior
We are migrating an independent production Stalwart deployment from v0.16.27 to v1.0.0 using the official stalwart-migrate tool.
Source
Stalwart v0.16.27
PostgreSQL 17.11
Source remains healthy and in production.
Source IP: 10.10.50.1 (old server)
Target
Stalwart v1.0.0
PostgreSQL 17
Target IP: 10.10.50.2 (New server)
Target database: stalwart
Migration history
prepare completed.
Three ordinary incremental run attempts were recorded.
Run #3 was intentionally interrupted using SIGINT. The tool logged a graceful shutdown and reported status: interrupted, with zero migration errors.
The target Stalwart v1 container was started after Run #3.
The final run --final has never been executed.
The target v1 service has been running, performing background operations against its PostgreSQL database.
No SMTP, IMAP, JMAP, or authentication traffic has been observed on the target.
HAProxy still directs production traffic to the original v0.16.27 server.
Migration state
Tool version: 1.0.0
Tracked accounts: 578
Done phase: 549
Full phase: 26
Container phase: 3
Failed accounts: none
Run #3: 982,433 objects written, 977,163 emails written, 840,694 blobs copied, zero reported errors.
No final-report.txt exists.
Questions requiring your guidance
Is it supported to stop the target v1 service and resume the existing migration state with an ordinary incremental run, followed by run --final after stopping all v0.16 nodes?
Can background writes made by v1 before finalization cause conflicts, unexpected data, or verification mismatches?
Should we instead create a new empty target PostgreSQL database and a fresh migration state, then repeat the migration from the unchanged source?
Is there a documented recovery procedure for this exact situation?
Are there any specific precautions regarding PostgreSQL data, blob storage, or migration state before proceeding?
We will preserve the original v0.16 production server and will not use --force-after-final, rollback, or destructive target operations without your confirmation.
We would appreciate a documented, supported recovery recommendation.
Stalwart Version
v1.x
Installation Method
Docker
Database Backend
PostgreSQL
Blob Storage
PostgreSQL
Search Engine
Internal
Directory Backend
LDAP
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