Hey folks! Thanks for reporting this and attaching the logs, it looks like there may be a few separate things going on here -
The “database is locked” issues seem to be specific to the new releases. We shipped 1.9.1 which added SQLite’s HAVE_USLEEP flag to reduce lock contention, but it looks like we might still have an issue there. @Phylu any chance you’re running from source and need to re-run npm install to get the rebuilt version of SQLite? Will see if I can reproduce today.
@kikoulol4485 , it looks like Mailspring is actually failing to log in to our backend services - any chance you deleted your Mailspring ID but are still logged in under Preferences > Subscription in the app? If you want to opt out of the Mailspring ID, you’ll need to click “Log Out” on that tab. If you didn’t mean to do any of the above, logging out and logging back in on Preferences > Subscription should fix it!
@Ruan-Kuypers - it looks like Mailspring is actually failing to log in to that account you pictured in the logs - we’re getting an authentication error from your IMAP service. I don’t think we’ve seen that before - it seems like Mailspring must be unable to write to your Windows Credential Vault or it’s being reset repeatedly. Can you try opening Credential Manager from the task bar search field and then looking for “Mailspring/Mailspring Keys” under Generic Credentials? If it’s not there that will help narrow down the problem!
Thanks for the heads-up !
I didn’t deleted my mailspring account. I’ve switch to snap package, and then the issue disappeared. So you must be right, mailspring ID related.
The “database is locked” issue happened on my installation from the .deb package. But somehow, it disappeared by itself. For a few days, I have no more problems here.
@bengotow Just an update, Yesterday I opened Mailspring and all my accounts loaded without any problems. This morning I opened Mailspring and the errors still occur.
I recently started having this same issue when I added a 4th email account. Every time I reopen Mailspring, it fails to connect and requires me to re-enter my IMAP/SMTP passwords (they seem to not be saved). I am on windows, and I do see “Mailspring/Mailspring Keys” in Windows Credential Manager, but it has not been modified since 2021-02-02 (well before I added my 4th account). I have not deleted my Mailspring ID or anything like that.
Mailspring Version: 1.9.1-30ef802f
Platform: win32
Account State: sync_error
Account Provider: imap
IMAP Server: mail.gandi.net
SMTP Server: mail.gandi.net
--------------------------------------------
3808 [2021-05-06 12:57:19.001] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 5 to 5, uidnext 2 to 2
3808 [2021-05-06 12:57:19.186] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:57:19.369] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2 to 2, uidnext 2 to 2
3808 [2021-05-06 12:57:19.554] [background] [info] syncFolderChangesViaCondstore - Spam: modseq 7 to 7, uidnext 3 to 3
3808 [2021-05-06 12:57:19.773] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 5 to 5, uidnext 5 to 5
3808 [2021-05-06 12:57:19.965] [background] [info] syncFolderChangesViaCondstore - Trash/HEY: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:57:20.150] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:57:20.339] [background] [info] syncFolderChangesViaCondstore - Mailspring/Snoozed: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:57:20.339] [background] [info] Sync loop deleting unlinked messages with phase 2.
3808 [2021-05-06 12:57:20.339] [background] [info] Sync loop complete.
3808 [2021-05-06 12:59:03.944] [foreground] [info] Idle exited with code 0
3808 [2021-05-06 12:59:04.125] [foreground] [info] syncFolderChangesViaCondstore - INBOX: modseq 24 to 24, uidnext 10 to 10
3808 [2021-05-06 12:59:04.126] [foreground] [info] Idling on folder INBOX
3808 [2021-05-06 12:59:20.340] [background] [info] Syncing folder list...
3808 [2021-05-06 12:59:20.731] [background] [info] syncFolderChangesViaCondstore - INBOX: modseq 24 to 24, uidnext 10 to 10
3808 [2021-05-06 12:59:20.915] [background] [info] syncFolderChangesViaCondstore - Sent: modseq 3 to 3, uidnext 2 to 2
3808 [2021-05-06 12:59:21.097] [background] [info] syncFolderChangesViaCondstore - Drafts: modseq 5 to 5, uidnext 2 to 2
3808 [2021-05-06 12:59:21.282] [background] [info] syncFolderChangesViaCondstore - Archive: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:59:21.476] [background] [info] syncFolderChangesViaCondstore - Deleted Messages: modseq 2 to 2, uidnext 2 to 2
3808 [2021-05-06 12:59:21.662] [background] [info] syncFolderChangesViaCondstore - Spam: modseq 7 to 7, uidnext 3 to 3
3808 [2021-05-06 12:59:21.915] [background] [info] syncFolderChangesViaCondstore - Trash: modseq 5 to 5, uidnext 5 to 5
3808 [2021-05-06 12:59:22.148] [background] [info] syncFolderChangesViaCondstore - Trash/HEY: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:59:22.331] [background] [info] syncFolderChangesViaCondstore - Mailspring: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:59:22.511] [background] [info] syncFolderChangesViaCondstore - Mailspring/Snoozed: modseq 1 to 1, uidnext 1 to 1
3808 [2021-05-06 12:59:22.512] [background] [info] Sync loop deleting unlinked messages with phase 1.
3808 [2021-05-06 12:59:22.512] [background] [info] Sync loop complete.
@Phylu So your accounts are no longer getting disconnected? What did you do to resolve it?
@bengotow I’ve deleted the credentials and completely deleted Mailspring using CC cleaner. I used a fresh installation and the problem still persists. Even tested it using only 3 accounts instead of 4.
If it helps, I have three accounts managed by Mailspring 1.9.1 and two of them consistently get sync errors. As far as I can tell, it isn’t happening upon closing Mailspring, but I don’t exactly know the cause. Reconnecting works fine, but only lasts about a day.
The strange thing is, I’m not receiving errors in the feed. The two accounts are both GMail. Here’s an example of the feed:
Any resolution available for above issue or should we give up on mailspring, obviously can’t continue with this issue and authorizing accounts every second day. Pls guide
I’ve given up on it, went back to Outlook. It’s a great email client but having to log into all my email accounts every time I close the client is a pain in the but.
Hopefully, someone in the community finds a way to fix it
I also have this problem but only in my Windows 10 installation. Almost every time I open Mailspring I have to reauthenticate and I only have two accounts. In my Ubuntu 20.04 installation everything works like a charm.
It’s months and months of white screens of death, credentials dissapearing, not to mention the years of syncing issues… I just give up, I canceled my subscription and now I’m finding another email client. It’s just impossible to deal with the lack of professionalism of this company.
To the developer(s): if you can’t support your software, even with people paying, just kill it. Stop using people.
I’m experiencing the same issue with Gmail and Yahoo email account. I have to reconnect Mailspring to Gmail and Yahoo after having closed and reponed Mailspring