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

OS X Mojave, etesync-dav process not responding #87

Closed
embamba opened this issue Aug 18, 2019 · 17 comments
Closed

OS X Mojave, etesync-dav process not responding #87

embamba opened this issue Aug 18, 2019 · 17 comments

Comments

@embamba
Copy link

embamba commented Aug 18, 2019

On OS X Mojave 10.14.6, I've noticed in the Activities Monitor, one of the two etesync-dav processes displays as "Not Responding" with its line in red typeface. It's always the item with the app icon next to the process name, never the other process. Sometimes, it takes on this status within seconds after it launches. Other times, it takes longer. But it seems that after some period of time, it always gets there.

That said, I see no evidence that the process is actually hanging. Syncing works. Still, once the Activity Monitor identifies the process as not responding, it stays that way, even if it's working fine. Other processes, on occasion, go to not responding, then, after a few seconds or minutes, return to normal status.

In a browser window, https://localhost:37358 sometimes reroutes to localhost:37359. Other times, it fails, not necessarily when the process is not responding.

Syncing is successful in Thunderbird's TbSync addon. But I sometimes get a non fatal error (409) in the address book that I'm syncing. The error part of the log reads:

@tasn
Copy link
Member

tasn commented Aug 19, 2019

Thanks for reporting! Your message is cut after "the error part of the log reads:", could you please add the missing part?
From your description I believe we probably need to send a sort of a "ping" to activity monitor to let it know we are responding which we are not doing at the moment.
I'm a bit concerned about the reroute from 37358 to 37359 not always working, but it could just be that when you are testing it's a bit overloaded. Because etesync-dav is only intended to serve one user, it's number of worker threads is not very high.

@embamba
Copy link
Author

embamba commented Aug 19, 2019

Thanks for noticing the missing log data. Strangely, it disappears when I post it. If I edit the post, it reappears in the edit text box! Must be something about the XML chevrons. I had to remove the <> from each of the three lines to get it to appear.

error xmlns="DAV:"
valid-sync-token /
/error

@zakkak
Copy link
Contributor

zakkak commented Aug 27, 2019

@embamba you can wrap the code in backquotes to make it appear properly.

e.g.

```
<error xmlns="DAV:">
<valid-sync-token />
</error>
```

will appear as

<error xmlns="DAV:">
<valid-sync-token />
</error>

@tasn
Copy link
Member

tasn commented Aug 27, 2019

Thanks @zakkak for weighing in!

@embamba: as we said, it works, right? It's just the activity monitor that shows it as not responding, right?

@zakkak
Copy link
Contributor

zakkak commented Aug 27, 2019

In my case when it is not responding Calendar fails to sync. I never tried leaving it long enough to see if it ever revives, I usually kill the process and restart.

@tasn
Copy link
Member

tasn commented Aug 27, 2019

Does it actually happen to you often? I wonder if the Mac actively stops it because we don't do whatever they want us to do regarding "pings".

@zakkak
Copy link
Contributor

zakkak commented Aug 27, 2019

I think once every couple of days. I will try to monitor it from now on.

@zakkak
Copy link
Contributor

zakkak commented Aug 27, 2019

Right now I see it not responding but my contacts and the calendar are syncing fine

image

@embamba
Copy link
Author

embamba commented Aug 27, 2019

Thanks @zakkak for weighing in!

@embamba: as we said, it works, right? It's just the activity monitor that shows it as not responding, right?

Yes, it appears to work fine. Calendars and contacts have been syncing, the latter much better with this just released version 0.11.0 of etesync-dav.

@embamba
Copy link
Author

embamba commented Aug 27, 2019

Right now I see it not responding but my contacts and the calendar are syncing fine

image

This is exactly what I've been seeing. No syncing problems, even in this state in the Activity Monitor.

@tasn
Copy link
Member

tasn commented Aug 28, 2019

Thanks for the information!

@embamba: yeah, Contacts should now work! Let me know (in another ticket, possibly #70 if it's no longer the case).

@lasscap
Copy link

lasscap commented Sep 3, 2019

I had the same problem but everything worked fine with 0.9.1. Now I have updated to 0.11.0 and Activity Monitor shows me two entries/programs running for etesync. And one sometimes has ridiculously high CPU usage.
Screenshot 2019-09-03 at 15 12 13

@tasn
Copy link
Member

tasn commented Sep 3, 2019

The CPU usage is probably because it's performing a large sync. Could you maybe run it with -D to see if there are any obvious error messages? Is the CPU usage momentary? If so, I wouldn't worry about it.

@lasscap
Copy link

lasscap commented Sep 6, 2019

Yes, you are correct :)

@tasn
Copy link
Member

tasn commented Sep 6, 2019

About which part? It's just a momentary large sync?
This is going to significantly improve in the future btw, but it should already be quite good, momentary and rare as it is. :)

@lasscap
Copy link

lasscap commented Sep 6, 2019

Yeah, that it is a momentary large sync. But I am still surprised because it is quite a large consumption of recourses.

@tasn
Copy link
Member

tasn commented Sep 6, 2019

It needs to decrypt all of your data which could be quite a bit, especially since at the moment it's done in Python if memory serves, rather than a faster implementation.

@tasn tasn closed this as completed in c9dab4a Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants