Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: folder id '999999' or '' ?

  1. #1
    Junior Member
    Join Date
    Jan 2017
    Posts
    8

    folder id '999999' or '' ?

    Hello,

    I'd like to use z-push (2.3.4) as bridge to owncloud (only Cal- and CardDav). Onwcloud is running on the same server.
    The Device I use is an Sony C905 with AS 2.5. CardDav is working well, but CalDav doesn't.
    So I configured the mobile phone to only sync Calendar and tried the to use BackendCombined and BackendCalDAV (turned LOGLEVEL to LOGLEVEL_WBXML) with different messages in the log.

    For the BackendCombined the messages:
    Code:
    could not get an exporter for folder id 999999/999999
    and for the BackendCalDav the messages
    Code:
    no backend-folderid available for '', returning as is.
    appears.

    Can someone please help me to find the error?

    Thanks Meike

    Here are configuration files, for logs files, please see attachments:
    * /usr/share/z-push/config.php
    Code:
    <?php
        define('TIMEZONE', 'Europe/Berlin');
        define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']). '/');
        define('SCRIPT_TIMEOUT', 0);
        define('USE_X_FORWARDED_FOR_HEADER', false);
        define("CERTIFICATE_OWNER_PARAMETER", "SSL_CLIENT_S_DN_CN");
        define('USE_FULLEMAIL_FOR_LOGIN', true);
        define('STATE_MACHINE', 'FILE');
        define('STATE_DIR', '/var/lib/z-push/');
        define('IPC_PROVIDER', '');
        define('LOGBACKEND', 'filelog');
        define('LOGLEVEL', LOGLEVEL_WBXML);
        define('LOGAUTHFAIL', false);
        define('LOGUSERLEVEL', LOGLEVEL_DEVICEID);
        define('LOGFILEDIR', '/var/log/z-push/');
        define('LOGFILE', LOGFILEDIR . 'z-push.log');
        define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');
        define('LOG_SYSLOG_HOST', false);
        define('LOG_SYSLOG_PORT', 514);
        define('LOG_SYSLOG_PROGRAM', 'z-push');
        define('LOG_SYSLOG_FACILITY', LOG_LOCAL0);
        define('PROVISIONING', true);
        define('LOOSE_PROVISIONING', false);
        define('PROVISIONING_POLICYFILE', 'policies.ini');
        define('SYNC_CONFLICT_DEFAULT', SYNC_CONFLICT_OVERWRITE_PIM);
        define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);
        define('PING_INTERVAL', 30);
        define('FILEAS_ORDER', SYNC_FILEAS_LASTFIRST);
        define('SYNC_MAX_ITEMS', 512);
        define('UNSET_UNDEFINED_PROPERTIES', false);
        define('SYNC_CONTACTS_MAXPICTURESIZE', 5242880);
        define('ALLOW_WEBSERVICE_USERS_ACCESS', false);
        define('USE_PARTIAL_FOLDERSYNC', false);
        define('PING_LOWER_BOUND_LIFETIME', false);
        define('PING_HIGHER_BOUND_LIFETIME', false);
        define('SYNC_TIMEOUT_MEDIUM_DEVICETYPES', "SAMSUNGGTI");
        define('SYNC_TIMEOUT_LONG_DEVICETYPES',   "iPod, iPad, iPhone, WP, WindowsOutlook");
        define('RETRY_AFTER_DELAY', 300);
        define('BACKEND_PROVIDER', 'BackendCalDAV');
        define('SEARCH_PROVIDER', '');
        define('SEARCH_WAIT', 10);
        define('SEARCH_MAXRESULTS', 10);
        define('KOE_CAPABILITY_GAB', true);
        define('KOE_CAPABILITY_RECEIVEFLAGS', true);
        define('KOE_CAPABILITY_SENDFLAGS', true);
        define('KOE_CAPABILITY_OOF', true);
        define('KOE_CAPABILITY_OOFTIMES', true);
        define('KOE_CAPABILITY_NOTES', true);
        define('KOE_CAPABILITY_SHAREDFOLDER', true);
        define('KOE_CAPABILITY_SENDAS', true);
        define('KOE_GAB_STORE', 'SYSTEM');
        define('KOE_GAB_FOLDERID', '');
        define('KOE_GAB_NAME', 'Z-Push-KOE-GAB');
    	$additionalFolders = array(
         );
    * /usr/share/z-sync/backend/caldav/config.php
    Code:
    <?php
        define('CALDAV_PROTOCOL', 'https');
        define('CALDAV_SERVER', 'localhost');
        define('CALDAV_PORT', '443');
        define('CALDAV_PATH', '/owncloud/remote.php/caldav/calendars/%u/');
        define('CALDAV_PERSONAL', 'PRINCIPAL');
        define('CALDAV_SUPPORTS_SYNC', false);
        define('CALDAV_MAX_SYNC_PERIOD', 2147483647);
    * /usr/share/z-sync/backend/combined
    Code:
    <?php
    class BackendCombinedConfig {
        public static function GetBackendCombinedConfig() {
            return array(
                'backends' => array(
                    'd' => array(
                        'name' => 'BackendCardDAV',
                    ),
                    'c' => array(
                        'name' => 'BackendCalDAV',
                    ),
                ),
                'delimiter' => '/',
                'folderbackend' => array(
                    SYNC_FOLDER_TYPE_TASK => 'c',
                    SYNC_FOLDER_TYPE_APPOINTMENT => 'c',
                    SYNC_FOLDER_TYPE_CONTACT => 'd',
                    SYNC_FOLDER_TYPE_NOTE => 'c',
                    SYNC_FOLDER_TYPE_JOURNAL => 'c',
                    SYNC_FOLDER_TYPE_USER_APPOINTMENT => 'c',
                    SYNC_FOLDER_TYPE_USER_CONTACT => 'd',
                    SYNC_FOLDER_TYPE_USER_TASK => 'c',
                    SYNC_FOLDER_TYPE_USER_JOURNAL => 'c',
                    SYNC_FOLDER_TYPE_USER_NOTE => 'c',
                ),
            );
        }
    }
    * device information
    Code:
    ./z-push-admin.php -a list -d semc3520xxxxxx43450                                                                                                                        :(
    
    Synchronized by user: meike
    -----------------------------------------------------
    DeviceId:               semc3520xxxxxx43450
    Device type:            SonyEricssonC
    UserAgent:              SonyEricssonC905/R1DA
    ActiveSync version:     2.5
    First sync:             2017-01-29 18:34
    Last sync:              2017-01-29 18:34
    Total folders:          10
    Short folder Ids:       No
    Synchronized folders:   0
    Synchronized data:      None available
    Status:                 Not available
    WipeRequest on:         not set
    WipeRequest by:         not set
    Wiped on:               not set
    Policy name:            default
    Attention needed:       No errors known
    (Note: Last sync occured during syncing CardDav)
    Attached Files Attached Files
    Last edited by meikestone; 30-01-2017 at 11:04 PM.

  2. #2
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi Meike,

    could you also post the WBXML log for FolderSync request?

    However your mobile supporting only AS 2.5 is pretty outdated. Do you have a more recent device supporting AS 14 to test if it works?

    Manfred

    P.S. Moving post to other backends forum.
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  3. #3
    Junior Member
    Join Date
    Jan 2017
    Posts
    8
    Hello Manfred,

    Quote Originally Posted by manfred View Post
    could you also post the WBXML log for FolderSync request?
    I've set LOGLEVEL to LOGLEVEL_WBXML, shouldn't it be enought?
    I'f not, where can I configure it?
    (As I told, I only try to sync a calendar to the mobile via AS ... )


    However your mobile supporting only AS 2.5 is pretty outdated.
    Ok, I know, but z-push was the reason , to reactivate that mobile phone ;-)

    Do you have a more recent device supporting AS 14 to test if it works?
    Unfortunately not at the moment, but maybe in a few days I can get one


    Thanks Meike

  4. #4
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi Meike,

    yes, LOGLEVEL_WBXML is right, but you haven't posted the complete log, have you? I'm interested in the FolderSync part of it (or even better the complete log).

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  5. #5
    Junior Member
    Join Date
    Jan 2017
    Posts
    8
    Quote Originally Posted by manfred View Post
    Hi Meike,
    yes, LOGLEVEL_WBXML is right, but you haven't posted the complete log, have you? I'm interested in the FolderSync part of it (or even better the complete log).
    Manfred
    Hello,

    You are right, I only attached the last part ..
    Now a full log from both backends. Due size restrictions for attachements,
    I removed time/date, PID, and changed name [meike] to [me] ...

    Quote Originally Posted by manfred View Post
    Do you have a more recent device supporting AS 14 to test if it works?
    I checked with a other newer mobile phone with android and it looked better ...
    I configured a full sync in the mobile phone.
    It synced a lot items and it finished the sync prematurely, because in the
    background the php script from owncloud was collecting calendar items
    (against the mysql) further ... (It is running on slow banana pi) ...
    So at the end, a few Calendar items were found in my Calender.

    Thanks meike
    Attached Files Attached Files

  6. #6
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi Meike,

    the logs are still pretty short. Do you have the log for FolderSync which starts with FolderHierarchy:SyncKey 0? In case the attachment is too big, you could upload it somewhere and send me the link or paste it at e.g. pastebin.com.

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  7. #7
    Junior Member
    Join Date
    Jan 2017
    Posts
    8
    Quote Originally Posted by manfred View Post
    Hi Meike,
    the logs are still pretty short. Do you have the log for FolderSync which starts with FolderHierarchy:SyncKey 0? In case the attachment is too big, you could upload it somewhere and send me the link or paste it at e.g. pastebin.com.
    Manfred
    Hmm, in each file you find a/the complete sync process (CalDAV/Combined), every time I started with a empty file (/var/log/z-sync/z-sync.log).
    What means FolderSync? I only want sync the calendar and contacts, no folders required ....

    Thank Meike

  8. #8
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi Meike,

    before you start syncing folder contents, the device syncs the available folders. This request is called FolderSync.

    If you look at z-push_caldav.txt the first command is FolderSync. However it starts with the SyncKey {538f54c3-88d3-4806-ae49-f268ad0565df}2. I'd like to see the FolderSync for SyncKey 0 (the initial sync). You'll probably have to remove states and re-create the account on the mobile in order to force that if you don't have that available.

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  9. #9
    Junior Member
    Join Date
    Jan 2017
    Posts
    8
    Hello Manfred, sorry, I catched a flu ...

    Quote Originally Posted by manfred View Post
    However it starts with the SyncKey {538f54c3-88d3-4806-ae49-f268ad0565df}2. I'd like to see the FolderSync for SyncKey 0 (the initial sync). You'll probably have to remove states and re-create the account on the mobile in order to force that if you don't have that available.
    Manfred
    I reset the mobile phone completely to factory default (inclusive all data), then I deleted the complete content of /var/lib/z-push I tried it again.
    But I think the result is the same ... See attached log under http://pastebin.com/tjRq4G5k It is the complete log (/var/log/z-push/z-push.log)


    Thanks Meike
    Last edited by meikestone; 15-02-2017 at 08:54 PM.

  10. #10
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475
    Hi meike,

    for some reason your devices doesn't send the folderid for sync and without it, the sync doesn't work.

    There also isn't main calendar defined which could be an issue. You could try setting CALDAV_PERSONAL value to your main calendar's name in config.php of caldav (I suppose it's Cocmeike).

    Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

Page 1 of 2 12 LastLast

Similar Threads

  1. sync folder in addressbook with folder in public store
    By gharms in forum PHP Development
    Replies: 2
    Last Post: 12-02-2015, 12:44 PM
  2. User delete email in public folder, also deletes the folder!
    By thctlo in forum Outlook usage Archives
    Replies: 4
    Last Post: 02-12-2009, 10:35 AM
  3. Save E-Mails from an Outlook folder in an Linux folder
    By KayNeAhnung in forum Administration and Integration Archives
    Replies: 4
    Last Post: 02-07-2009, 03:21 PM
  4. alias for public folder or any folder
    By brynhood in forum Installation and Configuration Archives
    Replies: 3
    Last Post: 08-04-2008, 04:00 PM
  5. Shared folder (public folder) and cached mode
    By sibio in forum Beta Feedback Archives
    Replies: 2
    Last Post: 26-02-2008, 09:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •