Nylas-mail: "Syncing your mailbox" doesn't retrieve any emails after letting the app sync all night -- IMAP /always/ times out

Created on 27 Jan 2017  Â·  81Comments  Â·  Source: nylas/nylas-mail

Are there any related issues?

I initially wrote about this problem at https://github.com/nylas/N1/issues/3179#issuecomment-275509034. but #3198 could be related?

What operating system are you using?

macOS 10.12

What version of N1 are you using?

1.0.15

--

Bug?

Do you have any third-party plugins installed? If so, which ones?

None

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

Only tested Gmail.

--

Since originally getting my Gmail account added, I let Nylas run overnight so it could sync all my messages. However, after 16 hours, no emails have been synced. My All Mail tab gives me 'No Messages', and I still get a 'Syncing to your mailbox...' notice.

nylas-sync

Running Nylas Mail in dev mode doesn't rise any errors or flags.

bug done-pending-release

Most helpful comment

Hi everyone, we are working on a patch that will be released in the next version-- thanks for waiting!

All 81 comments

My inbox has been syncing for a few minutes now and I've yet to see one message. I know it's early, but I'd expect to see at least one message come through.

Labels appeared, but no email.

hey folks, in order to diagnose this, could you do the following:

  1. Open the Activity Window via cmd+alt+i
  2. In the Activity Window, open Dev Tools via cmd+alt+w
  3. Select the Console tab
  4. Send me a screenshot of your Console as it is

  5. Then select the Filter icon
    image

  6. Then Filter by Errors
    screen shot 2017-01-27 at 9 53 41 am

  7. Send me a screenshot of your Console filtered by errors

If you prefer not to share the screenshots here, feel free to send them to [email protected] and mention Juan

Thanks!

@jstejada ran with and without debug flags.. there are no errors being reported
but i also only see 3 requests instead of 4

@yannick-mamudo do you see anything in the Console at all?

screen shot 2017-01-27 at 12 34 45
nothing that looks suspicious to me

My Nylas inspector looks the exact same as @yannick-mamudo's.

My Activity console (unfiltered):
nylas-activity1

And filtered:
nylas-activity2

thanks!!

@yannick-mamudo , is that the Console in your Activity Window? Do you not see any other log's like in @v0wels Console?

screen shot 2017-01-27 at 12 53 53
unfortunately no errors being reported

Stuck on sync on a specific month. CPU still going. No progress for hours. No errors.

+1

I have my emails pulled in and displayed, but N1 is still stuck in a perpetual "Syncing your mailbox..." loop. I too do not see any errors in the console, but a tail of the log shows lines like the following spewing out every ~20 milliseconds:

{"host":"us163957","timestamp":"2017-01-28T18:32:37.030Z","payload":["ActionBridge: default Action Bridge Received: db-store-trigger"]}
{"host":"us163957","timestamp":"2017-01-28T18:32:37.297Z","payload":["ActionBridge: default Action Bridge Received: db-store-trigger"]}
{"host":"us163957","timestamp":"2017-01-28T18:32:37.416Z","payload":["ActionBridge: default Action Bridge Received: db-store-trigger"]}
{"host":"us163957","timestamp":"2017-01-28T18:32:37.433Z","payload":["ActionBridge: default Action Bridge Received: db-store-trigger"]}
{"host":"us163957","timestamp":"2017-01-28T18:32:37.446Z","payload":["ActionBridge: default Action Bridge Received: db-store-trigger"]}

I installed and setup N1 last night for 2 GApps accounts (one with Google login and the other with an enterprise login for my work) both accounts have been in the "Syncing your mailbox..." with each account showing both "All" & "Spam" as "In Progress".

In Mac's Activity Monitor, there are 2 separate "Nylas Mail Helper" processes that are each hovering (non-stop) at around 45% CPU.

Please let me know if there is anything else I can gather or look into.

This may be the activity behind the log messages I posted above:
image
It is from the Delta Streaming filter in the Activity window.

I'm having this issue. Installed Nylas for the first time today and logged in with an outlook.com account. The folder names have appeared but no email has been synced at all (it's now been several hours, and I've tried adding, re-authorising, and removing the account more than once).

@jstejada There doesn't seem to be anything interesting in the console or activity log.

Full console:
screen shot 2017-01-28 at 19 15 18

Filtered:
screen shot 2017-01-28 at 19 15 30

Activity:
screen shot 2017-01-28 at 19 15 42

I have the problem live @grinich if useful to screen share. DM/email me.

thanks for the info everyone! we're going to look into it.

@JayAvery that is the Console from the Activity Window right?

@jstejada oops. My keyboard shortcuts seem to be switched around so I got the wrong idea - those screenshots were the console of the main window.

Here is the console from the activity window. Unfiltered:
screen shot 2017-01-29 at 13 07 38

Filtered:
screen shot 2017-01-29 at 13 08 03

Here's mine. I'm going to let it sit all day and we'll see what happens. I do have a lot of email.

nylas

@TwisterMc can you open the Console in the Activity Window instead?

oops. My bad. Sending an email with a new screenshot now.

At me if I can be any help, still same issue (stuck syncing on a specific month) after this morning's update.

@jweinstein yes! can you chat via the Nylas Community or Atom slack?

hey folks, are you seeing this exclusively with Gmail accounts?

@jstejada Mine is with an outlook.com account.

@jstejada Gmail - Business account.

Okay, thanks!

I'm now getting this error pop-up regularly. When I retry, sometimes the pop-up comes back immediately, sometimes it goes away for a while.
screen shot 2017-01-30 at 21 53 55

(I've had Nylas open for about two days, and exactly one email has synced so far.)

hi @JayAvery, whenever you see that box again, can you click Contact Support and send us the error? Ping me whenever you do so.
Are any messages syncing at all?

Hi everyone, could you try the following:

For Gmail Accounts:

  1. In your Gmail Settings, make sure IMAP is enabled
  2. In your Gmail Settings, make sure that All Mail, Trash and Spam are "Visible on IMAP"
  3. Check that your firewall isn't imposing any restrictions connecting to the Gmail Server on port 993.
  4. Try the suggestion on this link: http://apple.stackexchange.com/questions/110570/how-to-analyze-resolve-gmail-timeouts-in-apple-mail
  5. If that doesn't work, try the suggestions on this link: https://productforums.google.com/forum/#!topic/apps/MvqLhYSu9wA

For Office365 Accounts:

  1. Check that your firewall isn't imposing any restrictions connecting to the Office365 server on port 993.
  2. Instead of adding your account via Office365, in the menu, select Nylas Mail -> Add Custom IMAP Account, and add your Office 365 account with the following settings:
    image

Let me know if any of these options work! cc @JayAvery @v0wels @TwisterMc @yannick-mamudo @jweinstein

@jstejada,

Both of my accounts used in N1 are GApps accounts and I verified that access to Google's IMAP host(s) is perfectly fine.

I'm still having the pegged CPU for Nylas helpers, and the non-stop "In Progress" within "Syncing your mailbox" for both accounts.

I did happen to catch this logged to the Console of the Activity Window:

Warning: Failed prop type: Invalid prop `accountId` of type `string` supplied to `SyncbackRequestDetails`, expected `number`.
    in SyncbackRequestDetails (created by AccountCard)
    in AccountCard (created by Root)
    in div (created by Root)
    in div (created by Root)
    in Root
MessageProcessor: Could not build message Object
SequelizeDatabaseError: SQLITE_ERROR: unrecognized token: "'Your UPS Package was delivered"
    at Query.formatError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sequelize/lib/dialects/sqlite/query.js:348:14)
    at afterExecute (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sequelize/lib/dialects/sqlite/query.js:112:29)
    at Statement.errBack (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sqlite3/lib/sqlite3.js:16:21) Object
MessageProcessor: Could not build message Object {err: e…r.DatabaseError, imapMessage: Object, desiredParts: Array[1]}
SequelizeDatabaseError: SQLITE_ERROR: unrecognized token: "'UPS Update: Package Scheduled for Delivery Today"
    at Query.formatError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sequelize/lib/dialects/sqlite/query.js:348:14)
    at afterExecute (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sequelize/lib/dialects/sqlite/query.js:112:29)
    at Statement.errBack (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sqlite3/lib/sqlite3.js:16:21) Object {}
MessageProcessor: Could not build message Object {err: e…r.DatabaseError, imapMessage: Object, desiredParts: Array[1]}
SequelizeDatabaseError: SQLITE_ERROR: unrecognized token: "'UPS Update: Package Scheduled for Delivery Today"
    at Query.formatError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sequelize/lib/dialects/sqlite/query.js:348:14)
    at afterExecute (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sequelize/lib/dialects/sqlite/query.js:112:29)
    at Statement.errBack (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/sqlite3/lib/sqlite3.js:16:21) Object {}

Is there anything else I can do to help?

@erraggy thanks for the details!

it seems that we can't correctly parse some of your messages.
so are you are not seeing any messages synced at all? Seeing the Syncing your mailbox... message for several hours is normal (cpu issues have been addressed in #3178)

@jstejada YIKES! Just read that issue (#3178) and found this bit of info to be most helpful:
image
When I hover over the All label in the "Syncing your mailbox" section, I see that one of my accounts has 6 months left to go, while the other is a few years behind still. LOL

Looks like I'll need to just let the CPU spin for another day or so.

I highly recommend making this initial sync a separate tracked process for new users, so that they have clarity and visibility into what's going on.

Thank you for working with me to identify the cause.

okay thanks @erraggy -- thanks for the feedback!

There are still some CPU improvements that are yet to be released. Regarding sync, unfortunately, for big mailboxes, initial sync will inevitably take a long time.
It seems however, that you are not experiencing the issue described in this thread though, correct?
Thanks!

@jstejada,

Yeah, the CPU isn't _pegged_ as much as it is _working hard constantly_ to sync my many year emails.
image

@jstejada I seem to be getting a 502 error when I click the Contact Support link! :S I put the HTML in the link through a translator and this is the error message it was trying to send:

{
  "message": "Error: User is authenticated but not connected.",
  "source": "protocol",
  "stack": "Error: Error: User is authenticated but not connected.
    at NylasError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/src/errors.js:2:1)
    at IMAPProtocolError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/src/imap-errors.js:15:1)
    at convertImapError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/src/imap-errors.js:92:15)
    at Connection._imap.once.err (imap-connection.es6:176:16)
    at Connection.g (events.js:286:16)
    at emitOne (events.js:96:13)
    at Connection.emit (events.js:188:7)
    at Connection.reentry (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Connection.js:1605:12)
    at Connection._resTagged (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Connection.js:1530:22)
    at Parser.<anonymous> (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Connection.js:193:10)
    at emitOne (events.js:96:13)
    at Parser.emit (events.js:188:7)
    at Parser._resTagged (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Parser.js:175:10)
    at Parser._parse (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Parser.js:139:16)
    at Parser._tryread (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Parser.js:82:15)
    at TLSSocket.Parser._cbReadable (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/local-sync/node_modules/isomorphic-core/node_modules/imap/lib/Parser.js:53:12)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at emitReadable_ (_stream_readable.js:432:10)
    at emitReadable (_stream_readable.js:426:7)
    at readableAddChunk (_stream_readable.js:187:13)
    at TLSWrap.onread (net.js:543:20)
    at Socket.ondata (_stream_wrap.js:58:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at TCP.onread (net.js:543:20)"
}

I've now just tried removing my account and re-adding it as custom IMAP. Zero emails synced so far although it's only been a few minutes - I will update again later.

thanks @JayAvery

@JayAvery it seems that your specific issue with Office365 is being caused by some flakiness and bad error messaging from the Office365 IMAP server (see https://github.com/mscdex/node-imap/issues/523 for details)

we'll add some better handling for this type of error, which we will track in #3245
however, I don't think that fixing that error wont necessarily fix the fact that almost no email is syncing because of imap timeouts.

Did adding it as a custom imap account change anything for you? are you seeing any messages synced?

for folks using gmail, did any of the suggestions in https://github.com/nylas/nylas-mail/issues/3232#issuecomment-276205618 work for you?

@jstejada After adding it as a custom IMAP account, I left it running overnight and I now have a total of three emails synced.

For #3232 (comment) if there was an issue, wouldn't that effect other email apps as well? Like Mail.app, or Airmail? Those all work just fine. And it it use to work fine in Nylas back when it was originally free.

@jstejada I tried the suggestions in the comment and they did not work. As @TwisterMc said, other clients are working for me as well. I'm in the same boat as him – used Nylas N1 when it was free and haven't made any account changes since then.

Same boat as @TwisterMc and @TheRealGitCub. Could it have anything to do with the fact that we all used N1 in the past before Nylas Mail was released? Just spitballing.

@v0wels that wouldn't explain my situation - I installed Nylas for the first time ever a few days ago and my emails haven't synced properly since.

okay thanks everyone, I'll keep investigating and report back!

I upgraded to 1.0.18 about 20 minutes ago, added my custom IMAP account and left it to sync but nada. Still no luck fixing this issue unfortunately 😢

@jstejada Thanks much! Enabling "All Mail" for IMAP in Gmail seems to have solved this for me. Maybe add a note in Nylas Mail documentation, since enabling All Mail is not the way most other email clients work. Many clients ask that you turn off All Mail in Google's IMAP settings to avoid duplicate messages in your desktop client.

hey all! we've identified the problem and it seems that for /most/ of you, the issue is that imap connections keep timing out (which was also causing auth issues). We will release a fix for this soon. Thanks for your patience!

Post new update, processed 3 more years then got stuck again. Here is the error in console if helpful.

image

Synced a single email after updating today (that makes four in total), but nothing more. Same old errors in the activity console:
untitled

I have the same issue. It timesout for IMAPConnection (Socket timed Out)

Any fixes?

Same issues as above in 1.0.21.

Hi everyone, we are working on a patch that will be released in the next version-- thanks for waiting!

Maybe this will help someone... Just resolved the iCloud sync issue by going into iCloud.com and deleting some old folders (Mailbox, Mailpilot, Airmail). My hunch is that nested folders (Mailbox/Foo) might have been an issue...

Copied comment verbatim from another thread, but thought I'd add it here as well to help people out quicker (if it helps): https://github.com/nylas/nylas-mail/issues/3253#issuecomment-278658554

this should be fixed on 1.0.26 which was released today! Thanks for your patience! Feel free to reopen if you are still having issues

Would like to reopen, as the issue isn't fixed for me. It loaded a total of one message, then went back to its old ways. On v 1.0.26.

nylas mail 2017-02-13 14-40-54

Same for me. No new messages loaded, errors in the activity window:
screen shot 2017-02-13 at 21 38 31

Same error! IMAP connection timeout!

Sent from my iPhone

On Feb 13, 2017, at 4:48 PM, Jay Avery notifications@github.com wrote:

Same for me. No new messages loaded, errors in the activity window:

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Reopening! @v0wels , @JayAvery, @amicablewings, if you leave the app running for say, 15-20 minutes, do you continue to get timeout errors?

@v0wels would you mind sending me the list of folders/labels you have for your account? you can send it to juan at nylas

Same issue..it keeps on timing out. I only see the folders been downloaded but it does not download even a single email (Sync Fails with timeout). Same issue on few different accounts not linked to account. BTW, I’m using mac version with standard license (Free Version).

screenshot 2017-02-13 18 51 59

On Feb 13, 2017, at 5:13 PM, Juan notifications@github.com wrote:

Reopening! @v0wels https://github.com/v0wels , @JayAvery https://github.com/JayAvery, @amicablewings https://github.com/amicablewings, if you leave the app running for say, 15-20 minutes. Do you continue to get timeout errors?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/nylas/nylas-mail/issues/3232#issuecomment-279540175, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzAP36y8yO8wvu9rr5fU0945ScwQUKIks5rcNWLgaJpZM4Lvvji.

@jstejada I've had the app open for several hours now, and the activity console is spammed with the same errors (and no emails synced).

All right, thanks! We are going to continue looking into it! Thanks again

Hi, I just opened Nylas an applied an update, I now see my email syncing (have a custom IMAP account). So thanks for that, but now getting another error (https://github.com/nylas/nylas-mail/issues/3182). Suffice to say this issue seems to have been resolved now for me with the last update (1.0.26)

I'm wondering if the issue is related to 2-way google authentication.

I have to use a App Password generated by google for accessing emails/imap from Mac Outlook.

I can't configure custom imap on Nylas with gmail imap address. Can you please enable the option to use google imap to test it?

Sent from my iPhone

On Feb 14, 2017, at 12:33 AM, Juan notifications@github.com wrote:

All right, thanks! We are going to continue looking into it! Thanks again

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I meant to post this already, but about a week ago all of my emails suddenly synced in one go. I thought the problem was solved, but new emails aren't syncing any more (and I also can't send emails). I'm still getting the exact same activity window console errors as before.

Hi everyone! Thanks for sticking around! Turns out our previous fix was flawed, but we've released another fix for this in version 1.0.30 which we hope should solve the issue. Let us know if this is the case. Thanks again!

Only speaking for myself here, but it looks like this is finally fixed! Thanks for all your hard work.

Not fixed for me. :( Still endless copies of the same old error, and no emails syncing.
untitled

Same here.

@JayAvery @TwisterMc It worked on my home computer after a fresh install (Nylas wasn't loaded onto that one), but upgrading from a previous version on my work iMac didn't. It did work after deleting the app, ~/.nylas, ~/Library/Application Support/Nylas Mail, ~/Library/Preferences/com.nylas.nylas-mail.helper.plist and com.nylas.nylas-mail.plist, and restarting.

@v0wels I did like you did by deleted all this file and that don't change for me. I re-install too

@v0wels @EQuimper I did the same - total reinstall and delete everything, but still no change.

Doesn't work for me either... same issue.

I'm almost ready to give up on trying Nylas. It never worked for me..

On Thu, Mar 2, 2017 at 11:15 AM Jay Avery notifications@github.com wrote:

@v0wels https://github.com/v0wels @EQuimper
https://github.com/EQuimper I did the same - total reinstall and delete
everything, but still no change.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nylas/nylas-mail/issues/3232#issuecomment-283698938,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzAPwOQhqMtdcJUGvAnq3f39YkGwnFqks5rhusygaJpZM4Lvvji
.

>

Sent from Gmail Mobile

@amicablewings I'm almost ready to give up on trying Nylas. It never worked for me..

Same here. I'd really like to be able to use it, it seems like it could be ideal for my purposes - but this isn't just a little bug, it's a completely non-functional app. :(

Hi everyone! @v0wels I'm happy to hear it got fixed for you. I'm really sorry that the rest of you are still seeing this issue! We're going to continue looking into it-- thanks again for your patience!

after experiencing this issue and trying uninstalling, reinstalling, uninstalling, deleting directories specified by @v0wels, and reinstalling and monitoring Console on Activity window ... I am just being patient because I see that the synchronizing is still progressing error-free.

I think that having slightly more meaningful feedback in the "Syncing your mailbox..." panel would go a long way to let us know that the app is still working away and is making progress bit by bit.

Besides the UX/feedback issue, it does seem like the syncing logic could be a little bit "smarter" ... perhaps including some form of on-demand/requested folder sync would be great. What I mean is: yes, please do fully sync all my folders, but if I click on a specific folder during syncing, it should have priority and sync immediately.

Update: Syncing complete after 5 days! I also accepted the version 1.0.39 update yesterday, so not sure if that was part of it or not.
Some numbers:

  • gmail inbox is >5k in "All Mail" with ~20 IMAP folders
  • most gmail IMAP folders completed syncing within the first 3 days (just All Mail and Spam folders that took forever)
  • custom IMAP account is much smaller and had finished syncing within a day or two
  • my computer is usually asleep for ~6 hours a day

I have the same error here. I had N1 installed one year ago, and had it removed a few month later.
I tried to install Nylas Mail today, removed everything related to N1 and Nylas mail in ~/, ~/Library/Application Support/ and ~/Library/Preferences/ and feel like @plong0 😞

In debug mode (I replaced my email by my-personal-email) :

/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/logger.js:46 <[email protected]> IMAPConnection - operation errored Objecterror: IMAPConnectionTimeoutError: Socket timed out
    at NylasError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/errors.js:2:1)
    at RetryableError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-errors.js:6:1)
    at IMAPConnectionTimeoutError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-errors.js:13:1)
    at imap-connection.es6:217:18
From previous event:
    at imap-connection.es6:215:20
    at next (<anonymous>)
    at step (imap-connection.es6:8:1)
From previous event:
    at imap-connection.es6:8:1
    at imap-box.es6:58:17
    at next (<anonymous>)
    at step (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-box.es6:3:191)
From previous event:
    at /Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-box.es6:3:99
    at /internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.es6:283:23
    at next (<anonymous>)
    at resume (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.js:3:448)
    at /Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.js:3:367
From previous event:
    at AsyncGenerator.send [as _invoke] (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.js:3:169)
    at advance (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/interruptible.js:69:31)
    at err (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/interruptible.js:101:17)__stackCleaned__: truemessage: "Socket timed out"stack: "Error: Socket timed out↵    at NylasError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/errors.js:2:1)↵    at RetryableError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-errors.js:6:1)↵    at IMAPConnectionTimeoutError (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-errors.js:13:1)↵    at imap-connection.es6:217:18↵From previous event:↵    at imap-connection.es6:215:20↵    at next (<anonymous>)↵    at step (imap-connection.es6:8:1)↵From previous event:↵    at imap-connection.es6:8:1↵    at imap-box.es6:58:17↵    at next (<anonymous>)↵    at step (/Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-box.es6:3:191)↵From previous event:↵    at /Applications/Nylas Mail.app/Contents/Resources/app.asar/node_modules/isomorphic-core/src/imap-box.es6:3:99↵    at /internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.es6:283:23↵    at next (<anonymous>)↵    at resume (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.js:3:448)↵    at /Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.js:3:367↵From previous event:↵    at AsyncGenerator.send [as _invoke] (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/local-sync-worker/sync-tasks/fetch-messages-in-folder.imap.js:3:169)↵    at advance (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/interruptible.js:69:31)↵    at err (/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/interruptible.js:101:17)"__proto__: RetryableErroroperation_description: "FetchMessagesInFolderIMAP ([Gmail]/Tous les messages - 1b3d535588af3a134b53a15c97cf30aa9cb8675592b5dea9f191607d1d5f2d4b)"operation_type: "FetchMessagesInFolderIMAP"__proto__: Object logger.(anonymous function) @ /Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/logger.js:46
/Applications/Nylas Mail.app/Contents/Resources/app.asar/internal_packages/client-sync/src/shared/logger.js:46 <[email protected]> Underlying IMAP connection has ended 

Mail is not syncing for IMAP

What operating system are you using?

Ubuntu 17.04

What version of N1 are you using?

2.0.32

--

Bug?
Do you have any third-party plugins installed? If so, which ones?

None
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

I am using Zoho mail (imap)

screenshot from 2017-05-08 01-26-21

Hello,

I am just wondering why the firewall should allow imap (993) on the client machine?

Check that your firewall isn't imposing any restrictions connecting to the Gmail Server on port 993.

I understood that emails are processed on the server using your sync-engine and the server is communicating with client only via REST API on https. I thought one of the most important idea of the project is to eliminate imap on the client side...

Could you point me to some document to get better understanding?

Thank you.

Also get a lot of errors from inbound traffic from Gmail servers TCP/993 (iptables + logging), where I thought I only had to look for HTTPS/443 traffic to the Nylas servers.

@bambita one would almost start to argue that since they've launched their brand new API; decouple Nylas Mail so people need to pay additionally to use that feature in the near future (but I cannot find anything written on that today)

I was already a (happy) paying customer for Nylas N1 because I loved it so much, almost feeling sorry for that because I have the feeling I'm left in the dark. And the new version doesn't bring the satisfaction as the N1. Sorry I've to say.

Thanks for the clarification, Jeroen. I did not notice that main concept was changed and sync-engine is now somehow bundled with email client.

Regards,
Bambita

I am having the same problem on Mac 10.11.3 with Nylas Mail 2.0.32. No email syncs from either of two gmail accounts or an IMAP account after running for several hours. When I open the activity console I see lots of error messages of the form:

IMAPConnection - operation errored Object {err: IMAPConnectionTimeoutError: Socket timed out
at NylasError (errors.es6:1:8)

I just downloaded the mail client and have no plugins installed. Any advice on how I can get the program to download my messages from gmail?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArchangeGabriel picture ArchangeGabriel  Â·  3Comments

puttin picture puttin  Â·  3Comments

Damien101 picture Damien101  Â·  3Comments

winks picture winks  Â·  4Comments

nihil21 picture nihil21  Â·  4Comments