Caldav sync fails on Sabre error (Solved)

Nextcloud version 15.0.0:
Operating system: Gentoo
nginx version: 1.14.1
PHP version: 7.1

When I try to sync my calendar I get an error
20190107T031542Z V org.dmfs.caldav.syncadapter.SyncAdapter running regular sync
20190107T031542Z D org.dmfs.calendar.CalendarManager mutators column seems to be PRESENT
20190107T031542Z V org.dmfs.calendar.CalendarManager ------ checking columns from attendees view, create at least one event on your device to make this work ------
20190107T031542Z V org.dmfs.calendar.CalendarManager attendees table is ok
20190107T031542Z V org.dmfs.calendar.CalendarManager ------ done ------
20190107T031542Z D org.dmfs.calendar.CalendarManager uid2445 column seems to be PRESENT
20190107T031542Z V org.dmfs.caldav.syncadapter.SyncAdapter synctoken: http://sabre.io/ns/sync/806
20190107T031542Z V org.dmfs.caldav.syncadapter.SyncAdapter Syncing calendar ‘default’ with id 6 at caldavs://nextcloud.morgancomputers.net/remote.php/dav/calendars/admorgan/default/ for admorgan
20190107T031542Z V org.dmfs.dav.methods.DavOptions Code : 404
20190107T031542Z V org.dmfs.dav.methods.DavOptions Server:nginx/1.14.1
20190107T031542Z V org.dmfs.dav.methods.DavOptions Date:Mon, 07 Jan 2019 03:15:42 GMT
20190107T031542Z V org.dmfs.dav.methods.DavOptions Content-Type:application/xml; charset=utf-8
20190107T031542Z V org.dmfs.dav.methods.DavOptions Transfer-Encoding:chunked
20190107T031542Z V org.dmfs.dav.methods.DavOptions Connection:keep-alive
20190107T031542Z V org.dmfs.dav.methods.DavOptions Keep-Alive:timeout=20
20190107T031542Z V org.dmfs.dav.methods.DavOptions Vary:Accept-Encoding
20190107T031542Z V org.dmfs.dav.methods.DavOptions Set-Cookie:oc94tteayaz0=k4lusat54amegaoqka2gf0hcl2; path=/; secure; HttpOnly
20190107T031542Z V org.dmfs.dav.methods.DavOptions Expires:Thu, 19 Nov 1981 08:52:00 GMT
20190107T031542Z V org.dmfs.dav.methods.DavOptions Cache-Control:no-store, no-cache, must-revalidate
20190107T031542Z V org.dmfs.dav.methods.DavOptions Pragma:no-cache
20190107T031542Z V org.dmfs.dav.methods.DavOptions Set-Cookie:oc_sessionPassphrase=bcKNj2LUFGebkxUcUzqGIAvvP7hYSZtFRI3qTw%2B%2BTYau8j1RsQCzgwyoqIOhURRZK6yw541rJbPZukjck4jH7A2kvTd2gSeboaZWELdhwtpH4tIu%2F8Xf8pCunROeJbM6; path=/; secure;
+HttpOnly
20190107T031542Z V org.dmfs.dav.methods.DavOptions X-Frame-Options:SAMEORIGIN
20190107T031542Z V org.dmfs.dav.methods.DavOptions Set-Cookie:__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
20190107T031542Z V org.dmfs.dav.methods.DavOptions Set-Cookie:__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
20190107T031542Z V org.dmfs.dav.methods.DavOptions Content-Security-Policy:default-src ‘none’;
20190107T031542Z V org.dmfs.dav.methods.DavOptions <?xml version="1.0" encoding="utf-8"?>
20190107T031542Z V org.dmfs.dav.methods.DavOptions <d:error xmlns:d=“DAV:” xmlns:s=“http://sabredav.org/ns”>;
20190107T031542Z V org.dmfs.dav.methods.DavOptions <s:exception>Sabre\DAV\Exception\NotFound</s:exception> 20190107T031542Z V org.dmfs.dav.methods.DavOptions <s:message>File with name /calendars could not be located</s:message> 20190107T031542Z V org.dmfs.dav.methods.DavOptions </d:error>

I don’t have any errors in the NC logs, nginx logs, or php logs. When I remove and re-add the account it properly detects my calendars. I am able to sync files and contacts, this only effects the calendar.

Is this the first time you’ve seen this error? (Y/N): Y

Found the solution here https://github.com/nextcloud/server/issues/13382