Can't synchronise iCal (Mac OSX 10.13.3) with Nextcloud 13.0.0

I use Nextcloud and before that Owncloud installed at a raspberry Pi since a couple of years without any problems. Today I updated Nextcloud 12 to 13 and tried to synchronise iCal with Nextcloud. Nextcloud gives me the path https://my-nextcloud.de/remote.php/dav/principals/users/ME/. Until today it always works. But now I can’t synchronise anymore and I get the message "Unable to verify account name or password"
With my iPhone it works perfect so thats why I think the problem is Mac OSX 10.13.3

Mac OS can be picky when it comes to caldav/carddav synchronization. But actually with service discovery it works really reliably and is very easy to add accounts:

Read this and make sure service discovery is working on your nextcloud instance:
https://docs.nextcloud.com/server/13/admin_manual/issues/general_troubleshooting.html#troubleshooting-contacts-calendar

With working service discovery you can use “automatic” as account type. Mac OS then configures the correct links automatically. Add new caldav account in system settings, choose “automatic” as account type and use as login USERNAME@EXAMPLE.COM where USERNAME is your username for nextcloud and EXAMPLE.COM is the domain where your nextcloud is running.

1 Like

I think service discovery is working because https://my-nextcloud.de/.well-known/caldav results in https://my-nextcloud.de/remote.php/dav/

“This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.”

Automatic also didn’t work

Which web server are you using? Could you post the webserver log, when trying to add an account?

I use apache2 and the following output is in the log-file of apache:

ME [06/Mar/2018:10:09:50 +0100] “PROPFIND /remote.php/dav/files/ME/ HTTP/1.1” 207 1702 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”
[06/Mar/2018:10:10:10 +0100] “PROPFIND /.well-known/caldav HTTP/1.1” 301 895 “-” “Mac+OS+X/10.13.3 (17D102) accountsd/113”
[06/Mar/2018:10:10:10 +0100] “PROPFIND /remote.php/dav/ HTTP/1.1” 401 1854 “-” "Mac+OS+X/10.13.3 (17D102) accountsd/113"
ME [06/Mar/2018:10:10:11 +0100] “PROPFIND /remote.php/webdav/ HTTP/1.1” 207 1275 “-” "Mozilla/5.0 (Macintosh) mirall/2.2.4 (build 1) (Nextcloud)"
ME@My-Nextcloud.com [06/Mar/2018:10:10:11 +0100] “PROPFIND /remote.php/dav/ HTTP/1.1” 401 1791 “-” “Mac+OS+X/10.13.3 (17D102) accountsd/113”
[06/Mar/2018:10:10:18 +0100] “PROPFIND /remote.php/dav/ HTTP/1.1” 401 1850 “-” "Mac+OS+X/10.13.3 (17D102) accountsd/113"
ME [06/Mar/2018:10:10:21 +0100] “PROPFIND /remote.php/dav/files/ME/ HTTP/1.1” 207 1702 “-” “Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)”

I just tried to add a calendar with service discovery and it works under Mac 10.13.3. I am running Nextcloud in a subfolder though, but that shouldn’t make a difference. Here is the Apache log:

IP.IP.IP.IP - - [06/Mar/2018:12:01:28 +0100] "PROPFIND /.well-known/caldav HTTP/1.1" 301 331 "-" "Mac+OS+X/10.13.3 (17D102) accountsd/113"
IP.IP.IP.IP - - [06/Mar/2018:12:01:28 +0100] "PROPFIND /nextcloud/remote.php/dav HTTP/1.1" 401 557 "-" "Mac+OS+X/10.13.3 (17D102) accountsd/113"
IP.IP.IP.IP - - [06/Mar/2018:12:01:28 +0100] "PROPFIND /nextcloud/remote.php/dav HTTP/1.1" 207 594 "-" "Mac+OS+X/10.13.3 (17D102) accountsd/113"
IP.IP.IP.IP - - [06/Mar/2018:12:01:28 +0100] "OPTIONS /nextcloud/remote.php/dav/principals/users/USERNAME/ HTTP/1.1" 200 - "-" "Mac+OS+X/10.13.3 (17D102) accountsd/113"
IP.IP.IP.IP - - [06/Mar/2018:12:01:34 +0100] "PROPFIND /nextcloud/remote.php/dav/principals/users/USERNAME/ HTTP/1.1" 401 557 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:34 +0100] "PROPFIND /nextcloud/remote.php/dav/principals/users/USERNAME/ HTTP/1.1" 207 549 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:34 +0100] "PROPFIND /nextcloud/remote.php/dav/principals/users/USERNAME/ HTTP/1.1" 207 1981 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:34 +0100] "OPTIONS /nextcloud/remote.php/dav/principals/users/USERNAME/ HTTP/1.1" 200 - "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:35 +0100] "REPORT /nextcloud/remote.php/dav/principals/groups/ HTTP/1.1" 401 557 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:35 +0100] "REPORT /nextcloud/remote.php/dav/principals/groups/ HTTP/1.1" 200 803 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:35 +0100] "PROPFIND /nextcloud/remote.php/dav/calendars/USERNAME/inbox/ HTTP/1.1" 401 557 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:36 +0100] "PROPFIND /nextcloud/remote.php/dav/calendars/USERNAME/inbox/ HTTP/1.1" 207 458 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:36 +0100] "PROPFIND /nextcloud/remote.php/dav/calendars/USERNAME/ HTTP/1.1" 401 557 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:36 +0100] "PROPFIND /nextcloud/remote.php/dav/calendars/USERNAME/ HTTP/1.1" 207 11505 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:37 +0100] "PROPPATCH /nextcloud/remote.php/dav/calendars/USERNAME/ HTTP/1.1" 207 481 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:38 +0100] "PROPPATCH /nextcloud/remote.php/dav/calendars/USERNAME/ HTTP/1.1" 207 485 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:38 +0100] "PROPPATCH /nextcloud/remote.php/dav/calendars/USERNAME/CALENDAR/ HTTP/1.1" 207 516 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"
IP.IP.IP.IP - - [06/Mar/2018:12:01:41 +0100] "PROPPATCH /nextcloud/remote.php/dav/calendars/USERNAME/CALENDAR/ HTTP/1.1" 207 483 "-" "Mac+OS+X/10.13.3 (17D102) CalendarAgent/399.2.2"

What I noticed is that you only get 401 status codes (meaning authorization required) in the lines where you accessed with Mac OS. There should also be 200/207 status codes in the log for accessing with Mac OS (there are, but from a different device - probably a Nextcloud-Client). Did you delete any lines? Are you sure you don’t have a type in Username/Password?

It works, but it is strange!
I used automatically, USER@My-Nextcloud.com, PASSWORD and it dosen’t work. So I tried automatically, USER@My-Nextcloud.com/, PASSWORD and it works

There was a second problem with the password. I don’t know why, but there is always caps lock activated even I deactivated it. It has to be a bug at Mac OSX 10.13.3

Sorry, it was to early to say it works. I still have the problem. I can save the settings, but iCal don’t get any data.

With my iPhone I can synchronise. It uses the settings I did a couple weeks ago. My girlfriends iPhone is not able to synchronise with the same settings. It seems, that Nextcloud don’t accept new devices???

Sunday I also transformed database from sqlite to mysql

BlockquoteWhat I noticed is that you only get 401 status codes (meaning authorization required) in the lines where you accessed with Mac OS. There should also be 200/207 status codes in the log for accessing with Mac OS (there are, but from a different device - probably a Nextcloud-Client). Did you delete any lines? Are you sure you don’t have a type in Username/Password?

I only delete lines from different devices.
I’m absolutely sure with Username and Password

What could also be the culprit is to many failed logins. Can you check and empty your table oc_bruteforce_attempts?

Here is an howto in german (looking at your nickname I think you might be able to understand some german): Nextcloud 13, Website nicht erreichbar

Thanks a lot!! Thats it!!!

1 Like