Owncloud 9 upgrade issue



  • I have issues with a "404 Principal with name users not found" error with one of my owncloud accounts. (One is working fine, the other one for another phone is not).

    I am using 2 shared calendars and a shared address book.

    Error is:

    {"reqId":"XfEgV3LNAqnwy76BOPbh","remoteAddr":"173.38.220.39","app":"carddav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 404 Principal with name users not found\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotFound\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(76): Sabre\\\\DAVACL\\\\AbstractPrincipalCollection->getChild('users')\\n#1 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(71): Sabre\\\\DAV\\\\Tree->getNodeForPath('principals\\\/user...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(903): Sabre\\\\DAV\\\\Tree->getNodeForPath('principals\\\/user...')\\n#3 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(336): Sabre\\\\DAV\\\\Server->getPropertiesForPath('principals\\\/user...', Array, 0)\\n#4 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPropFind(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#6 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:PROPFIND', Array)\\n#7 \\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#8 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/carddav.php(75): Sabre\\\\DAV\\\\Server->exec()\\n#9 \\\/var\\\/www\\\/owncloud\\\/remote.php(138): require_once('\\\/var\\\/www\\\/ownclo...')\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAVACL\\\/AbstractPrincipalCollection.php\",\"Line\":118,\"User\":\"username@domain.com\"}","level":0,"time":"2016-04-02 15:46:55","method":"PROPFIND","url":"\/remote.php\/carddav\/principals\/users\/username@domain.com\/"}
    

    Edit: enclosed with ```



  • Log file excerpt:

    2016-04-02 17:52:09 10 [DavService$RefreshCollections] Refreshing carddav collections of service #2
    2016-04-02 17:52:09 10 [AccountSettings] Account username@domain.com has version 3, current version: 3
    2016-04-02 17:52:09 0 [DavService] Cleaning up orphaned accounts
    2016-04-02 17:52:09 10 [DavService$RefreshCollections] Querying principal for home sets
    2016-04-02 17:52:09 10 [HttpClient$1] --> PROPFIND https://owncloud.domain.com/remote.php/carddav/principals/users/username@domain.com/ http/1.1
    2016-04-02 17:52:09 10 [HttpClient$1] Content-Type: application/xml; charset=utf-8
    2016-04-02 17:52:09 10 [HttpClient$1] Content-Length: 221
    2016-04-02 17:52:09 10 [HttpClient$1] Depth: 0
    2016-04-02 17:52:09 10 [HttpClient$1] 
    2016-04-02 17:52:09 10 [HttpClient$1] <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:" xmlns:CAL="urn:ietf:params:xml:ns:caldav" xmlns:CARD="urn:ietf:params:xml:ns:carddav"><prop><CARD:addressbook-home-set /><group-membership /></prop></propfind>
    2016-04-02 17:52:09 10 [HttpClient$1] --> END PROPFIND (221-byte body)
    2016-04-02 17:52:10 10 [HttpClient$PreemptiveAuthenticationInterceptor] Adding basic authorization header for user username@domain.com
    2016-04-02 17:52:10 10 [HttpClient$1] <-- 404 Not Found https://owncloud.domain.com/remote.php/carddav/principals/users/username@domain.com/ (940ms)
    2016-04-02 17:52:10 10 [HttpClient$1] server: nginx
    2016-04-02 17:52:10 10 [HttpClient$1] date: Sat, 02 Apr 2016 15:52:09 GMT
    2016-04-02 17:52:10 10 [HttpClient$1] content-type: application/xml; charset=utf-8
    2016-04-02 17:52:10 10 [HttpClient$1] expires: Thu, 19 Nov 1981 08:52:00 GMT
    2016-04-02 17:52:10 10 [HttpClient$1] cache-control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    2016-04-02 17:52:10 10 [HttpClient$1] pragma: no-cache
    2016-04-02 17:52:10 10 [HttpClient$1] content-security-policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *
    2016-04-02 17:52:10 10 [HttpClient$1] x-sabre-version: 3.0.7
    2016-04-02 17:52:10 10 [HttpClient$1] OkHttp-Sent-Millis: 1459612330023
    2016-04-02 17:52:10 10 [HttpClient$1] OkHttp-Received-Millis: 1459612330514
    2016-04-02 17:52:10 10 [HttpClient$1] 
    2016-04-02 17:52:10 10 [HttpClient$1] <?xml version="1.0" encoding="utf-8"?>
    <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
      <s:sabredav-version>3.0.7</s:sabredav-version>
      <s:exception>Sabre\DAV\Exception\NotFound</s:exception>
      <s:message>Principal with name users not found</s:message>
    </d:error>
    
    2016-04-02 17:52:10 10 [HttpClient$1] <-- END HTTP (276-byte body)
    2016-04-02 17:52:10 10 [DavService$RefreshCollections] Couldn't refresh collection list
    EXCEPTION at.bitfire.dav4android.exception.NotFoundException: 404 Not Found
            at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:309)
            at at.bitfire.dav4android.DavResource.checkStatus(DavResource.java:290)
            at at.bitfire.dav4android.DavResource.propfind(DavResource.java:275)
            at at.bitfire.davdroid.DavService$RefreshCollections.queryHomeSets(DavService.java:323)
            at at.bitfire.davdroid.DavService$RefreshCollections.run(DavService.java:183)
            at java.lang.Thread.run(Thread.java:818)
    

    Edit: enclosed with ```


  • developer

    What did you use as Base URL? Did you do it like described here: https://davdroid.bitfire.at/configuration/owncloud/



  • @rfc2822 Oh, as you will experience most of the time, this was my bad.

    I had the old "well-known" URLs configured that pointed to /remote.php/carddav instead of /remote.php/dav

    With https://owncloud.domain.com/remote.php/dav/ it worked.
    I fixed the "well-known" URLs and it now works with https://owncloud.domain.com/ as well.

    Thanks for your quick support and sorry for the noise.

    Raoul


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.