Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ck-jrd opened this issue Jan 27, 2017 · 81 comments

Comments

@ck-jrd
Copy link

ck-jrd commented Jan 27, 2017

Are there any related issues?

I initially wrote about this problem at #3179 (comment). 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.

@TwisterMc
Copy link

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.

@jstejada
Copy link
Contributor

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

  1. 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!

@yannick-mamudo
Copy link

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

@jstejada
Copy link
Contributor

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

@yannick-mamudo
Copy link

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

@ck-jrd
Copy link
Author

ck-jrd commented Jan 27, 2017

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

My Activity console (unfiltered):
nylas-activity1

And filtered:
nylas-activity2

@jstejada
Copy link
Contributor

thanks!!

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

@jstejada jstejada changed the title "Syncing your mailbox" doesn't retrieve any emails after letting the app sync all night. "Syncing your mailbox" doesn't retrieve any emails after letting the app sync all night -- IMAP /always/ times out Jan 27, 2017
@yannick-mamudo
Copy link

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

@jweinstein
Copy link

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

@EQuimper
Copy link

+1

@erraggy
Copy link

erraggy commented Jan 28, 2017

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.

@erraggy
Copy link

erraggy commented Jan 28, 2017

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

@averixus
Copy link

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

@jweinstein
Copy link

jweinstein commented Jan 28, 2017

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

@jstejada
Copy link
Contributor

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

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

@averixus
Copy link

@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

@TwisterMc
Copy link

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

@jstejada
Copy link
Contributor

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

@TwisterMc
Copy link

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

@jweinstein
Copy link

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

@jstejada
Copy link
Contributor

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

@jstejada
Copy link
Contributor

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

@averixus
Copy link

@jstejada Mine is with an outlook.com account.

@TwisterMc
Copy link

@jstejada Gmail - Business account.

@jstejada
Copy link
Contributor

Okay, thanks!

@amicablewings
Copy link

amicablewings commented Feb 13, 2017 via email

@jstejada
Copy link
Contributor

jstejada commented Feb 13, 2017

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

@jstejada jstejada reopened this Feb 13, 2017
@jstejada
Copy link
Contributor

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

@amicablewings
Copy link

amicablewings commented Feb 13, 2017 via email

@averixus
Copy link

@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).

@jstejada
Copy link
Contributor

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

@edarioq
Copy link

edarioq commented Feb 14, 2017

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 (#3182). Suffice to say this issue seems to have been resolved now for me with the last update (1.0.26)

@amicablewings
Copy link

amicablewings commented Feb 15, 2017 via email

@averixus
Copy link

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.

@jstejada
Copy link
Contributor

jstejada commented Mar 1, 2017

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!

@ck-jrd
Copy link
Author

ck-jrd commented Mar 1, 2017

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

@averixus
Copy link

averixus commented Mar 2, 2017

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

@TwisterMc
Copy link

Same here.

@ck-jrd
Copy link
Author

ck-jrd commented Mar 2, 2017

@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.

@EQuimper
Copy link

EQuimper commented Mar 2, 2017

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

@averixus
Copy link

averixus commented Mar 2, 2017

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

@amicablewings
Copy link

amicablewings commented Mar 3, 2017 via email

@averixus
Copy link

averixus commented Mar 3, 2017

@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. :(

@jstejada
Copy link
Contributor

jstejada commented Mar 6, 2017

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!

@plong0
Copy link

plong0 commented Mar 11, 2017

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

@blqke
Copy link

blqke commented Mar 15, 2017

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 

@MaxySpark
Copy link

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

@bambita
Copy link

bambita commented May 29, 2017

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.

@JeroenBoersma
Copy link

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.

@bambita
Copy link

bambita commented May 29, 2017

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

@gabrielfgm
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests