Description
Over the weekend, I used Thunderbird to archive emails from 2007 to 2014 into archive folders by year (Archive/2007
, Archive/2008
, etc). This moved tens of thousands of emails from the inbox into other folders.
Today, another PC I use Mailspring on is constantly throwing errors:
There are 15 “database is locked” C++ errors in the Mailsync logs, eg:
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 255823-255823
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 255876-255876
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 255892-255892
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 255933-255933
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 255953-255953
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 255973-255973
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 256014-256015
20428 [2021-03-29 12:57:31.308] [background] [info] - Building queries for range 256024-256024
20428 [2021-03-29 12:57:31.308] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:31.487] [foreground] [info] syncFolderChangesViaCondstore - Changes since HMODSEQ 259988: 453 changed, 65597 vanished
20428 [2021-03-29 12:57:31.523] [foreground] [info] - Updating message N9qzCWvfwVYtH4mAkCHYbmbGy3qRck4Csea9PJumU
20428 [2021-03-29 12:57:31.523] [foreground] [info] -- UID (256068 to 256050)
20428 [2021-03-29 12:57:32.135] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:32.135] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (826ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:32.135] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:33.041] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:33.041] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (905ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:33.041] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:33.857] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:33.857] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (816ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:33.857] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:34.730] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:34.730] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (872ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:34.730] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:35.545] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:35.545] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (815ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:35.545] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:36.441] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:36.441] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (895ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:36.441] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:36.853] [metadata] [info] Will retry in 3 sec.
20428 [2021-03-29 12:57:37.199] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:37.199] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (758ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:37.199] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:38.159] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:38.159] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (959ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:38.159] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:39.013] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:39.013] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (854ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:39.013] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:39.870] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:39.870] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (856ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:39.870] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:40.710] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:40.710] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (839ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:40.710] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:41.547] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:41.547] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (837ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:41.547] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:42.464] [background] [info] -- 0 matches.
20428 [2021-03-29 12:57:42.464] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (917ms, 0 waiting to aquire)
20428 [2021-03-29 12:57:42.464] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
20428 [2021-03-29 12:57:42.500] [metadata] [info] Will retry in 5 sec.
20428 [2021-03-29 12:57:42.555] [foreground] [critical]
***
*** Mailspring Sync
*** A C++ exception occurred during program execution:
*** database is locked
***
32736 [2021-03-29 12:57:57.449] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (764ms, 0 waiting to aquire)
32736 [2021-03-29 12:57:57.449] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
32736 [2021-03-29 12:57:58.216] [metadata] [info] Will retry in 5 sec.
32736 [2021-03-29 12:57:58.260] [background] [info] -- 0 matches.
32736 [2021-03-29 12:57:58.260] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (810ms, 0 waiting to aquire)
32736 [2021-03-29 12:57:58.260] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
32736 [2021-03-29 12:57:58.331] [foreground] [critical]
***
*** Mailspring Sync
*** A C++ exception occurred during program execution:
*** database is locked
***
19880 [2021-03-29 12:58:43.859] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (768ms, 0 waiting to aquire)
19880 [2021-03-29 12:58:43.859] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
19880 [2021-03-29 12:58:44.651] [background] [info] -- 0 matches.
19880 [2021-03-29 12:58:44.652] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (792ms, 0 waiting to aquire)
19880 [2021-03-29 12:58:44.652] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
19880 [2021-03-29 12:58:45.434] [background] [info] -- 0 matches.
19880 [2021-03-29 12:58:45.434] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (782ms, 0 waiting to aquire)
19880 [2021-03-29 12:58:45.435] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
19880 [2021-03-29 12:58:45.948] [metadata] [info] Will retry in 5 sec.
19880 [2021-03-29 12:58:46.010] [foreground] [critical]
***
*** Mailspring Sync
*** A C++ exception occurred during program execution:
*** database is locked
***
5840 [2021-03-29 09:51:49.645] [foreground] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (1048ms, 0 waiting to aquire)
5840 [2021-03-29 09:51:49.650] [foreground] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
5840 [2021-03-29 09:51:50.289] [background] [info] -- 0 matches.
5840 [2021-03-29 09:51:50.289] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (3873ms, 3107 waiting to aquire)
5840 [2021-03-29 09:51:50.289] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
5840 [2021-03-29 09:51:51.037] [background] [info] -- 0 matches.
5840 [2021-03-29 09:51:51.037] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (747ms, 0 waiting to aquire)
5840 [2021-03-29 09:51:51.037] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
5840 [2021-03-29 09:51:51.731] [background] [info] -- 107 matches.
5840 [2021-03-29 09:51:51.796] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (759ms, 0 waiting to aquire)
5840 [2021-03-29 09:51:51.797] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
5840 [2021-03-29 09:51:52.546] [background] [info] -- 114 matches.
5840 [2021-03-29 09:51:52.608] [background] [warning] [SLOW] Transaction=unlinkMessagesMatchingQuery > 80ms (811ms, 0 waiting to aquire)
5840 [2021-03-29 09:51:52.609] [background] [info] Unlinking messages WHERE remoteFolderId = ? AND remoteUID < ? no longer present in remote range.
5840 [2021-03-29 09:51:58.216] [background] [info] -- 176642 matches.
5840 [2021-03-29 09:52:00.920] [foreground] [critical]
***
*** Mailspring Sync
*** A C++ exception occurred during program execution:
*** database is locked
Full log: https://d.ls/mailspring/large-changes-bug.log
I totally deleted the account from Mailspring and re-added it, which should hopefully resync everything and fix this. I guess the “rebuild cache” option might have helped too (but I forgot to try it)
To Reproduce…
Steps to reproduce the behavior:
- Move a LOT of emails around in a different email client
- Try to use Mailspring
Expected Behavior
It should handle this properly.
Screenshots
As above
Setup
- OS and Version: Windows 10, 20H2
- Installation Method: Windows Installer
- Mailspring Version: 1.8.0