nylas / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web. Forks welcome!
https://nylas.com/nylas-mail/
MIT License
24.8k stars 1.38k forks source link

Self-hosted sync engine stops syncing mail every two days #2840

Open faheem opened 8 years ago

faheem commented 8 years ago
What operating system are you using?

Ubuntu 16.04

What version of N1 are you using?

4.52

Bug?

Nylas N1 stops receiving mail after about 2 days.. sync-engine continues to run in the background without throwing any errors but no new emails show up on the UI (N1). the only way i know it's not working is if i realize that i have not gotten a mail in two days..

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

GMAIL accounts.

Is the issue reproducible with a particular attachment, message, signature, etc?

consistently reproducible... happens every two days. vagrant halt and a vagrant up and restarting inbox and api makes it work again..

bengotow commented 8 years ago

Hey! Thanks for reporting this - can you open the activity window within N1 (from the Window menu) and see if there are any errors reported under the Requests tab?

faheem commented 8 years ago

no errors (reported at least.)

not sure if its the color scheme, but the GET requests are in red.

but it hasnt stopped fetching mail yet.

will check for errors once it fails again

On Sep 19 2016, at 10:47 pm, Ben Gotow notifications@github.com wrote:

Hey! Thanks for reporting this - can you open the activity window within N1 (from the Window menu) > and see if there are any errors reported under the. Requests tab?

faheem commented 8 years ago

So... Iit happened again. Here is a portion of the errors reported in activity > Requests are there any logs i need to check in the VM?

13:16:59 RunCopycurl -X PUT -d '{"labels":["2qs1nr8sbscn15w7pz4372vur","d0mpbi7rsfm8km1ip6hyofmat"]}' "http://localhost:5555/threads/8re2nmy3y08njhydlvu1qqiy2" ESOCKETTIMEDOUT | ESOCKETTIMEDOUT13:16:14 RunCopycurl -X PUT -d '{"unread":false}' "http://localhost:5555/threads/ejndb0efeabovhk8rlm35odr5" ETIMEDOUT | ETIMEDOUT13:16:14 RunCopycurl -X PUT -d '{"labels":["2qs1nr8sbscn15w7pz4372vur","d0mpbi7rsfm8km1ip6hyofmat"]}' "http://localhost:5555/threads/8re2nmy3y08njhydlvu1qqiy2" ESOCKETTIMEDOUT | ESOCKETTIMEDOUT13:15:28 RunCopycurl -X PUT -d '{"unread":false}' "http://localhost:5555/threads/ejndb0efeabovhk8rlm35odr5" ETIMEDOUT | ETIMEDOUT13:15:28 RunCopycurl -X PUT -d '{"labels":["2qs1nr8sbscn15w7pz4372vur","d0mpbi7rsfm8km1ip6hyofmat"]}' "http://localhost:5555/threads/8re2nmy3y08njhydlvu1qqiy2" ETIMEDOUT | ETIMEDOUT13:14:43 RunCopycurl -X PUT -d '{"unread":false}' "http://localhost:5555/threads/ejndb0efeabovhk8rlm35odr5" ETIMEDOUT | ETIMEDOUT13:14:43 RunCopycurl -X PUT -d '{"labels":["2qs1nr8sbscn15w7pz4372vur","d0mpbi7rsfm8km1ip6hyofmat"]}' "http://localhost:5555/threads/8re2nmy3y08njhydlvu1qqiy2" ESOCKETTIMEDOUT | ESOCKETTIMEDOUT13:13:57 RunCopycurl -X PUT -d '{"unread":false}' "http://localhost:5555/threads/ejndb0efeabovhk8rlm35odr5" ETIMEDOUT | ETIMEDOUT13:13:57 RunCopycurl -X PUT -d '{"labels":["2qs1nr8sbscn15w7pz4372vur","d0mpbi7rsfm8km1ip6hyofmat"]}' "http://localhost:5555/threads/8re2nmy3y08njhydlvu1qqiy2"

egyptianbman commented 7 years ago

I'm experiencing a similar issue. I am not receiving any e-mails and there don't seem to be any errors anywhere.

The nylas engine is reporting a ton of the following:

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:18.607964Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}
app_1    | {"level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:18.608593Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.002458, "event": "Syncback completed one iteration"}
app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:19.612428Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}
app_1    | {"level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:19.612965Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.00197, "event": "Syncback completed one iteration"}
app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:20.617047Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}
app_1    | {"level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:20.617668Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.002733, "event": "Syncback completed one iteration"}
app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:21.620863Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}
app_1    | {"level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:21.621347Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.001931, "event": "Syncback completed one iteration"}
app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:22.631101Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}
app_1    | {"level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:22.631722Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.004432, "event": "Syncback completed one iteration"}
app_1    | {"total_time": 15913.41, "pending_avgs": {"1": 0.0, "5": 0.0, "15": 0.0}, "level": "info", "timestamp": "2016-12-06T08:27:23.542735Z", "module": "inbox.instrumentation:141", "times": "{None: 78.34, 'hub': 15835.02}", "total_switches": 201323, "greenlet_id": 140603033634288, "event": "greenlet stats"}
app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:23.636300Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}
app_1    | {"level": "debug", "process": 0, "timestamp": "2016-12-06T08:27:23.636876Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.002109, "event": "Syncback completed one iteration"}

I don't see any errors in the nylas client's console running with debug on and off. I tried resetting email cache which took a while to sync back but still, no new e-mails which tells me the problem may be with the sync-engine.

faheem commented 7 years ago

I'm having this error now once every 6-12 days or so...
it used to be every two days.

intermittent.

Sent from Nylas N1, the extensible, open source mail client.

On Dec 6 2016, at 2:04 pm, Beshoy Girgis notifications@github.com wrote:

I'm experiencing a similar issue. I am not receiving any e-mails and there don't seem to be any errors anywhere.

The nylas engine is reporting a ton of the following:

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0,

"timestamp": "2016-12-06T08:27:18.607964Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}

app_1    | {"level": "debug", "process": 0, "timestamp":

"2016-12-06T08:27:18.608593Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.002458, "event": "Syncback completed one iteration"}

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0,

"timestamp": "2016-12-06T08:27:19.612428Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}

app_1    | {"level": "debug", "process": 0, "timestamp":

"2016-12-06T08:27:19.612965Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.00197, "event": "Syncback completed one iteration"}

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0,

"timestamp": "2016-12-06T08:27:20.617047Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}

app_1    | {"level": "debug", "process": 0, "timestamp":

"2016-12-06T08:27:20.617668Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.002733, "event": "Syncback completed one iteration"}

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0,

"timestamp": "2016-12-06T08:27:21.620863Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}

app_1    | {"level": "debug", "process": 0, "timestamp":

"2016-12-06T08:27:21.621347Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.001931, "event": "Syncback completed one iteration"}

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0,

"timestamp": "2016-12-06T08:27:22.631101Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}

app_1    | {"level": "debug", "process": 0, "timestamp":

"2016-12-06T08:27:22.631722Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.004432, "event": "Syncback completed one iteration"}

app_1    | {"total_time": 15913.41, "pending_avgs": {"1": 0.0, "5": 0.0,

"15": 0.0}, "level": "info", "timestamp": "2016-12-06T08:27:23.542735Z", "module": "inbox.instrumentation:141", "times": "{None: 78.34, 'hub': 15835.02}", "total_switches": 201323, "greenlet_id": 140603033634288, "event": "greenlet stats"}

app_1    | {"num_namespace_ids": 0, "level": "debug", "process": 0,

"timestamp": "2016-12-06T08:27:23.636300Z", "module": "inbox.transactions.actions:227", "greenlet_id": 140522336411472, "shard_id": 0, "event": "Syncback namespace_ids count"}

app_1    | {"level": "debug", "process": 0, "timestamp":

"2016-12-06T08:27:23.636876Z", "idle_workers": 500, "module": "inbox.transactions.actions:245", "greenlet_id": 140522336411472, "duration": 0.002109, "event": "Syncback completed one iteration"}

I don't see any errors in the nylas client's console running with debug on and off. I tried resetting email cache which took a while to sync back but still, no new e-mails which tells me the problem may be with the sync-engine.


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