Timeout in stalwart-migrate run on S3 (hetzner)

Issue Description

I’m trying to migrate my stalwart v0.16.27 to stalwart v1.0 the blob store is configured to use s3 on this one.
stalwart-migrate prepare does run cleanly (selecting all the defaults).
stalwart-migrate run does end with a timeout.

I did not find any S3 related special configuration that would be required?

Expected Behavior

stalwart-migrate run completes without error (or with clearer error message if configuration is missing)

Actual Behavior

run finished run_id=1 status=failed stats={“accounts_delta”:0,“accounts_failed”:0,“accounts_full”:0,“accounts_removed”:0,“accounts_unchanged”:0,“accounts_wiped”:0,“blob_bytes”:0,“blobs_copied”:0,“bytes_written”:0,“emails_written”:0,“error”:“transient error: S3 error (store.s3-error): reason = S3 request failed: error sending request for url (https://hel1.your-objectstorage.com/solawis-stalwart/ae[…]tq): operation timed out”,“errors”:0,“global_deleted”:0,“global_records”:0,“issues”:75,“log_rows”:0,“objects_deleted”:0,“objects_skipped”:0,“objects_written”:0,“registry_deleted”:0,“registry_dropped”:12,“registry_written”:3012}

Reproduction Steps

  1. stalwart-migrate install via installscript
  2. stalwart-migrate prepare
  3. stalwart-migrate run

$ stalwart --version
0.16.27
$ stalwart-migrate --version
stalwart-migrate 1.0.3

Relevant Log Output

$stalwart-migrate run \
  --source /etc/stalwart/config.json \
  --target /etc/stalwart-v1/config.json \
  --state /var/lib/stalwart-migrate \
  --owner "$(id -u stalwart):$(id -g stalwart)"
2026-10-30T05:36:11.570683Z  INFO migrate::commands::run: run state=/var/lib/stalwart-migrate/state.sqlite source=/etc/stalwart/config.json target=/etc/stalwart-v1/config.json categories=settings,principals,mail,calendars,contacts,files,sieve,identities,push_subscriptions,spam_samples,reports,archive,spam_model,queue,tasks,telemetry blob_mode=Shared edition="enterprise" concurrency=8
2026-10-30T05:36:26.574013Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:36:41.573473Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:36:56.573497Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:37:11.573593Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:37:26.573225Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:37:41.573822Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:37:56.573627Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:38:11.573242Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:38:26.573636Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:38:41.573495Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:38:56.573989Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:39:11.574184Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:39:26.573661Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:39:41.573507Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:39:56.573550Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:40:11.573448Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:40:26.574416Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:40:41.573371Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:40:56.574005Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:41:11.573765Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:41:26.573120Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:41:41.573997Z  INFO progress: progress run_id=1 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=3012 registry_dropped=12 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=75 errors=0
2026-10-30T05:41:51.655556Z ERROR migrate::orchestrator: run failed error=transient error: S3 error (store.s3-error): reason = S3 request failed: error sending request for url (https://hel1.your-objectstorage.com/solawis-stalwart/ae[…]tq): operation timed out
2026-10-30T05:41:51.659005Z  INFO migrate::orchestrator: run finished run_id=1 status=failed stats={"accounts_delta":0,"accounts_failed":0,"accounts_full":0,"accounts_removed":0,"accounts_unchanged":0,"accounts_wiped":0,"blob_bytes":0,"blobs_copied":0,"bytes_written":0,"emails_written":0,"error":"transient error: S3 error (store.s3-error): reason = S3 request failed: error sending request for url (https://hel1.your-objectstorage.com/solawis-stalwart/ae[…]tq): operation timed out","errors":0,"global_deleted":0,"global_records":0,"issues":75,"log_rows":0,"objects_deleted":0,"objects_skipped":0,"objects_written":0,"registry_deleted":0,"registry_dropped":12,"registry_written":3012}
run 1: failed ({"accounts_delta":0,"accounts_failed":0,"accounts_full":0,"accounts_removed":0,"accounts_unchanged":0,"accounts_wiped":0,"blob_bytes":0,"blobs_copied":0,"bytes_written":0,"emails_written":0,"errors":0,"global_deleted":0,"global_records":0,"issues":75,"log_rows":0,"objects_deleted":0,"objects_skipped":0,"objects_written":0,"registry_deleted":0,"registry_dropped":12,"registry_written":3012})
error: transient error: S3 error (store.s3-error): reason = S3 request failed: error sending request for url (https://hel1.your-objectstorage.com/solawis-stalwart/ae[…]tq): operation timed out

Stalwart Version

v0.16.x

Installation Method

Binary (Linux)

Database Backend

RocksDB

Blob Storage

S3-compatible

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

The error means the migration tool couldn’t complete an HTTP request to your S3 endpoint before it timed out. It isn’t a missing migration setting. I found no S3-specific migration configuration in the docs, so I can’t confirm a cause from them.

The log shows the failure came before any data moved. No blobs or accounts were copied, and about 5 minutes passed with no progress before the error. That points to the connection or credentials for hel1.your-objectstorage.com as seen from this host. I’d check the following:

  1. Reachability from the host. Run curl -v https://hel1.your-objectstorage.com/ as the same user and on the same machine as stalwart-migrate. Check for a firewall, an IPv6-versus-IPv4 routing problem, or a DNS issue that affects only this process.

  2. The S3 settings in the source config. The migrator uses your existing 0.16 blob store settings, because the log shows blob_mode=Shared. The S3 backend page says the timeout setting limits each request. Check the blob store’s endpoint, region, bucket and path-style settings. A wrong addressing style on a non-AWS provider can make requests hang instead of failing quickly.

  3. Whether the running 0.16 server can still reach the bucket. If it can, the difference is probably in the network path or environment of the migrate process. Examples are a proxy variable, or running under sudo or a different user.

Please also post the S3 section of your 0.16 config.json with the secrets removed, and the relevant lines of prepare-report.txt. It would also help to know whether the issues=75 count comes from the report, since those are separate from this failure.

The migration is documented at Quick migration guide | Stalwart. The tool can be resumed by running the same run command again once the connectivity problem is fixed.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

The s3 is reachable using curl “instantly”
The stalwart v0.16.27 still runs on the same machine using the same blob store.
I temporaryly disabled selinux which did not help
I do not have special settings in the config.json I think

$cat /etc/stalwart/config.json

{"@type":"RocksDb","path":"/var/lib/stalwart/","blobSize":16834,"bufferSize":134217728,"poolWorkers":null}

I do not find any S3 related option in prepare-report.txt

stalwart-migrate prepare report

Summary: 56902 objects to write, 12 dropped, 61 warnings, 0 errors, 5 questions answered now.
With the spam_model category, run --final overwrites the spam classifier and trainer models under their fixed keys in the external S3 blob store, after its verification passed. v0.16 uses the same keys and cannot read the v1 format; a later rollback into this blob store refuses to start unless it is told to write the v0.16 model back (--allow-shared-deletes) or to keep the v1 model (--keep-v1-spam-model).
Every question has an answer; run can start.

Dropped objects:
x:SpamTag/i2oksk3gd9aa
x:SpamTag/i2oksk3gd9qa
x:SpamTag/i2oksk3gd2aa
x:SpamTag/i2oksk3gd2qa
x:SpamTag/i2oksk3gd0aa
x:SpamTag/i2oksk3gd0qa
x:SpamTag/i2oksk3gd1aa
x:SpamTag/i2oksk3id1qa
x:SpamTag/i2oksk3id3aa
x:SpamTag/i2oksk3id3qa
x:SpamTag/i2oksk3ieaaa
x:SpamTag/i2oksk3ieaqa

Changes:
info: x:AcmeProvider/i2oko2oeabaa description: acme_description: v0.16 computed the description from the directory URL and the account; v1 stores it
warning: x:AcmeProvider/i2oko2oeabaa maxRetries: dropped (no equivalent in the target version), was 10
info: x:MtaStageAuth saslMechanisms: v0.16 default {"else":"false","match":{"0":{"if":"local_port != 25 && is_tls","then":"[plain, login, oauthbearer, xoauth2]"},"1":{"if":"local_port != 25","then":"[oauthbearer, xoauth2]"}}} replaced by the new default
info: x:NetworkListener/i2oksid1aeqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/i2oksieaafab maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/i2oksieaafqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/i2oksieaagqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/i2oksieaahqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/i0tsuomiacaa maxConnections: v0.16 default 8192 replaced by the new default
warning: x:OidcProvider anonymousClientRegistration: dropped (no equivalent in the target version), was true
warning: x:OidcProvider requireClientRegistration: dropped (no equivalent in the target version), was false
warning: x:OidcProvider authCodeMaxAttempts: dropped (no equivalent in the target version), was 3
warning: x:OidcProvider refreshTokenRenewal: dropped (no equivalent in the target version), was 345600000
warning: x:Role/b enabledPermissions/jmapPrincipalCreate: dropped (no equivalent in the target version)
warning: x:Role/b enabledPermissions/jmapPrincipalDestroy: dropped (no equivalent in the target version)
warning: x:Role/b enabledPermissions/jmapPrincipalUpdate: dropped (no equivalent in the target version)
warning: x:Role/b enabledPermissions/sysArchivedItemCreate: dropped (no equivalent in the target version)
warning: x:Role/b enabledPermissions/sysSpamTrainingSampleUpdate: dropped (no equivalent in the target version)
info: x:Role/b enabledPermissions: permissions: granted imapMetadataGet, imapMetadataPrivate, imapMetadataSet, jmapMetadataGet, jmapMetadataPrivate, jmapMetadataSet, sysOAuthGrantDestroy, sysOAuthGrantGet, sysOAuthGrantQuery
warning: x:Role/c enabledPermissions/jmapPrincipalCreate: dropped (no equivalent in the target version)
warning: x:Role/c enabledPermissions/jmapPrincipalDestroy: dropped (no equivalent in the target version)
warning: x:Role/c enabledPermissions/jmapPrincipalUpdate: dropped (no equivalent in the target version)
warning: x:Role/c enabledPermissions/sysArchivedItemCreate: dropped (no equivalent in the target version)
warning: x:Role/c enabledPermissions/sysSpamTrainingSampleUpdate: dropped (no equivalent in the target version)
info: x:Role/c enabledPermissions: permissions: granted imapMetadataGet, imapMetadataPrivate, imapMetadataSet, jmapMetadataGet, jmapMetadataPrivate, jmapMetadataSet
warning: x:Role/d enabledPermissions/sysQueuedMessageCreate: dropped (no equivalent in the target version)
info: x:Role/d enabledPermissions: permissions: granted sysOAuthGrantDestroy, sysOAuthGrantGet, sysOAuthGrantQuery
warning: x:Role/e enabledPermissions/oAuthClientOverride: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/oAuthClientRegistration: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysActionDestroy: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysActionGet: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysActionQuery: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysActionUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysArchivedItemCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysArfExternalReportCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysArfExternalReportUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysClusterNodeCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysClusterNodeDestroy: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysClusterNodeUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysDmarcExternalReportCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysDmarcExternalReportUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysDmarcInternalReportCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysLogCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysLogDestroy: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysLogUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysMetricCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysMetricDestroy: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysMetricUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysQueuedMessageCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysSpamTrainingSampleUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysTlsExternalReportCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysTlsExternalReportUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysTlsInternalReportCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysTraceCreate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysTraceDestroy: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/sysTraceUpdate: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/taskIndexDocument: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/taskIndexTrace: dropped (no equivalent in the target version)
warning: x:Role/e enabledPermissions/taskUnindexDocument: dropped (no equivalent in the target version)
info: x:Role/e enabledPermissions: permissions: granted sysIndexQueueStatusGet, sysIndexQueueStatusQuery, sysIndexQueueStatusUpdate, sysMetadataGet, sysMetadataUpdate, sysOAuthGrantDestroy, sysOAuthGrantGet, sysOAuthGrantQuery, taskDmarcReportWindow, taskShareRevokeCleanup, taskTlsReportWindow
info: x:SpamTag/i2oksk1sciqa tag: spam_tag: DISPOSABLE_REPLYTO renamed to DISPOSABLE_REPLY_TO, the tag v1 emits
warning: x:SpamTag/i2oksk3gd9aa: dropped (no equivalent in the target version), was {"@type":"Score","score":3.0,"tag":"LLM_COMMERCIAL_HIGH"}
warning: x:SpamTag/i2oksk3gd9qa: dropped (no equivalent in the target version), was {"@type":"Score","score":0.5,"tag":"LLM_COMMERCIAL_LOW"}
warning: x:SpamTag/i2oksk3gd2aa: dropped (no equivalent in the target version), was {"@type":"Score","score":2.0,"tag":"LLM_COMMERCIAL_MEDIUM"}
warning: x:SpamTag/i2oksk3gd2qa: dropped (no equivalent in the target version), was {"@type":"Score","score":3.0,"tag":"LLM_HARMFUL_HIGH"}
warning: x:SpamTag/i2oksk3gd0aa: dropped (no equivalent in the target version), was {"@type":"Score","score":0.5,"tag":"LLM_HARMFUL_LOW"}
warning: x:SpamTag/i2oksk3gd0qa: dropped (no equivalent in the target version), was {"@type":"Score","score":2.0,"tag":"LLM_HARMFUL_MEDIUM"}
warning: x:SpamTag/i2oksk3gd1aa: dropped (no equivalent in the target version), was {"@type":"Score","score":-3.0,"tag":"LLM_LEGITIMATE_HIGH"}
warning: x:SpamTag/i2oksk3id1qa: dropped (no equivalent in the target version), was {"@type":"Score","score":-0.5,"tag":"LLM_LEGITIMATE_LOW"}
warning: x:SpamTag/i2oksk3id3aa: dropped (no equivalent in the target version), was {"@type":"Score","score":-2.0,"tag":"LLM_LEGITIMATE_MEDIUM"}
warning: x:SpamTag/i2oksk3id3qa: dropped (no equivalent in the target version), was {"@type":"Score","score":3.0,"tag":"LLM_UNSOLICITED_HIGH"}
warning: x:SpamTag/i2oksk3ieaaa: dropped (no equivalent in the target version), was {"@type":"Score","score":0.5,"tag":"LLM_UNSOLICITED_LOW"}
warning: x:SpamTag/i2oksk3ieaqa: dropped (no equivalent in the target version), was {"@type":"Score","score":2.0,"tag":"LLM_UNSOLICITED_MEDIUM"}
warning: x:SystemSettings threadPoolSize: dropped (no equivalent in the target version)

The run didn’t stall on reaching S3; it spent those five minutes retrying. After the settings are written, the tool checks that every blob referenced by a settings object (spam training samples, mostly) exists in the shared store, about a thousand of them per batch with 16 requests in parallel. A single request that times out fails the whole batch, and the batch is retried until the 300 second retry budget is used up, which is exactly the gap between 05:36 and 05:41 in your log. curl succeeding instantly doesn’t contradict that: it’s one request, and here it only takes one slow answer out of a thousand.

The S3 client uses the timeout and retry count from your 0.16 S3 blob store settings, which the run copies into the v1 settings. Raising the S3 timeout and max retries there on 0.16, then starting stalwart-migrate run again with the same --state, is the first thing I’d try. The run resumes from where it stopped, and the registry pass picks up the changed values. A longer --retry-budget (in seconds) also gives it more room.

What timeout and max retries does the S3 store have in 0.16 at the moment? If it still times out with higher values, run it once with --log-level debug and post the lines just before the error.

I increased the timeout to 60 seconds in the v0.16 version. And then simply restarted after a timeout. That made it through… but now In the --final run I get timeouts again I’m not really sure what to look for… Here are some logs that might be interesting…
If I understand the last one correctly the final run succeeds after a rather short time but the verify seems to take forever and there is no progress indication. When only when in debug mode I see the rustls and hyper have successful connections mostly but every now and then they reconnect. and after some time there is a timeout. Why does the verify take so long?

2026-10-30T19:45:00.245058Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:45:00.318264Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:45:13.462752Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.463256Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.464957Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.468085Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.473253Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.493874Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.508371Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.527643Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:13.553987Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:15.180333Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:15.182511Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:15.182895Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:15.203458Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:15.243654Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:15.318692Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:58.419689Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:45:58.752289Z DEBUG reqwest::connect: starting new connection 'Some("hel1.your-objectstorage.com")'
2026-10-30T19:45:58.754057Z DEBUG hyper_util::client::legacy::connect::http: connecting to [2a01:4f9:b000::1]:443
2026-10-30T19:45:58.754756Z DEBUG hyper_util::client::legacy::connect::http: connected to [2a01:4f9:b000::1]:443
2026-10-30T19:45:58.754838Z DEBUG rustls::client::hs: Resuming session
2026-10-30T19:45:58.755935Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_256_GCM_SHA384
2026-10-30T19:45:58.755971Z DEBUG rustls::client::tls13: Not resuming
2026-10-30T19:45:58.756085Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
2026-10-30T19:45:58.756120Z DEBUG rustls::client::hs: ALPN protocol is Some(b"http/1.1")

2026-10-30T19:54:08.355584Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:54:08.366693Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:54:08.367267Z DEBUG hyper_util::client::legacy::pool: reuse idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:54:08.438843Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:54:08.446590Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", hel1.your-objectstorage.com)
2026-10-30T19:54:23.188424Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.201290Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.201386Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.204940Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.208713Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.208978Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.220254Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.224423Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.265577Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.275851Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.322255Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.328161Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.356816Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.439989Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:54:23.448375Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:55:07.567650Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:55:07.752299Z DEBUG reqwest::connect: starting new connection 'Some("hel1.your-objectstorage.com")'
2026-10-30T19:55:07.755041Z DEBUG hyper_util::client::legacy::connect::http: connecting to [2a01:4f9:b000::1]:443
2026-10-30T19:55:07.755882Z DEBUG hyper_util::client::legacy::connect::http: connected to [2a01:4f9:b000::1]:443
2026-10-30T19:55:07.755961Z DEBUG rustls::client::hs: Resuming session
2026-10-30T19:55:07.757100Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_256_GCM_SHA384
2026-10-30T19:55:07.757188Z DEBUG rustls::client::tls13: Not resuming
2026-10-30T19:55:07.757351Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), selected_protocol: SingleProtocolName(ProtocolName(687474702f312e31)), unknown_extensions: {}, .. }
2026-10-30T19:55:07.757401Z DEBUG rustls::client::hs: ALPN protocol is Some(b"http/1.1")
2026-10-30T19:56:07.753218Z DEBUG rustls::common_state: Sending warning alert CloseNotify
2026-10-30T19:56:07.872144Z  INFO migrate::orchestrator::verify: verify finished run_id=15 status=failed accounts_checked=0 mismatches=0 unexplained=0
2026-10-30T19:56:07.908708Z ERROR stalwart_migrate: command failed error=transient error: S3 error (store.s3-error): reason = S3 request failed: error sending request for url (https://hel1.your-objectstorage.com/solawis-stalwart/bdr[…]gnq): operation timed out

# sudo stalwart-migrate run --final   --source /etc/stalwart/config.json   --target /etc/stalwart-v1/config.json   --state /var/lib/stalwart-migrate   --owner "$(id -u stalwart):$(id -g stalwart)" --allow-errors
The final run requires every v0.16 node to be stopped. Type 'yes' to continue: yes
2026-10-30T19:59:11.823447Z  INFO migrate::commands::run: run state=/var/lib/stalwart-migrate/state.sqlite source=/etc/stalwart/config.json target=/etc/stalwart-v1/config.json categories=settings,principals,mail,calendars,contacts,files,sieve,identities,push_subscriptions,spam_samples,reports,archive,spam_model,queue,tasks,telemetry blob_mode=Shared edition="enterprise" concurrency=8
2026-10-30T19:59:11.887703Z  INFO migrate::orchestrator::preflight: watching the source change counters to make sure v0.16 is stopped seconds=30
2026-10-30T19:59:26.827399Z  INFO progress: progress run_id=16 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=0 registry_dropped=0 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=0 errors=0
2026-10-30T19:59:41.827286Z  INFO progress: progress run_id=16 objects_written=0 emails_written=0 bytes_written=0 objects_skipped=0 objects_deleted=0 log_rows=0 blobs_copied=0 blob_bytes=0 registry_written=0 registry_dropped=0 registry_deleted=0 accounts_full=0 accounts_delta=0 accounts_unchanged=0 accounts_failed=0 accounts_wiped=0 accounts_removed=0 global_records=0 global_deleted=0 issues=0 errors=0
2026-10-30T19:59:43.755274Z  INFO migrate::orchestrator::account: account pass started accounts=15 removed=0
2026-10-30T19:59:44.411409Z  INFO migrate::orchestrator::finalize: finalizing target accounts=15
2026-10-30T19:59:44.416733Z  INFO migrate::orchestrator: run finished run_id=16 status=ok stats={"accounts_delta":0,"accounts_failed":0,"accounts_full":0,"accounts_removed":0,"accounts_unchanged":15,"accounts_wiped":0,"blob_bytes":0,"blobs_copied":0,"bytes_written":0,"emails_written":0,"errors":0,"global_deleted":0,"global_records":141,"issues":36,"log_rows":0,"objects_deleted":0,"objects_skipped":0,"objects_written":0,"registry_deleted":0,"registry_dropped":0,"registry_written":0}


^C2026-10-30T20:40:10.467680Z  WARN migrate::shutdown: shutdown requested: finishing in-flight batches and flushing state; signal again to exit immediately
^C2026-10-30T20:41:30.983203Z ERROR migrate::shutdown: signal received: exiting immediately

[root@mx dietrich]# stalwart-migrate status --state /var/lib/stalwart-migrate
State database: /var/lib/stalwart-migrate/state.sqlite
tool_version           1.0.3
edition                enterprise
source_def_hash        65271213f28580bafff10d3ef9cc8eae
target_def_hash        e93be72cf3c1ff8179c0cb638f07e91a
target_schema_version  7
categories             settings,principals,mail,calendars,contacts,files,sieve,identities,push_subscriptions,spam_samples,reports,archive,spam_model,queue,tasks,telemetry
created_at             2026-10-30T05:36:11Z
accepted_errors        32
final_generation       done 32
source_store           directory /var/lib/stalwart
target_claim           799894d4ae18805136c700e0da9a1197
claim_generation       9921a093e7c7e1c4398dc38b5fb94961
claim_generation_pending 9921a093e7c7e1c4398dc38b5fb94961
final_done             not done

Accounts: 15
  done                 15

Recent runs:
  #33    verify       running      started 2026-10-30T22:30:43Z
  #32    final        ok           started 2026-10-30T22:30:10Z  took 33s
         accounts_unchanged=15, global_records=141, issues=36
  #31    verify       failed       started 2026-10-30T22:20:49Z  took 540s
  #30    final        ok           started 2026-10-30T22:20:16Z  took 33s
         accounts_unchanged=15, global_records=141, issues=36
  #29    verify       failed       started 2026-10-30T22:12:06Z  took 466s

Reports in the latest run:
  none

Reports in all runs:
  error    skipped             144
  info     changed             469
  info     dropped              13
  warning  dropped              61

Can I run the v0.16.27 version again, when the migrate does not succeed? V1.0 was never started. Or do I need to roll back?

The migration tool uses a new clean datastore, so ur old store was never touched (only readonly). So it should be no problem to start ur old server again - which still points to ur old blob store.

Yes but I’m not sure what happens to the blobstore during final as I opted for “reuse”.

From the docs I read that the trained spam filters are changed maybe so I might loose those… I started v 0.16.27 and it worked I think… the downtime was long enough now…

I restarted and restarted the stalwart-migrate throughout the night and it does not seem to finish anything.

My S3 Store is not that huge it should not take so long I think:

I don’t see usefull information in the debug log - at least not useful to me.

How can I upgrade? I’m stuck… If you could help me out that would be very great.

Your 0.16 restart was fine. The only thing a final run overwrites in the shared blob store is the spam model, and that happens after verify has passed, right before the migration is marked done. Your status output says final_done not done, so it never got there and your trained model is untouched. The next run picks up whatever 0.16 has changed since.

The size of your bucket isn’t the problem. Verify starts by checking that the blob behind every spam training sample exists, in batches of 1000, and it prints nothing while doing so, which is why it looks frozen. accounts_checked=0 shows it never got past that stage. Your debug log shows what stops it: at 19:54:08 fifteen connections finish and go idle while one request stays open, that request times out after 60 seconds at 19:55:07, goes out again on a fresh connection, and times out again at 19:56:07. So one S3 request got no answer for two minutes while its neighbours came back immediately. The whole batch then starts over and runs into the same request until the retry budget is gone, and each new run --final starts from the beginning, so restarting overnight couldn’t get anywhere.

You can get past that stage by leaving spam samples out of the last steps. The samples already copied stay in the target as they are, and verify skips their blobs. These steps use the same --source, --target, --state and --owner as before, and the first three run with 0.16 up, so no downtime:

  1. Install stalwart-migrate 1.0.4 with the install script. Your state directory carries over, and it fixes two false mismatches (keywords like \seen, and some vCard 3.0 cards) that could stop you once verify reaches the accounts.
  2. Do a normal stalwart-migrate run, which catches up on everything including the samples.
  3. Rehearse the verify:
stalwart-migrate run --exclude spam_samples ...
stalwart-migrate verify --retry-attempts 30 --retry-budget 900 ...

Mismatches for things that changed on the live server are expected here. What matters is that it reaches the end without an S3 error, which can take a while because it checks the blobs of all 15 accounts.

  1. If it does, stop 0.16 and run the real thing, with --allow-errors as you had it:
stalwart-migrate run --final --exclude spam_samples --retry-attempts 30 --retry-budget 900 --allow-errors ...

If an email blob stalls the same way, step 3 will show an unexplained the account could not be verified row in stalwart-migrate report --severity verify, and that would also block the final run, so you’d know before taking any downtime. Once a final run does pass, the spam model keys hold the v1 format, and going back to 0.16 means rollback.

I’d also like to know whether this is one bad object or something on the Hetzner side. The full URL should be in the error line of the log files under /var/lib/stalwart-migrate/logs/. Please try that URL with curl, using the same access key:

curl --aws-sigv4 "aws:amz:hel1:s3" --user "ACCESS_KEY:SECRET_KEY" -H 'Range: bytes=0-0' \
  -o /dev/null -m 180 -w '%{http_code} %{time_total}s\n' 'FULL_URL'

What does it print?

I’ve changed how verify handles this, and it ships in stalwart-migrate 1.0.5, which goes out today.

Each blob is now checked and retried on its own, so a request that stalls holds up one of the 16 slots while the others keep going, and a retry no longer repeats the checks that already finished. If one blob still doesn’t answer once its retries run out, verify carries on and reports it as blob <hash> referenced by the object could not be verified, so you get a list to look at. Those rows do block the final run, since that blob was never confirmed. Verify also prints a progress line every 15 seconds now, with blobs and accounts checked, for both verify and the check after run --final.

With that release you can drop --exclude spam_samples and use your normal run --final command. If the curl test from my last post gave you a result, I’d still like to see it, because this doesn’t tell us why Hetzner left that request hanging.

Thank you so much for that update. That sounds great that way there will be an incremental progress or at least a consistent error.

Hetzner had some Issues with S3 a week prior - might be that those were still the aftermath even though all systems are green on the dashboard now. Unfortunately it turned out that my experiments were timed badly which is why I need to be more cautious with the next try and it can probably be only in a month or so…

I think the urls the migrate-process timed out on, were different all or most of the times.

After reverting back to v0.16.27 I also have one S3-Blob failing in the logs. I will investigate further and report back with my results.

If a different URL stalled each time, that points at the Hetzner endpoint rather than one bad object, and it’s the case 1.0.5 handles: a request that hangs only holds up its own blob and gets retried on its own, so the run keeps moving.

The blob failing on 0.16.27 is a separate thing to look at before your next attempt, since verify will flag the same blob if it’s still unreadable. What does the error line for it say in the 0.16 log?

Mhm so I took a look at the current logs… The S3 Timeouts seem to be rather random. Most URL appear only once (If you need additional fields from the systemd journal I can gladly provide them):

# journalctl -Iu stalwart MESSAGE="S3 error" -o json | jq '{time: (.__REALTIME_TIMESTAMP | tonumber / 1000000 | strflocaltime("%Y-%m-%d %H:%M:%S %Z"))
, MESSAGE, REASON}' | jq '.REASON |= gsub("https://[^ )]+/(?<k>[^ )/]+)"; "https://<redacted>/…" + (.k[-5:]))'                                                          
{                                                                                                                                                                       
  "time": "2026-10-31 21:35:53 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…st2wq): error sending request for url (https://<redacted>/…st2wq): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-10-31 21:37:55 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…ltosa): error sending request for url (https://<redacted>/…ltosa): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-10-31 21:41:43 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…ob7uq): error sending request for url (https://<redacted>/…ob7uq): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-10-31 22:04:30 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…uapgq): error sending request for url (https://<redacted>/…uapgq): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-11-01 04:07:13 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…71j2q): error sending request for url (https://<redacted>/…71j2q): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-11-01 04:08:20 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…l7xlq): error sending request for url (https://<redacted>/…l7xlq): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-11-01 04:09:12 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…71j2q): error sending request for url (https://<redacted>/…71j2q): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-11-01 04:12:33 UTC",                                                                                                                                    
  "MESSAGE": "S3 error",                                                                                                                                                
  "REASON": "reqwest: error sending request for url (https://<redacted>/…71j2q): error sending request for url (https://<redacted>/…71j2q): operation timed out"        
}                                                                                                                                                                       
{                                                                                                                                                                       
  "time": "2026-11-01 07:00:35 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…db0ha): error sending request for url (https://<redacted>/…db0ha): operation timed out"        
}
{
  "time": "2026-11-01 07:14:53 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…eniwa): error sending request for url (https://<redacted>/…eniwa): operation timed out"        
}
{
  "time": "2026-11-01 09:31:33 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…bcjfq): error sending request for url (https://<redacted>/…bcjfq): operation timed out"        
}
{
  "time": "2026-11-01 09:33:31 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…tzcsq): error sending request for url (https://<redacted>/…tzcsq): operation timed out"        
}
{
  "time": "2026-11-01 09:42:34 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…y2vaa): error sending request for url (https://<redacted>/…y2vaa): operation timed out"        
}
{
  "time": "2026-11-01 09:50:27 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…jvg0a): error sending request for url (https://<redacted>/…jvg0a): operation timed out"        
}
{
  "time": "2026-11-01 17:04:09 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…zrxka): error sending request for url (https://<redacted>/…zrxka): operation timed out"        
}
{
  "time": "2026-11-01 17:05:10 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…zrxka): error sending request for url (https://<redacted>/…zrxka): operation timed out"        
}
{
  "time": "2026-11-01 21:28:11 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…7tk7q): error sending request for url (https://<redacted>/…7tk7q): operation timed out"        
}
{
  "time": "2026-11-01 21:37:49 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…9hdfq): error sending request for url (https://<redacted>/…9hdfq): operation timed out"        
}
{
  "time": "2026-11-01 21:44:05 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…7hksa): error sending request for url (https://<redacted>/…7hksa): operation timed out"        
}
{
  "time": "2026-11-01 21:52:15 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…rithq): error sending request for url (https://<redacted>/…rithq): operation timed out"        
}
{
  "time": "2026-11-02 09:34:22 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…yc3ta): error sending request for url (https://<redacted>/…yc3ta): operation timed out"        
}
{
  "time": "2026-11-02 09:37:18 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…vyvoa): error sending request for url (https://<redacted>/…vyvoa): operation timed out"        
}
{
  "time": "2026-11-02 09:44:20 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…dgdta): error sending request for url (https://<redacted>/…dgdta): operation timed out"        
}
{
  "time": "2026-11-02 09:48:49 UTC",
  "MESSAGE": "S3 error",
  "REASON": "reqwest: error sending request for url (https://<redacted>/…fakna): error sending request for url (https://<redacted>/…fakna): operation timed out"        
}

I did test some of the URL’s manually they are either 206 or 404 both seem to be rather expected:

#
curl --aws-sigv4 "aws:amz:hel1:s3" --user "$S3_ACCESS_KEY:$S3_SECRET_KEY" \
  -H 'Range: bytes=0-0' -o /dev/null -m 180 -w '%{http_code} %{time_total}s\n' \
  'https://redacted/…fakna'
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100      1 100      1   0      0      2      0                              0
206 0.344307s
[root@mx lib]# curl --aws-sigv4 "aws:amz:hel1:s3" --user "$S3_ACCESS_KEY:$S3_SECRET_KEY"   -H 'Range: bytes=0-0' -o /dev/null -m 180 -w '%{http_code} %{time_total}s\n'   'https://redacted/…71j2q'
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100    265 100    265   0      0   3175      0                              0
404 0.083439s
[root@mx lib]# curl --aws-sigv4 "aws:amz:hel1:s3" --user "$S3_ACCESS_KEY:$S3_SECRET_KEY"   -H 'Range: bytes=0-0' -o /dev/null -m 180 -w '%{http_code} %{time_total}s\n'   'https://redacted/…db0ha'
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100    265 100    265   0      0   3663      0                              0
404 0.072327s
[root@mx lib]# curl --aws-sigv4 "aws:amz:hel1:s3" --user "$S3_ACCESS_KEY:$S3_SECRET_KEY"   -H 'Range: bytes=0-0' -o /dev/null -m 180 -w '%{http_code} %{time_total}s\n'   'https://redacted/…tzcsq'
  % Total    % Received % Xferd  Average Speed  Time    Time    Time   Current
                                 Dload  Upload  Total   Spent   Left   Speed
100      1 100      1   0      0      6      0                              0
206 0.165322s

Does this conclude that it was most probably not stalwart-migrate’s fault? If we might be on track of a bug or problem I’d gladly help out providing more logs or so. If that is most likely a problem of Hetzner – I’d just wait another month and retry in December.

Yes, that list settles it for me. Those timeouts come from 0.16 itself, on its normal traffic, with stalwart-migrate nowhere near the bucket, and they land on a different key almost every time. The same requests answer in a fraction of a second when you repeat them with curl. That’s an endpoint that occasionally leaves a request hanging, and the migration simply makes a lot more requests in a short time than 0.16 does on a quiet day, so it ran into it far more often.

The 404s don’t change that. The log line doesn’t say whether the request that hung was a read, a write or a delete, and a key that 404s now fits a delete (for example from the blob purge) that went through on a later attempt. The keys that return 206 are blobs that are there and readable.

If you want to take it up with Hetzner, the timestamps from your journalctl output plus the bucket name and region are what they’d need to look at their side.

When you try again in December, install the latest stalwart-migrate first and keep the same --state directory, so it builds on the copy it already has.