nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

"Syncing mailbox.." runs forever without syncing

Open jetlej opened this issue 11 years ago • 40 comments

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

jetlej avatar Oct 28 '15 13:10 jetlej

Samesies (Yosemite)

williamgladeye avatar Oct 29 '15 01:10 williamgladeye

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

dgonzalezr avatar Oct 29 '15 08:10 dgonzalezr

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

Affyyia avatar Oct 29 '15 08:10 Affyyia

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

larfadin avatar Oct 29 '15 19:10 larfadin

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

lashae avatar Nov 13 '15 11:11 lashae

:+1:

ambroisemaupate avatar Nov 16 '15 19:11 ambroisemaupate

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

pauloschilling avatar Jan 01 '16 14:01 pauloschilling

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

ghost avatar Feb 09 '16 12:02 ghost

I'm having this issue too...

nrutman avatar Feb 12 '16 13:02 nrutman

:+1: same here

codingjoe avatar Feb 26 '16 16:02 codingjoe

Same here. Gmail account.

arianit avatar Feb 27 '16 18:02 arianit

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

codingjoe avatar Feb 29 '16 07:02 codingjoe

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

chrisyeung1121 avatar Mar 24 '16 09:03 chrisyeung1121

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

mbilker avatar Mar 27 '16 02:03 mbilker

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.

codingjoe avatar Mar 29 '16 09:03 codingjoe

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 avatar Aug 04 '16 07:08 alexanderadam

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

khamidou avatar Aug 04 '16 10:08 khamidou

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

alexanderadam avatar Aug 04 '16 15:08 alexanderadam

I'm having the same issue:/

onlineth avatar Sep 16 '16 22:09 onlineth

facing this issue with 0.4.56!

(archlinux)

harryio avatar Oct 30 '16 19:10 harryio