Mailspring icon indicating copy to clipboard operation
Mailspring copied to clipboard

Mailspring don't work with google mail

Open rolandbreedveld opened this issue 8 years ago • 18 comments

Mailspring isn't working with my google account on my own at google hosted domain ([email protected])after allowing mailsping in my webbrowser, mailspring is connecting, but after some while I get:Sorry, we had trouble logging you inan unexpected mailsync error occurred (134)when I use a gmail account, it works fine. Using the latest version, on Ubuntu 17.10

rolandbreedveld avatar Feb 01 '18 15:02 rolandbreedveld

Hmm! It sounds like Mailspring isn't able to refresh your access token to Gmail for some reason. If you click "Retry" it still isn't able to connect?

bengotow avatar Feb 02 '18 19:02 bengotow

Same for me: An unexpected mailsync error occurred (134)

petr-nehez avatar Feb 06 '18 06:02 petr-nehez

@bengotow : No multiple retry's, always the same error

rolandbreedveld avatar Feb 14 '18 11:02 rolandbreedveld

same here

An unexpected mailsync error occurred (134)
  • MailSprint version: mailspring-1.1.5-5834c99f
  • OS: Ubuntu 17.10 amd64

KINGSABRI avatar Mar 08 '18 13:03 KINGSABRI

Same here An unknown error has occurred (mailsync: 134)

SebastianMunozMora avatar Nov 09 '18 13:11 SebastianMunozMora

Getting the same error. An unknown error has occurred (mailsync: 134)

yashminimal avatar Nov 25 '18 06:11 yashminimal

Same error. When I click the "retry" button, the same situation happens. Still cannot log in my gmail account. OS: ubuntu 18.04.

Oh, solved it. Just wait for a couple of days and retry, problem solved it.

haowenke avatar Dec 27 '18 12:12 haowenke

Same issue here... half of my email accounts disconnect from google and require me to re-authenticate through Google's web portal every day

Ryanauger95 avatar Feb 28 '19 19:02 Ryanauger95

sme issue here since 1.6.3 update

ITCMD avatar Jul 28 '19 11:07 ITCMD

I'm struggling with this problem now. Please see console log below

sikand avatar Aug 13 '19 01:08 sikand

{ Error: An unknown error has occurred (mailsync: 134) at ChildProcess._proc.on.code (file:///tmp/nylas-build/electron-packager/linux-x64/mailspring-linux-x64/resources/app/src/mailsync-process.ts:226:25) at ChildProcess.emit (events.js:182:13) at ChildProcess.EventEmitter.emit (domain.js:442:20) at maybeClose (internal/child_process.js:962:16) at Socket.stream.socket.on (internal/child_process.js:381:11) at Socket.emit (events.js:182:13) at Socket.EventEmitter.emit (domain.js:442:20) at Pipe._handle.close (net.js:606:12) message: 'An unknown error has occurred (mailsync: 134)', rawLog: '\nWaiting for Account JSON:\n\nWaiting for Identity JSON:\nmailsync.bin: /home/travis/build/Foundry376/Mailspring/mailsync/MailSync/Models/MailModel.cpp:39: MailModel::MailModel(nlohmann::json): Assertion `_data.is_object()' failed.\n\n ***\n *** An abort error occurred during program execution.\n *** This error is thrown by system functions that detect corrupt state.\n **\n *** Stack trace:\n *** gsignal\n *** abort\n *** MailModel::MailModel(nlohmann::basic_json)\n *** Identity::Identity(nlohmann::basic_json)\n *** ZN9__gnu_cxx13new_allocatorI8IdentityE9constructIS1_IN8nlohmann10basic_jsonISt3mapSt6vectorSsblmdSaNS4_14adl_serializerEEEEEEvPT_DpOT0\n *** void allocator_traits::construct(allocator&, Identity, nlohmann::basic_json&&)\n *** _Sp_counted_ptr_inplace::_Sp_counted_ptr_inplace(allocator, nlohmann::basic_json&&)\n *** shared_ptr::shared_ptr(_Sp_make_shared_tag, allocator const&, nlohmann::basic_json&&)\n *** shared_ptr allocate_shared(allocator const&, nlohmann::basic_json&&)\n *** ZSt11make_sharedI8IdentityIN8nlohmann10basic_jsonISt3mapSt6vectorSsblmdSaNS1_14adl_serializerEEEEESt10shared_ptrIT_EDpOT0\n *** main\n ***\n/snap/mailspring/374/usr/share/mailspring/resources/app.asar.unpacked/mailsync: line 4: 1851 Aborted (core dumped) SASL_PATH="$(dirname $(realpath $0))" LD_LIBRARY_PATH="$(dirname $(realpath $0));$LD_LIBRARY_PATH" "$(dirname $0)/mailsync.bin" "$@"\n' } { pluginIds: [] }

sikand avatar Aug 13 '19 01:08 sikand

same too

csysl avatar Oct 09 '19 09:10 csysl

I have this problem as well. I accept the permissions for Mailspring in my browser, but Mailspring keeps saying "Connecting". After a few seconds, it changes to this error message. Sorry, we had trouble loging you in An unknown error has occurred (mailsync: 134) I retried to no avail. Permissions are set correctly when I check on my Google Account.

EDIT : I disconnected from my VPN (Private Internet Access) and it worked.

Lokdal avatar Oct 29 '19 14:10 Lokdal

Have three accounts (gmail) all fail to sync when connected to VPN (Private Internet Access). Only works if I disconnect.

1beb avatar Jan 23 '20 16:01 1beb

I have same issue, I use no VPN, and on my other device on the same network mailspring works perfectly. Logs:

// When pushing "Try now" button to resync accounts that have connection issues
mailsync-bridge.ts:194 Sending `wake` to all mailsync workers...
sendSyncMailNow @ mailsync-bridge.ts:194
fn @ offline-notification.tsx:21
_onClick @ notification.tsx:83
onClick @ notification.tsx:146
fa @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:14
ma @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:15
na @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:15
za @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:17
Da @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:18
Fa @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:18
Ba @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:18
Ia @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:21
be @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:84
Ii @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:231
bc @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:39
ee @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:86
Ki @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:232
de @ /snap/mailspring/488/usr/share/mailspring/resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:85
mailsync-process.ts:312 Sending to mailsync 8f13bad0 {type: "wake-workers"}
mailsync-process.ts:312 Sending to mailsync f88121c8 {type: "wake-workers"}


// Attempting to sync - reauthenticate GMAIL account
Sync worker sent non-JSON formatted message: Waiting for Account JSON:

exapsy avatar Jul 04 '20 11:07 exapsy

This issue has been mentioned on Mailspring Community. There might be relevant details there:

https://community.getmailspring.com/t/cannot-connect-to-gmail-from-behind-vpn/421/1

foundry376-bot avatar Feb 01 '21 21:02 foundry376-bot

We are in the process of migrating issues to Discourse, which can better facilitate discussion and discovery, and so GitHub Issues can focus on issues that are confirmed and slated for resolution in the near term. Learn more about the changes here.

As part of this, we've migrated this issue to Discourse:

https://community.getmailspring.com/t/cannot-connect-to-gmail-from-behind-vpn/421

There is also a related bug: https://community.getmailspring.com/t/gmail-mailsync-134/422

Please consider joining that community and continuing the discussion there!

We're closing and locking the issue here as part of this migration. Rest assured, this doesn't mean the issue is being discarded or ignored.

We hope to see you on Discourse soon!

-The Mailspring Team

CodeMouse92 avatar Feb 01 '21 21:02 CodeMouse92

Hey @rolandbreedveld,

Thanks for reporting this issue back in 2018 - there's been significant work on the mailsync engine since then, especially around Gmail connectivity.

The root cause of error 134 you were experiencing was likely related to TLS certificate handling. Gmail requires TLS Server Name Indication (SNI) for secure connections, and without it, Gmail's servers would return invalid certificates. This could cause the connection to fail silently or send corrupted data, triggering the assertion failure you saw in the mailsync logs.

We've since added proper SNI support to the mailsync engine, along with several other Gmail-specific fixes including improved SSL certificate chain handling in snap packages and better error recovery for network issues.

See: https://github.com/Foundry376/Mailspring-Sync/commit/3e4aea3c

If you'd like to give the latest version a try, you can download it at https://getmailspring.com/download. We've also moved to community forums at https://community.getmailspring.com if you encounter any other issues.

Looking forward to hearing if this resolves things for you!

-The Mailspring Team

bengotow avatar Jan 27 '26 04:01 bengotow