Similar thing for me with 1.9 snap. My office365 school account disconnects within minutes of setting it up again. Downloads everything fine at first, but then gives that error and does not reconnect.
Odd thing is when I connect the account, it doesn’t go through 2-factor authentication (university uses Duo security). I wonder if that has something to do with it?
Issue seems to start with error messages in the logs of “Local model is not present”
Generally, logs show:
19681 [2021-06-14 11:40:41.832] [main] [info] Identity created at 1548560126 - using ID Schema 1
19681 [2021-06-14 11:40:41.833] [main] [info] ------------- Starting Sync (@.EDU) ---------------
19681 [2021-06-14 11:40:41.837] [metadata] [info] Metadata delta stream starting…
19681 [2021-06-14 11:40:41.838] [background] [info] Fetching XOAuth2 access token (office365) for d7b5e870
19681 [2021-06-14 11:40:42.341] [background] [info] Saving updated XOAuth2 refresh token (office365) for d7b5e870
19681 [2021-06-14 11:40:42.342] [background] [info] Marking all folders asbusy
19681 [2021-06-14 11:40:42.342] [background] [info] Syncing folder list…
19681 [2021-06-14 11:40:42.394] [metadata] [info] Received metadata V1 for (message - TCzx9aPH8zEDgrpYvyMcJZrF4uDKLbshAfZNwA9Qz)
19681 [2021-06-14 11:40:42.394] [metadata] [info] – Local model is not present. Saving to waiting table.
19681 [2021-06-14 11:40:42.395] [metadata] [info] Received metadata V3 for (message - TCzx9aPH8zEDgrpYvyMcJZrF4uDKLbshAfZNwA9Qz)
and then eventually gives:
*** Mailspring Sync
*** An exception occurred during program execution:
*** {“debuginfo”:“syncFoldersAndLabels - fetchAllFolders”,“key”:“ErrorConnection”,“retryable”:true,“what”:“std::exception”}