etesync / etesync-dav

This is a CalDAV and CardDAV adapter for EteSync
https://www.etesync.com
GNU General Public License v3.0
285 stars 45 forks source link

MacOS: EteSync DAV stoped working #287

Closed Andreas-Schoenefeldt closed 1 year ago

Andreas-Schoenefeldt commented 1 year ago

UPDATED 7.7.2023:

a lot of the discussion below is about me not using the right password (thx again @jhass), but now with everything setup correctly it is still not possible to connect the Contacts Account on mac OS 12.1 (MacBook Pro (16-inch, 2019))

I'm using the latest version of ETE Sync 0.31.2, the password from https://localhost:37358/.web/ but are getting this error:

Screenshot 2023-07-07 at 10 09 32

anybody knows about a way to find the root cause of this?

Original:

I noticed recently, that my contact sync stopped working on my macOs 12.1 (MacBook Pro (16-inch, 2019)) - I tried today to install the client again, but it does not work.

The Service is apparently running, but I can neither connect to http://localhost:37358/ anymore.

My knowledge about this is not too great, but I'd happy to dig into some logs or other means of debugging with some assistance. How can I make it work again?

Thx a lot Andreas

jhass commented 1 year ago

For me the key on 13.4.1 was to include the port in the "Server Address" too, that is make it https://localhost:37358. Checking Wireshark it was ignoring the "Port" field and always tried ports 8843 and 443.

Andreas-Schoenefeldt commented 1 year ago

Well, it really broke down - https://localhost:37358/ is available, but:

Screenshot 2023-07-05 at 15 33 35

jhass commented 1 year ago

Ah, I did use the "Advanced" mode with "Server Address" as https://localhost:37358, "Server Path" as /jhass/ and "Port" as 37358

Andreas-Schoenefeldt commented 1 year ago

let me try this tomorrow - thx a lot already for this! might have screwed up my ssl certs now in the process, maybe I need to wipe it all. I'll report here any outcome.

Andreas-Schoenefeldt commented 1 year ago

Unfortunately now luck: I wiped the system of ETE and installed everything fresh (including the certificate) https://localhost:37358/.web/ works just fine, but if I try to add the accounts, I get the same error all over again:

Screenshot 2023-07-06 at 15 18 41 Screenshot 2023-07-06 at 15 19 21

Just as a note: it really is the same password, which works for https://localhost:37358/.web/

anybody knows about a log location or something, which could give some insight about what is going on? @tasn I know it's annoying, but maybe there is a chance of adding some advice?

Thx a lot! Andreas

jhass commented 1 year ago

I didn't include the port in the "Server Address" for CalDAV, so that might not work, it did the trick for CardDAV for me.

Remember the password is NOT the one you use to log into https://localhost:37358/.web/, rather it is the one you can copy from there.

Andreas-Schoenefeldt commented 1 year ago

Unfortunately also with the password (thx for this btw, I did overlook this detail) from https://localhost:37358/.web/ and Server Addres without the Port, I still get the same error:

Screenshot 2023-07-07 at 09 59 57

The current State is, that I have now no local access to my calendar and contacts anymore. It sadly looks like I have to quit on ETESync - I see no further way for me to make this work.

Andreas-Schoenefeldt commented 1 year ago

Uh wait! It just worked, if I put localhost without the port and without https to the account 🥳

@jhass - a massive thx to you!

Andreas-Schoenefeldt commented 1 year ago

Ok, so the calendar is back again (phew) BUT - Contacts (which I think was also the beginning of this odysee) appear to be really broken. The exact same credentials are not working for the Contacts Account:

Screenshot 2023-07-07 at 10 09 32

I can live without a Contacts sync to my laptop, but of course it would be great to have it working..

jhass commented 1 year ago

So that's what my initial comment was about, MacOS seems to ignore the port setting in the advanced CardDAV setup dialog, but does respect the port for me if I put it into the server address additionally

tasn commented 1 year ago

@jhass, yeah, I think this is documented somewhere in the dav docs. macOS is very buggy, and there are a few quirks with the system. This is one of them.

Andreas-Schoenefeldt commented 1 year ago

Friends, it worked with the quirks described above. Thank you for helping me with that and sorry for the drama and back & forth on this. I'll review the MAC documentation and see if it can be made even clearer for people not familiar with the matter like myself.

tasn commented 1 year ago

Please make suggestions if you see anything, thanks! I'm closing this ticket as it seems to be fixed.

I tried reporting this bug (among others) to Apple years ago, but they are not very responsive.

Andreas-Schoenefeldt commented 1 year ago

Thank you, I changed a bit the instructions: https://github.com/etesync/etesync-dav/wiki/MacOS-instructions not sure if it needs to be approved, to me it looked like it went through just like this.