Upgrade to v1.0 - What is and what is not expected in prepare-report.txt?

Your question

Firstly, big congratulations to everybody involved in releasing 1.0. Thank you.

The version 1.0 announcement for Stalwart says of the migrate tool:

“…The tool converts your settings to the v1.0 schema and copies all data into a new, empty v1.0 store. It only reads from the old store, so the original deployment stays intact and can be restarted at any point before the switch.”

If it “converts your settings” and “copies all data”, I would expect prepart-report.txt to contain no warnings or errors. Mine does:


Summary: 3049 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 FileSystem 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/jalbtgasd2aa
x:SpamTag/jalbtgasd2qa
x:SpamTag/jalbtgasd0aa
x:SpamTag/jalbtgasd0qa
x:SpamTag/jalbtgasd1aa
x:SpamTag/jalbtgasd1qa
x:SpamTag/jalbtgasd3aa
x:SpamTag/jalbtgasd3qa
x:SpamTag/jalbtgaseaaa
x:SpamTag/jalbtgaseaqa
x:SpamTag/jalbtgasebaa
x:SpamTag/jalbtgasebqa

Changes:
info: x:AcmeProvider/jalbmr7mabaa description: acme_description: v0.16 computed the description from the directory URL and the account; v1 stores it
warning: x:AcmeProvider/jalbmr7mabaa maxRetries: dropped (no equivalent in the target version), was 10
info: x:NetworkListener/jalbteboaeqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalbteboafab maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalbteboafqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalbteboagab maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalbteboagqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalbteboahab maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalbteboahqb maxConnections: v0.16 default 8192 replaced by the new default
info: x:NetworkListener/jalripvcabqa 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/jalbtgamcjqa tag: spam_tag: DISPOSABLE_REPLYTO renamed to DISPOSABLE_REPLY_TO, the tag v1 emits
warning: x:SpamTag/jalbtgasd2aa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:3.0,“tag”:“LLM_COMMERCIAL_HIGH”}
warning: x:SpamTag/jalbtgasd2qa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:0.5,“tag”:“LLM_COMMERCIAL_LOW”}
warning: x:SpamTag/jalbtgasd0aa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:2.0,“tag”:“LLM_COMMERCIAL_MEDIUM”}
warning: x:SpamTag/jalbtgasd0qa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:3.0,“tag”:“LLM_HARMFUL_HIGH”}
warning: x:SpamTag/jalbtgasd1aa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:0.5,“tag”:“LLM_HARMFUL_LOW”}
warning: x:SpamTag/jalbtgasd1qa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:2.0,“tag”:“LLM_HARMFUL_MEDIUM”}
warning: x:SpamTag/jalbtgasd3aa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:-3.0,“tag”:“LLM_LEGITIMATE_HIGH”}
warning: x:SpamTag/jalbtgasd3qa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:-0.5,“tag”:“LLM_LEGITIMATE_LOW”}
warning: x:SpamTag/jalbtgaseaaa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:-2.0,“tag”:“LLM_LEGITIMATE_MEDIUM”}
warning: x:SpamTag/jalbtgaseaqa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:3.0,“tag”:“LLM_UNSOLICITED_HIGH”}
warning: x:SpamTag/jalbtgasebaa: dropped (no equivalent in the target version), was {“@type”:“Score”,“score”:0.5,“tag”:“LLM_UNSOLICITED_LOW”}
warning: x:SpamTag/jalbtgasebqa: 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)
info: x:Tracer/jalbmovqaaaa prefix: v0.16 default “stalwart” kept (changed default pinned)
info: x:SpamPyzor enable: v0.16 default true kept (changed default pinned)


It may be that all of the above is normal and expected, but the quick migration guide ( ) and the more detaild preparation instructions ( ) just say “Then review prepare-report.txt … which lists every dropped object and every changed setting.”. From my point of view, if those warnings were expected, then they surely wouldn’t be detailed in the file - the fact that they are indicates to me that I need to fix something.

So that leaves me not understanding the warning, not knowing whether this is expected and not knowing how to fix the problems (if they need fixing).

So, taking the first warning for example:

warning: x:AcmeProvider/jalbmr7mabaa maxRetries: dropped (no equivalent in the target version), was 10

It seems to me that storing the number of ACME retries is probably quite important - and yet this doesn’t seem to be stored in the later version. Is this right? Is it stored elsewhere? How is it populated? How do I fix this?

I’m stuck at the point where I want to upgrade, but I’m simply not sure whether I’m going to break something or not and whether if I do upgrade I’m going to end up with a system with half of its functionality missing.

I appreciate that the documentation for the migrate tool is quite comprehensive, but I do feel it needs something more than “review prepare-report.txt” in terms of defining exactly what one should and should not expect to see in that file.

If somebody could cast their eyes over my file and tell me what I need to be concerned about, I’d be grateful.

Nothing in the docs I could search explains these particular fields, so I’ll stick to what the docs do say.

Most of your report looks like the tool doing what it’s designed to do. I can’t confirm that every individual line is harmless, though.

What the report is. prepare-report.txt isn’t a list of problems for you to fix. The docs describe it as a record of every difference between what v0.16 held and what v1.0 receives. The docs say “Some data has no place in 1.0 or exceeds a 1.0 limit, and some settings change meaning. The conversion handles each case with a documented fallback and records it, so nothing is lost silently.” A dropped row means the field has no v1.0 equivalent and wasn’t copied. A changed row means the value was converted to a different v1.0 form. Severity error is the level that blocks run --final, and your summary shows 0 errors. It also says “Every question has an answer; run can start.”

Your lines, by group. I checked these against the docs’ definitions only, not against the v1.0 schema.

  • info lines (for example the maxConnections default replacement, the DISPOSABLE_REPLY_TO rename, and the pinned Tracer prefix and Pyzor defaults): these record conversions or defaults that were kept or replaced. They need no action.
  • AcmeProvider maxRetries, OidcProvider fields, SystemSettings threadPoolSize: these settings have no v1.0 equivalent, so the tool didn’t copy them. I couldn’t find where, or whether, v1.0 handles ACME retries by another mechanism. The tool says only that the field was dropped. The migrate tool’s SCHEMA_CHANGES.md lists the schema differences behind these conversions, and it’s the best place to check. I couldn’t open it from here.
  • Role permission lines: the dropped permissions (for example sysLogCreate and taskIndexDocument) belong to objects or operations that v1.0 doesn’t have. The paired info lines show the new permissions granted in their place. This looks like a permission-set remap, not lost access.
  • The 12 SpamTag LLM_* entries: these were dropped as having no v1.0 equivalent. If you use the LLM-based spam classification, check that the v1.0 spam filter covers what you need after migrating.

The spam model note at the top. This one matters more than the rest. With the spam_model category, run --final overwrites the spam models in your external FileSystem blob store. v0.16 can’t read the v1 format. If you might roll back, you’ll need --allow-shared-deletes or --keep-v1-spam-model, as the message says.

Safety. The tool only reads from the old store, so your v0.16 deployment stays intact until you switch. The spam-model overwrite above is the exception when the blob store is shared. After run --final, you can also compare the stores with stalwart-migrate verify. Then review the rows of the final run with report --severity error and --severity verify. See Verifying the migration and Preparing the migration.

Your point that the docs should define what is normal in this file is fair. A community or staff member may be able to say whether the maxRetries drop matters in practice.

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

Hi NAB,

Nothing in that report needs fixing. The file lists every change so you can review it, and a warning there means “this value is not carried over”, not “something is broken”. The ones that would stop you are error lines, and you have none. Your counts (12 dropped, 61 warnings) are the same ones other 0.16.27 stores show, because almost all of them come from stock objects every 0.16 install has.

  • AcmeProvider maxRetries: 1.0 handles ACME retries internally, so there’s no setting to copy the 10 into. Certificate renewal itself is unaffected.
  • The four OidcProvider fields don’t exist in 1.0. Client registration is the question you already answered in prepare, refreshTokenExpiry now works as an idle timeout (which replaces the separate renewal window), and the authorization code attempts limit is gone.
  • The Role ... enabledPermissions/...: dropped lines are permissions that have nothing to grant in 1.0: operations that no longer exist (creating log, metric or trace entries, for example) and the indexing tasks, which 1.0 replaced with an internal index queue. The info lines right after them list the new 1.0 permissions your roles were given instead.
  • The 12 LLM_* spam tags belonged to the 0.16 LLM classifier. 1.0 replaces it with the AI classifier, which doesn’t emit those tags, so their scores have nothing to attach to. If you used the LLM classifier, set up the AI classifier after the upgrade; if you didn’t, these are only the stock defaults.
  • SystemSettings threadPoolSize: 1.0 no longer has that thread pool.

The info lines are changes made for you: maxConnections, the tracer prefix and Pyzor follow the changed-defaults policy you picked in prepare, and DISPOSABLE_REPLYTO becomes the tag name 1.0 emits.

The one point that needs your attention is the spam_model note at the top: after the final run, a rollback to 0.16 needs one of the two flags it mentions, because both versions keep their spam models under the same keys in your FileSystem blob store.