sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.5k stars 289 forks source link

Native Mac "Calendar" app doesn't seem to work with Baikal #1121

Closed tromlet closed 1 year ago

tromlet commented 2 years ago

Baikal version: 0.9.2

Expected behaviour: Calendars sync appropriately with the native Mac Calendar app.

Current behaviour: I get a little triangle with an exclamation point in the left-hand list of calendars, which, when clicked, displays an error message: "No calendar home was specified for the account __".

Steps to reproduce:

  1. Left-click Calendar in the Mac menu bar
  2. Left-click "Add Account"
  3. Left-click the drop-down that says "Automatic", and left-click to select "Advanced"
  4. Type in a valid Baikal username in the "Username" text field.
  5. Type in the corresponding password in the "Password" text field.
  6. Type in "https://baikal.example.com" in the "Server Address" text field.
  7. Type in /dav.php/calendars/$username/default/ in the "Server Path" text field.
  8. Type 443 in the "Port" text field.
  9. Left-click "OK".

The thing seemingly authenticates, but then is never able to fetch a calendar or display or sync to it. I even tried using just /dav.php in the "Server Path" text field, and no dice, same error. Not sure what's happening, and I'm not seeing anything particularly damning in the Apache logs, so. 🤷‍♂️

Zetalia commented 2 years ago

hello @tromlet Thank you for your post. I managed to add Baikal Adress book to the native mac app. But when i created a contact, it didnt show up in the backend of my Baikal install. So i guess the sync doesnt work here?

Installing the calendar didnt work when i tried to connect it gives: Cant verify user / pass.

I installed baikal in a shared hosting and have no access to the server. Here: https://sabre.io/baikal/troubleshooting/ I read that some redirects are needed - does anyone know how to set them just with ftp?

panzer-arc commented 2 years ago

@tromlet Can you try /principals/ instead of /calendars/? Also remove /default/. http:// & port 80 works for me. @Zetalia Care to share your server path you used?

Zetalia commented 2 years ago

@panzer-arc i tried your suggestions for @tromlet on my server to no avail. Sending you a private message with a login for you to test. Thank you

Zetalia commented 2 years ago

Cant find a way to message you, actually its not a secret: https://kpaste.infomaniak.com/QhMadwYG9tw5SZZEhYyTil9JfFFjOO7o#4Wnf15FhME8cgaX1jWfRWDb8KVbFjkRvfFKHEh7zFjJh

Voocamced commented 2 years ago

I do have the same issue as you and can't get around it. I'm running the baikal/apache docker version 0.9.2 just in LAN without https so port 80 and am able to access caldav with Thunderbird without any problems but adding an Account for macos Calendar app won't work. Credentials seem to be fine, I seem to access the server but Calendar shows the warning triangle and says there is no published information. I tried the redirect /. well-known stuff on the only .htaccess file I could find on the 2 docker volumes but I'm not sure if it is in fact working.

Could you please help? Thx

fiee commented 2 years ago

I’ve no problems with Baïkal 0.9.2 and Apple Calendar or DAVx5 on Android (but with Thunderbird, see #1112).

Beware that you need just /dav.php with Apple, while you need dav.php/calendars/username/default for Thunderbird/Lightning.

chirmstream commented 1 year ago

I am running 0.9.3 and it is working on the native mac calendar app. I was also working correctly when I was running 0.9.2. I am running ckulka/baikal on dockerhub on my unRAID server.

My server address is baikal.example.com and the server path is /cal.php/principals/user.name@example.com/. I have left the port as auto and am using SSL.

I do not want to stray from this issue too much, but I am having a very similar issue with the native mac contacts app.

Neifab commented 1 year ago

Hello everyone. Got the same problem with 0.9.2.

I've decided to update to 0.9.3 tonight, but it's a pain everytime i want to do it with docker, it's fuc*** up everything. Anyway, reversing by VM on the last state with the 0.9.2 and now the calendar on MacOS don't want to sync anymore, even if it's all connected nicely and the same as before.

Apple is really lame on integration, as it's working well on the iPhone for example.

Neifab commented 1 year ago

Alright, i've just tried to delete the account, reboot the computer, do another fresh one, and it worked ! It's now syncing. Don't ask me why ...

The steps :

Preference > Add Account > Advanced Adress of server: your.server.com Pathway: /dav.php/principals/USERNAME/ Port: Baikal port (it's working quite good with a reverse proxy on https/443)

chirmstream commented 1 year ago

Alright, i've just tried to delete the account, reboot the computer, do another fresh one, and it worked ! It's now syncing. Don't ask me why ...

The steps :

Preference > Add Account > Advanced Adress of server: your.server.com Pathway: /dav.php/principals/USERNAME/

This worked for me. Perhaps the restart after removing the account was necessary. And this was on 0.9.3.

Neifab commented 1 year ago

Cool if it's working now, might be something around caches and access tokens, but actually no problems with iOS.

muzzah commented 1 year ago

Im seeing this issue as well. Both contacts and native calendar app didnt work. @Neifab 's suggestions worked for calender but I cannot sync contacts either

Neifab commented 1 year ago

I had the same problem @muzzah, and it finally worked with contacts too.

muzzah commented 1 year ago

I fixed my issue by adding the nginx redirect rules to my proxy infront of this docker. It seems the rewrite rules are not working with my default config.

Neifab commented 1 year ago

Yes @muzzah, same for me, having a reverse proxy on SSL helped a lot with the connections.

ByteHamster commented 1 year ago

Closing this to keep the MacOS discussions in one place --> #1168

cyberdork33 commented 1 year ago

Just to be clear, this issue was about macOS calendar app. The other is about iOS calendar. You'd think they are the same but they are slightly different.