[Help] Android Calendar and Contact Sync - CalDAV CardDAV with letsencrypt SSL

Hello

I am unable to set up sync with the Android Apps CalDAV-Sync and CardDAV-Sync free on my new phone.

Nextcloud 11.0.1 (stable)
Android 6.0.1 - Kernel 3.18.19
CalDAV-Sync
CardDAV-Sync free

I can connect with the Nextcloud client app 1.4.0. And via browser. But not CalDAV or CardDAV. Strange thing, it can connect with my old server with and old Nextcloud with self-signed SSL Certificate.

Always get error like:

20170128T134011Z I org.dmfs.caldav.autheticator.AuthenticatorActivity calendar discovery log:
20170128T134012Z V org.dmfs.dav.Dav get principal /nc/
20170128T134012Z V org.dmfs.dav.methods.DavPropFind Status: 405
20170128T134012Z V org.dmfs.dav.Dav could not locate current user principal at /nc/
20170128T134012Z V org.dmfs.dav.Dav get principal /.well-known/caldav
20170128T134012Z V org.dmfs.dav.methods.DavPropFind Status: 405
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.methods.DavPropFind 405 Method Not Allowed
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.methods.DavPropFind

Method Not Allowed


20170128T134012Z V org.dmfs.dav.methods.DavPropFind

The requested method PROPFIND is not allowed for the URL /.well-known/caldav.


20170128T134012Z V org.dmfs.dav.methods.DavPropFind

20170128T134012Z V org.dmfs.dav.methods.DavPropFind Apache/2.4.18 (Ubuntu) Server at mydomain.de Port 443
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.Dav could not locate current user principal at /.well-known/caldav
20170128T134012Z V org.dmfs.dav.Dav get principal /SOGo/dav/
20170128T134012Z V org.dmfs.dav.methods.DavPropFind Status: 405
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.methods.DavPropFind 405 Method Not Allowed
20170128T134012Z V org.dmfs.dav.methods.DavPropFind
20170128T134012Z V org.dmfs.dav.methods.DavPropFind

Method Not Allowed


20170128T134012Z V org.dmfs.dav.methods.DavPropFind

The requested method PROPFIND is not allowed for the URL /SOGo/dav/.


20170128T134012Z

Have you set up a redirect for this path?
https://docs.nextcloud.com/server/11/admin_manual/issues/general_troubleshooting.html#service-discovery-label

1 Like

Thank you

I had to edit /etc/apache2/sites-available/nextcloud.conf
Add lines:
Redirect 301 /.well-known/carddav /cloud/remote.php/carddav
Redirect 301 /.well-known/caldav /cloud/remote.php/caldav
Restart apache: /etc/init.d/apache2 restart

But CardDAV was much bigger problem. I could NOT add only one domain and choose BOTH addressbooks at the same time. I had to add a single sync account for every addressbooks and select only one addressbooks.

Solved and closed.
Please consider using github for the issues.