After Upgrade 17 to 18.0.4 i get a DAV Exception: File with name /calendars could not be located

Hello,

as I could not find a helpful solution to my problem I try to describe it here:

it upgraded my NC 17 to 18.0.4 by FTP upload.

I got some errors while the upgrade routine run thru, but I could not save it.

now I have the problem, that my devices do not sync with the NC calendar anymore!

the protocol shows the following information:

Debug: Sabre\DAV\Exception\NotFound: File with name /calendars could not be located at <>

…/sys/3rdparty/sabre/dav/lib/DAV/Tree.php line 68
Sabre\DAV\FS\Directory->getChild(“calendars”)

…/sys/3rdparty/sabre/dav/lib/DAV/Tree.php line 71
Sabre\DAV\Tree->getNodeForPath(“calendars”)
…

has anyone an idea where or how I could try to solve this?
many thanks!

in general you didn’t convey any needed information about your server-setup so that the chances of getting valid answers here would be minimal or just co-incidential, i’m afraid.

you could check if there are more hints for a misconfiguration on your admin-account under settings - administration - overview.
pls solve those first

hi and many thanks for your quick reply!

here more information about my NC:
(working since 4 years without problems)

NC version 18.0.4
on shared web space at df.eu
PHP 7.3.6
mySQL 5.6.19


within the admin overview is only reported, that there are some files that have failed the integrity check, all are within
“3rdparty/symfony/polyfill-iconv/Resources/charset/from.”

so I think, even that is still not solved, this is not the problem with the “calendar” app.

or am I totally wrong here…?

(I am still struggling to get a SSH connection to my hosting in order to resolve the integrity problems with occ command)

meanwhile any more ideas?

here more Details:

Debug: Sabre\DAV\Exception\NotFound: File with name /calendars could not be located at <<closure>>

0. mywebserver//3rdparty/sabre/dav/lib/DAV/Tree.php line 68    Sabre\DAV\FS\Directory->getChild("calendars")
1. mywebserver//3rdparty/sabre/dav/lib/DAV/Tree.php line 71
Sabre\DAV\Tree->getNodeForPath("calendars")
2. mywebserver//3rdparty/sabre/dav/lib/CalDAV/Plugin.php line 76
Sabre\DAV\Tree->getNodeForPath("calendars/user1")
3. mywebserver//3rdparty/sabre/dav/lib/DAV/Server.php line 535
Sabre\CalDAV\Plugin->getHTTPMethods("calendars/user1/calendar001")
4. mywebserver//3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 212
Sabre\DAV\Server->getAllowedMethods("calendars/user1/calendar0002")
5. mywebserver//apps/dav/lib/Connector/Sabre/AnonymousOptionsPlugin.php line 75
Sabre\DAV\CorePlugin->httpOptions(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
6. <<closure>>
OCA\DAV\Connector\Sabre\AnonymousOptionsPlugin->handleAnonymousOptions(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
7. mywebserver//3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([OCA\DAV\Connect ... "], [Sabre\HTTP\Requ ... }])
8. mywebserver//3rdparty/sabre/dav/lib/DAV/Server.php line 466
Sabre\Event\EventEmitter->emit("beforeMethod", [Sabre\HTTP\Requ ... }])
9. mywebserver//3rdparty/sabre/dav/lib/DAV/Server.php line 254
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
10. mywebserver//apps/dav/lib/Server.php line 319
Sabre\DAV\Server->exec()
11. mywebserver//apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
12. mywebserver//remote.php line 165
require_once("/mywebserver ... p")

Debug: 
Sabre\DAV\Exception\NotAuthenticated: No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured at <<closure>>

0. <<closure>>
  Sabre\DAV\Auth\Plugin->beforeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
1. mywebserver//3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
call_user_func_array([Sabre\DAV\Auth\ ... "], [Sabre\HTTP\Requ ... }])
2. mywebserver//3rdparty/sabre/dav/lib/DAV/Server.php line 466
Sabre\Event\EventEmitter->emit("beforeMethod", [Sabre\HTTP\Requ ... }])
3. mywebserver//3rdparty/sabre/dav/lib/DAV/Server.php line 254
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
4. mywebserver//apps/dav/lib/Server.php line 319
Sabre\DAV\Server->exec()
5. mywebserver//apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
6. mywebserver//remote.php line 165
require_once("/mywebserver ... p")

PROPFIND /remote.php/dav/calendars/user1/

and a third Debug message I do not understand, which may be connected to my problem:

[no app in context] Debug: Deprecated event type for {"[object] (OCP\SabrePluginEvent)":{"*statusCode":200,"*message":"","*server":{"[object] (OCA\DAV\Connector\Sabre\Server)":{"tree":"[object] (OCA\DAV\Connector\Sabre\ObjectTree)","*baseUri":"/remote.php/webdav/","httpResponse":"[object] (Sabre\HTTP\Response)","httpRequest":"[object] (Sabre\HTTP\Request)","sapi":"[object] (Sabre\HTTP\Sapi)","*plugins":[],"transactionType":null,"protectedProperties":{"...":"Over 20 items, aborting normalization"},"debugExceptions":false,"resourceTypeMapping":[],"enablePropfindDepthInfinity":true,"xml":"[object] (Sabre\DAV\Xml\Service)","*listeners":{"...":"Over 20 items, aborting normalization"},"*logger":null}},"Symfony\Contracts\EventDispatcher\EventpropagationStopped":false}}: null

PROPFIND /remote.php/webdav/

to specify the problem even more,
it only seems to be a problem concerning the synchronization over DAV with android.
My PC with Thunderbird works fine with NC Calender Synchronization.

after a complete new installation with 18.0.4. I still had problems to sync my calendars with my caldav devices.

After copying following file “AnonymousOptionsTest.php”
[apps/dav/tests/unit/DAV/AnonymousOptionsTest.php]

from an old 18.0.1 to my new 18.0.4 everything seems fine again.

So, it seems, the 18.0.4 installation zip is not OK for new installation…

anyway, no problems anymore, I can close this topic, maybe some has similar problems…

see also:

(https://github.com/nextcloud/server/pull/13354/files/625380ecf8f68251dcdcec0c58b6ce8753a44a0d#diff-19a33fdccf134913612cc8e91831805e)