**solved** Contact and calendar sync fails after updating from 10.0 to NextCloud 11

Calendar and Contact sync using Android app Davdroid worked just fine until I manually upgraded from Nextcloud 10 to NextCloud 11.

I’m using Nginx, and made this change into configuration file after I noticed the sync doesn’t work anymore:

rewrite ^/.well-known/carddav /remote.php/dav/ permanent;
rewrite ^/.well-known/caldav /remote.php/dav/ permanent;

But it did not help.

This line appears in the log:

Sabre\DAV\Exception\NotFound: HTTP/1.1 404 Principal with name users not found

I have read your nginx configuration guide and have searched the forum (and google & duckduckgo), but could not find any solution. Where’s the problem?

EDIT: I got it working by deleting my davdroid account from my phone and recreating it. It seems that it kept connecting to /caldav instead of the new /dav.