Issue Description
Migrating to 1.0 gets a segmentation fault during copying of one old account.
$ sudo stalwart-migrate run --source /opt/mail/stalwart/v0.16.26/etc/config.json --target /etc/stalwart-v1/config.json --state /var/lib/stalwart-migrate --owner "$(id -u stalwart-mail):$(id -g stalwart-mail)" --log-level trace
[…]
2026-10-27T11:14:14.454329Z DEBUG rustls::webpki::anchors: add_parsable_certificates processed 118 valid and 0 invalid certs
2026-10-27T11:14:14.454389Z DEBUG rustls_platform_verifier::verification::others: Loaded 118 CA root certificates from the system
2026-10-27T11:14:14.522357Z DEBUG rustls::webpki::anchors: add_parsable_certificates processed 118 valid and 0 invalid certs
2026-10-27T11:14:14.522422Z DEBUG rustls_platform_verifier::verification::others: Loaded 118 CA root certificates from the system
2026-10-27T11:14:14.523463Z INFO migrate::orchestrator::account: account pass started accounts=6 removed=0
2026-10-27T11:14:14.523921Z DEBUG migrate::orchestrator::job: full copy account_id=62 full_target=52193
2026-10-27T11:14:14.524022Z DEBUG migrate::orchestrator::job: full copy account_id=91 full_target=2094
2026-10-27T11:14:14.524078Z DEBUG migrate::orchestrator::job: full copy account_id=43 full_target=4809
2026-10-27T11:14:14.524111Z DEBUG migrate::orchestrator::job: full copy account_id=55 full_target=1097
2026-10-27T11:14:14.525286Z DEBUG migrate::orchestrator::job: full copy account_id=25 full_target=633
2026-10-27T11:14:14.525302Z DEBUG migrate::orchestrator::job: full copy account_id=93 full_target=3
Segmentation fault sudo stalwart-migrate run --source /opt/mail/stalwart/v0.16.26/etc/config.json --target /etc/stalwart-v1/config.json --state /var/lib/stalwart-migrate --owner "$(id -u stalwart-mail):$(id -g stalwart-mail)" --log-level trace
Expected Behavior
I’d expect stalwart-migrate to complete the migration run - or at least report an error if something is off.
Actual Behavior
Segmentation fault see above
Reproduction Steps
Following the migration guide at: Quick migration guide | Stalwart
during step 5 copy data while v0.16 runs (slight adjustments due to my settings see commands above)
Relevant Log Output
2026-10-27T11:26:22.227376Z DEBUG rustls::webpki::anchors: add_parsable_certificates processed 118 valid and 0 invalid certs
2026-10-27T11:26:22.227437Z DEBUG rustls_platform_verifier::verification::others: Loaded 118 CA root certificates from the system
2026-10-27T11:26:22.296985Z DEBUG rustls::webpki::anchors: add_parsable_certificates processed 118 valid and 0 invalid certs
2026-10-27T11:26:22.297052Z DEBUG rustls_platform_verifier::verification::others: Loaded 118 CA root certificates from the system
2026-10-27T11:26:22.298248Z INFO migrate::orchestrator::account: account pass started accounts=6 removed=0
2026-10-27T11:26:22.299168Z DEBUG migrate::orchestrator::job: full copy account_id=91 full_target=2094
2026-10-27T11:26:22.299173Z DEBUG migrate::orchestrator::job: full copy account_id=55 full_target=1097
2026-10-27T11:26:22.299197Z DEBUG migrate::orchestrator::job: full copy account_id=43 full_target=4809
2026-10-27T11:26:22.299289Z DEBUG migrate::orchestrator::job: full copy account_id=93 full_target=3
2026-10-27T11:26:22.299854Z DEBUG migrate::orchestrator::job: full copy account_id=62 full_target=52193
2026-10-27T11:26:22.300454Z DEBUG migrate::orchestrator::job: full copy account_id=25 full_target=633
2026-10-27T11:26:22.315068Z INFO migrate::orchestrator::job: account done account_id=93 checkpoint=3
Segmentation fault sudo stalwart-migrate run --final --source /opt/mail/stalwart/v0.16.26/etc/config.json --target /etc/stalwart-v1/config.json --state /var/lib/stalwart-migrate --owner "$(id -u stalwart-mail):$(id -g stalwart-mail)" --log-level trace
Stalwart Version
v1.x
Installation Method
Binary (Linux)
Database Backend
RocksDB
Blob Storage
RocksDB
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.
on