Nylas-mail: "Syncing mailbox.." runs forever without syncing

Created on 28 Oct 2015  路  40Comments  路  Source: nylas/nylas-mail

Syncing worked the first time I installed the app, but since it has not pulled in any new mail (Mac OSX El Capitan)

mail-sync

Most helpful comment

When I first installed Nylas, it took a few days to synchronize. Since then I've reinstalled Nylas and it's been spending a few days re-syncing. I'm sure it'll finish at some point, but taking multiple days, even weeks, to sync should definitely be considered a bug!

All 40 comments

Samesies (Yosemite)

Same for me.. It take looong long time with IMAP/SMTP Accounts..

It doesn't work for me. It annoys me the longer it takes.

Didn't work too for gmail. No 2 etap login

Same here for a Gmail Account and a Google Apps mail accunt.

:+1:

Same here. Arch Linux, both Gmail and Google Apps accounts. N1 0.3.32-1 from here as of Jan 1.

Maybe only accounts with tons of emails are affected? I never delete an email, always archive them. I'm not sure how much time is N1 supposed to take to fully sync a 5-6 years old account. I've seen some clients being able to set to not sync emails older than X years, not sure if this is something we need here as well.

Also, new emails are arriving normally, but the "Syncing your mailbox..." keeps in there, and sometimes the spinner freezes.


Update: It's working fine now after completely wiping N1 from my computer, and installing it again from here (v0.3.43.r45.g313c421-1).

I am having this issue now too after the latest update for Gmail account

I'm having this issue too...

:+1: same here

Same here. Gmail account.

It doesn't happen any longer. Maybe it just takes forever the first time you sync it? Does the entire mailbox get downloaded?

+1, same issue. Is there any activity log where we can see and find out what it is doing?

@chrisyeung1121 There is an Activity Log available from the Developer menu.

I had the same issue, but I think the initial sync is just taking a minute.
I don't think this is a bug, just a communication issue. There should be a note that the initial sync might take a while depending on your inbox size.

Having the same problem now. Syncing never stops.
N1 runs now for a few hours and I don't have this much stuff on my accounts.

I have the sync engine running in a Docker container but the sync engine just has these two kinds of output (over and over again):

sync-engine    | {"num_namespace_ids": 0, "level": "info", "process": 0, "timestamp": "2016-08-04T07:51:27.540309Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140031734662960, "shard_id": 0, "event": "Syncback namespace_ids count"}
sync-engine    | {"level": "info", "process": 0, "timestamp": "2016-08-04T07:51:27.541807Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140031734662960, "duration": 0.006143, "event": "Syncback completed one iteration"}

The only thing that changes are the timestamp and duration.

N1 isn't giving any error message or other status messages at all. Just Please wait while we prepare your mailbox..

In the developer console is a React warning and an error for the activity list:

Failed to activate package named 'activity-list' Error: AttributeCollection::contains (pluginMetadata) - you must provide a value
    at AttributeCollection.contains (/usr/share/nylas/resources/app.asar/src/flux/attributes/attribute-collection.js:104:15)
    at ActivityDataSource.buildObservable (/usr/share/nylas/resources/app.asar/internal_packages/activity-list/lib/activity-data-source.js:17:190)
    at ActivityListStore._getActivity (/usr/share/nylas/resources/app.asar/internal_packages/activity-list/lib/activity-list-store.js:87:37)
    at ActivityListStore.activate (/usr/share/nylas/resources/app.asar/internal_packages/activity-list/lib/activity-list-store.js:27:10)
    at Object.activate (/usr/share/nylas/resources/app.asar/internal_packages/activity-list/lib/main.js:25:31)
    at Package.module.exports.Package.activateNow (/usr/share/nylas/resources/app.asar/src/package.js:259:27)
    at /usr/share/nylas/resources/app.asar/src/package.js:245:26
    at Package.module.exports.Package.measure (/usr/share/nylas/resources/app.asar/src/package.js:165:15)
    at Package.module.exports.Package.activate (/usr/share/nylas/resources/app.asar/src/package.js:242:14)
    at PackageManager.module.exports.PackageManager.activatePackage (/usr/share/nylas/resources/app.asar/src/package-manager.js:587:21)
    at /usr/share/nylas/resources/app.asar/src/package-manager.js:565:29
    at Config.module.exports.Config.transact (/usr/share/nylas/resources/app.asar/src/config.js:184:16)
    at PackageManager.module.exports.PackageManager.activatePackages (/usr/share/nylas/resources/app.asar/src/package-manager.js:554:23)
    at PackageManager.module.exports.PackageManager.activate (/usr/share/nylas/resources/app.asar/src/package-manager.js:537:46)
    at NylasEnvConstructor.module.exports.NylasEnvConstructor.startWindow (/usr/share/nylas/resources/app.asar/src/nylas-env.js:714:23)
    at /usr/share/nylas/resources/app.asar/src/nylas-env.js:731:25

and after that comes

 SCAN TABLE Category for SELECT `Category`.`data` FROM `Category` 

When I click on the Syncing your mailbox... button it shows three from my four accounts. Every kind of data (Threads, Messages, Labels, Contacts, Calendars, Events etc.) is at 0 / 0.

For me it is not even obvious whether it is a problem with N1 and/or the sync engine.

@alexanderadam Did you run bin/inbox-start --- that's the core of the sync engine. bin/inbox-api is just the API.

@khamidou makes sense. Seems that I forgot that when refactoring stuff. :wink:
Thank you!

However, it doesn't seem that it changed this much. Occasionally these log entries appear as well (besides from the stuff in the beginning:

sync-engine    | {"total_time": 2701.53, "pending_avgs": {"1": 0.0, "5": 0.0, "15": 0.0}, "level": "info", "timestamp": "2016-08-04T15:15:37.961255Z", "module": "inbox.instrumentation:141", "times": "{'hub': 2691.81, None: 0.98}", "total_switches": 2691, "greenlet_id": 140647607166448, "event": "greenlet stats"}

In the opened Syncing your mailbox panel is no number state (0 / 0) anymore. Just different colours below the items.
Things like Longconnectionstatus, Nextretrydelay and Nextretrytimestamp sound interestering but nothing changes there. :cry:

I'm having the same issue:/

facing this issue with 0.4.56!

(archlinux)

Still having this issue with V 1.0.21

Just downloaded it to give it a try. But stuck on synching. v 1.0.21
Using Exchange / Office email account

For me, reinstalling it somehow fixed it.

any updates on this? Still not working for me. (tried reinstalling as well)

I'm having the same problem.

Having the same problem

{"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2017-02-28T14:40:47.144497Z", "module": "inbox.transactions.actions:227", "greenlet_id": 139870208896848, "shard_id": 0, "event": "Syncback namespace_ids count"} {"level": "debug", "process": 0, "timestamp": "2017-02-28T14:40:47.145270Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 139870208896848, "duration": 0.003091, "event": "Syncback completed one iteration"}

Having this problem on macOS Sierra 10.12.3 with Nylas Mail 1.0.32

Tried uninstalling and removing .nylas-mail folder from my home directory ... still not working after reinstall.

It's doing it with my Gmail account and also with a custom IMAP account.

Still having this problem on macOS Sierra 10.12.3 with the latest version from Nylas Mail.

Ubuntu 16.04, latest client (2.0.10) same. It stucks at syncing email & entire client stops working (can't receive new emails, can't send new email)

Opensuse 2.0.16 the same issue, it's being running for 2 days now

Same here... Kind of annoying.

I'm having this issue now too

When I first installed Nylas, it took a few days to synchronize. Since then I've reinstalled Nylas and it's been spending a few days re-syncing. I'm sure it'll finish at some point, but taking multiple days, even weeks, to sync should definitely be considered a bug!

Same problem in ubuntu14.04

Why is this issue closed? I am still facing the same problem on Ubuntu 16.04.

Still having this issue on MacOS Sierra

I too am still having this issue on Ubuntu 16.04. What changed that warranted closing the issue?

Until today, version 2.0.32 (windows) still have this issue.

@rubenqba i am sorry to be the one to tell you this but nylas mail died months ago

No way!! I have no idea. Thanks, now I have to move on ;-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PhillipTaylor picture PhillipTaylor  路  3Comments

JeroenBoersma picture JeroenBoersma  路  4Comments

hazim1093 picture hazim1093  路  4Comments

purefan picture purefan  路  3Comments

Damien101 picture Damien101  路  3Comments