We encountered a problem with your local email database. Error: An unknown error has occurred (mailsync: 2)

Description

So me and my friend now spend a couple of days to try to get mail spring running. My friend is on ubuntu and I am on mac. We both can build the app via the npm run-script build. But we are not able to start the application with npm start. We tried debugging now for 2 days. For me it also only works if i set my terminal to i386, but thats not the problem right now. We tried both node 16 and 18. same issue.

So if we run npm start after installing everything we get this error: We encountered a problem with your local email database. Error: An unknown error has occurred (mailsync: 2). So this is before the electron UI starts. We have been looking into for awhile now. We think mailsync just shuts down direct in the development environment.

##Steps to reproduce the behavior:

  • Clone the Mailspring repo and run npm install (ensuring scripts/postinstall.js downloads mailsync).
  • Run npm start to launch the Electron UI.

Expected Behavior

Start the Mailspring for development

Setup

  • OS and Version: macOS 15.5, Ubuntu Linux 24.04

  • Mailspring Version:1.16