CalDAV nextcloud stop sync

  • z_caldav.php:459 Invalid argument supplied for foreach
    z_caldav.php:614 Undefined offset
    with this settings all is good except CalDAV
    I use latest z-pish Debian 10
    // ************************
    // BackendCalDAV settings
    // ************************

    // Server protocol: http or https
    define(‘CALDAV_PROTOCOL’, ‘https’);

    // Server name
    define(‘CALDAV_SERVER’, ‘’);

    // Server port
    define(‘CALDAV_PORT’, ‘443’);

    // Path
    define(‘CALDAV_PATH’, ‘/remote.php/dav/%u/’);
    //define(‘CALDAV_PATH’, ‘/remote.php/dav/principals/users/%u/’);
    // Default CalDAV folder (calendar folder/principal). This will be marked as the default calendar in the mobile
    define(‘CALDAV_PERSONAL’, ‘personal’);

    // If the CalDAV server supports the sync-collection operation
    // DAViCal, SOGo and SabreDav support it
    // SabreDav version must be at least 1.9.0, otherwise set this to false
    // Setting this to false will work with most servers, but it will be slower
    define(‘CALDAV_SUPPORTS_SYNC’, true);

    // Maximum period to sync.
    // Some servers don’t support more than 10 years so you will need to change this
    define(‘CALDAV_MAX_SYNC_PERIOD’, 2147483647);

    if I use define(‘CALDAV_PATH’, ‘/remote.php/dav/calendars/%u/’); I have authentication error

  • if I use only caldavbackend I have this error in z-push.log
    /usr/share/z-push/include/z_caldav.php:15 require_once(XMLDocument.php): failed to open stream: No such file or directory (2)
    Fatal error: /usr/share/z-push/include/z_caldav.php:15 - require_once(): Failed opening required ‘XMLDocument.php’ (include_path=’.:/usr/share/php’)
    other backends work well separately

  • I have a similar issue. I am getting this:

    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] -------- Start
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] cmd='' devType='' devId='' getUser='MyUser' from='' version='2.5.1+0-0' method='GET'
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Used timezone 'America/Edmonton'
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Including backend file: '/usr/share/z-push/backend/imap/imap.php'
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Including backend file: '/usr/share/z-push/backend/caldav/caldav.php'
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Including backend file: '/usr/share/z-push/backend/carddav/carddav.php'
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Combined 3 backends loaded.
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Request::ProcessHeaders() ASVersion: 14.1
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] ZPush::CommandNeedsAuthentication(0): true
    08/05/2020 21:30:08 [15318] [DEBUG] [MyUser] Combined->Logon('MyUser', '',***))
    08/05/2020 21:30:09 [15318] [DEBUG] [MyUser] BackendIMAP->Logon(): User 'MyUser' is authenticated on '{localhost:143/imap/notls/norsh}'
    08/05/2020 21:30:09 [15318] [WARN] [MyUser] BackendCalDAV->Logon(): User 'MyUser' is not authenticated on CalDAV 'https://localhost:443/nextcloud/remote.php/dav/calendars/MyUser/'
    08/05/2020 21:30:09 [15318] [DEBUG] [MyUser] Combined->Logon() failed on BackendCalDAV 
    08/05/2020 21:30:09 [15318] [ INFO] [MyUser] AuthenticationRequiredException: Access denied. Username or password incorrect - code: 0 - file: /usr/share/z-push/lib/request/requestprocessor.php:69
    08/05/2020 21:30:09 [15318] [ INFO] [MyUser] User-agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'
    08/05/2020 21:30:09 [15318] [FATAL] [MyUser] Exception: (AuthenticationRequiredException) - Access denied. Username or password incorrect
    08/05/2020 21:30:09 [15318] [DEBUG] [MyUser] ZPush::PrintZPushLegal()
    08/05/2020 21:30:09 [15318] [DEBUG] [MyUser] InterProcessData:__construct type: ''
    08/05/2020 21:30:09 [15318] [DEBUG] [MyUser] TopCollector initialised with IPC provider 'IpcMemcachedProvider' with type '20'
    08/05/2020 21:30:09 [15318] [ INFO] [MyUser] cmd='' memory='2.94 MiB/4.00 MiB' time='0.21s' devType='' devId='' getUser='MyUser' from='' idle='0s' version='2.5.1+0-0' method='GET' httpcode='401'
    08/05/2020 21:30:09 [15318] [DEBUG] [MyUser] -------- End

    Can someone please help???

  • This post is deleted!

  • Hey @orlovnv

    I don’t know if you have already solved the issue or not. The issues started for me when I updated to nextcloud 18.0.4. After 2 hours, that I will never ever get back again, and failing to make it work, I decided to revert back to the last working version 18.0.3. And, voilà, it works again. The good thing for this forum is that it has nothing to do with z-push (at least for me). @Manfred will be happy about that. The bad thing is I have to now try to get through to nextcloud and make them fix their f… ups.

    I hope that helps.



  • @Realshadow I upgrade nc to 19RC1 and all work )))))f***ng 18.0.4

  • Exception: (Exception) - Woops, something’s gone wrong! The CardDAV server returned the http status code 501.
    imap and Caldav work what the f**k?
    return to 18.0.3

Log in to reply