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

Thread: Contacts are added, removed and added again ...

  1. #1
    Junior Member
    Join Date
    Feb 2017
    Posts
    10

    Contacts are added, removed and added again ...

    Using Debian with Apache, Nextcloud11, PHP7.0, Z-Push 2.3.4 and an Android phone (Cyanogenmod13.0)

    I have the following Problems:
    - With every Sync the Contacts from Nextcloud are added, removed and added to the android phone again, and so on.
    - Contacts entered on the Android aren't synct to Nextcloud

    My Changes in /etc/z-push/z-push.conf.php (the config.php) are:
    define('BACKEND_PROVIDER', 'BackendCardDAV');

    Changes in /etc/z-push/carddav.conf.php are:
    define('CARDDAV_PATH', '/nextcloud/remote.php/dav/addressbooks/users/%u/contacts/');
    define('CARDDAV_DEFAULT_PATH', '/nextcloud/remote.php/dav/addressbooks/users/%u/contacts/');

    In the z-Push.log are three syncs
    Code:
    12/02/2017 15:19:35 [26432] [ INFO] [test] StateNotFoundException: FileStateMachine->GetStateHash(): Could not locate state '/var/lib/z-push/7/1/android1476212802317-devicedata' - code: 0 - file: /usr/share/z-push/lib/default/filestatemachine.php:86
    12/02/2017 15:19:35 [26432] [ INFO] [test] Announcing latest AS version to device: 12.0,12.1,14.0
    12/02/2017 15:19:35 [26432] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'hierarchy'
    12/02/2017 15:19:35 [26432] [ INFO] [test] Linking device ID 'android1476212802317' to user 'test'
    12/02/2017 15:19:35 [26432] [ INFO] [test] cmd='FolderSync' memory='1.81 MiB/2.00 MiB' time='0.22s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'
    12/02/2017 15:19:36 [26432] [ INFO] [test] StateNotFoundException: FileStateMachine->GetState(): Could not locate state '/var/lib/z-push/7/1/android1476212802317-bs-1486909175' - code: 0 - file: /usr/share/z-push/lib/default/filestatemachine.php:119
    12/02/2017 15:19:36 [26432] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'contacts'
    12/02/2017 15:19:36 [26432] [ INFO] [test] cmd='Sync' memory='1.87 MiB/2.00 MiB' time='0.28s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'
    12/02/2017 15:19:36 [26432] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'contacts'
    12/02/2017 15:19:36 [26432] [WARN] [test] Mobile loop detected! Messages sent to the mobile will be restricted to 1 items in order to identify the conflict
    12/02/2017 15:19:36 [26432] [ INFO] [test] cmd='Sync' memory='1.91 MiB/2.00 MiB' time='0.33s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'
    
    12/02/2017 15:19:41 [26432] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '0' changes for 'hierarchy'
    12/02/2017 15:19:41 [26432] [ INFO] [test] cmd='FolderSync' memory='1.78 MiB/2.00 MiB' time='0.22s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'
    
    12/02/2017 15:19:47 [26440] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'hierarchy'
    12/02/2017 15:19:47 [26440] [ INFO] [test] cmd='FolderSync' memory='1.83 MiB/2.00 MiB' time='0.24s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'
    12/02/2017 15:19:47 [26440] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'contacts'
    12/02/2017 15:19:47 [26440] [ INFO] [test] cmd='Sync' memory='1.87 MiB/4.00 MiB' time='0.25s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'
    12/02/2017 15:19:47 [26440] [ INFO] [test] ExportChangesDiff->InitializeExporter(): Found '1' changes for 'contacts'
    12/02/2017 15:19:47 [26440] [WARN] [test] Mobile loop detected! Messages sent to the mobile will be restricted to 1 items in order to identify the conflict
    12/02/2017 15:19:47 [26440] [ INFO] [test] cmd='Sync' memory='1.91 MiB/4.00 MiB' time='0.33s' devType='googleNexus' devId='android1476212802317' getUser='test' from='192.168.5.170' version='2.3.4+0' method='POST' httpcode='200'

    I've tried Baikal instead of Nextcloud with the same Problem.

    Someone a hint for me ?

  2. #2
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,418
    Did you install from the tarball or packages? Is your state directory writeable by the webserver?

  3. #3
    Junior Member
    Join Date
    Feb 2017
    Posts
    10
    A few days ago i installed from tarball, with the mentioned problems.
    So yesterday i installed z-push from the packages, but the Problems are the same.

    Installed Packages are:
    Code:
    [email protected]:/var/lib/z-push/7/1# dpkg --get-selections |grep z-push
    z-push-backend-carddav                          install
    z-push-common                                   install
    z-push-config-apache                            install
    z-push-ipc-sharedmemory                         install
    Owner and Group of /var/lib/z-push is www-data.
    Code:
    [email protected]:/var/lib/z-push# ll
    total 16
    drwx------ 3 www-data www-data 4096 Feb  3 22:00 3
    drwxr-xr-x 3 www-data www-data 4096 Feb  4 20:49 7
    -rwx------ 1 www-data www-data   28 Feb  3 21:33 settings
    -rw-r--r-- 1 www-data www-data   55 Feb 12 15:19 users

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

    could you also post the output of z-push-admin -a list -u [username] and the contents of the states folders?

    WBXML log also might be helpful.

    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
    Feb 2017
    Posts
    10
    Code:
    [email protected]:/var/lib/z-push# z-push-admin -a list -u test
    
    Synchronized devices of user: test
    -----------------------------------------------------
    DeviceId:               android1476212802317
    Device type:            googleNexus
    UserAgent:              googleNexus4/6.0.1-EAS-2.0
    ActiveSync version:     14.0
    First sync:             2017-02-12 15:19
    Last sync:              2017-02-13 18:00
    Total folders:          1
    Short folder Ids:       No
    Synchronized folders:   1
    Synchronized data:      Contacts
    Status:                 Not available
    WipeRequest on:         not set
    WipeRequest by:         not set
    Wiped on:               not set
    Policy name:            default
    Attention needed:       No errors known
    Code:
    [email protected]:/var/lib/z-push# ll -R
    .:
    total 16
    drwx------ 3 www-data www-data 4096 Feb  3 22:00 3
    drwxr-xr-x 3 www-data www-data 4096 Feb  4 20:49 7
    -rwx------ 1 www-data www-data   28 Feb  3 21:33 settings
    -rw-r--r-- 1 www-data www-data   55 Feb 12 15:19 users
    
    ./3:
    total 4
    drwx------ 2 www-data www-data 4096 Feb  7 18:07 2
    
    ./3/2:
    total 0
    
    ./7:
    total 4
    drwxr-xr-x 2 www-data www-data 4096 Feb 13 18:00 1
    
    ./7/1:
    total 32
    -rw-r--r-- 1 www-data www-data  311 Feb 13 18:00 android1476212802317-bs-1486909175
    -rw-r--r-- 1 www-data www-data 2842 Feb 13 18:00 android1476212802317-devicedata
    -rw-r--r-- 1 www-data www-data    6 Feb 13 18:00 android1476212802317-e0ebab33-3615-4bde-a90d-5172f5611bc1-1
    -rw-r--r-- 1 www-data www-data  144 Feb 13 18:00 android1476212802317-e0ebab33-3615-4bde-a90d-5172f5611bc1-2
    -rw-r--r-- 1 www-data www-data  897 Feb 13 18:00 android1476212802317-e0ebab33-3615-4bde-a90d-5172f5611bc1-fd
    -rw-r--r-- 1 www-data www-data   95 Feb 13 18:00 android1476212802317-eb6b6f7b-d345-4154-ad16-d4c0f6b02e16-1
    -rw-r--r-- 1 www-data www-data  372 Feb 13 18:00 android1476212802317-eb6b6f7b-d345-4154-ad16-d4c0f6b02e16-fd
    -rw-r--r-- 1 www-data www-data  244 Feb 13 18:00 android1476212802317-eb6b6f7b-d345-4154-ad16-d4c0f6b02e16-hc-1
    The logfile shows three syncs from my mobile
    Attached Files Attached Files

  6. #6
    Junior Member
    Join Date
    Feb 2017
    Posts
    10
    Hi manfred,

    could you find something in the log file ?
    Do you need some more informations of my setup ?

    Thank you for your help
    er23

  7. #7
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,452
    Hi er23,

    for some reason your device starts to sync with the SyncKey 0 (line 524 in your log) after it synced contacts. In the z-push.log there isn't anything obviously wrong.

    Maybe you could get the log from your device via adb and post it here.

    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.

  8. #8
    Junior Member
    Join Date
    Feb 2017
    Posts
    10
    Hi manfred,

    i have no experience in debugging with adb.

    'logcat Exchange:V *:S' gives the following output with every sync:
    Code:
    02-17 19:12:07.093 22373 16840 I Exchange: onPerformSync contacts starting Bundle[{ignore_settings=true, force=true, ignore_backoff=true}]
    02-17 19:12:07.142 22373 16840 I Exchange: PSS syncStart for account acct:6
    02-17 19:12:07.143 22373 16840 I Exchange: PSS adding account state for acct:6
    02-17 19:12:07.621 22373 16840 I Exchange: PSS syncEnd for account acct:6
    02-17 19:12:07.621 22373 16840 I Exchange: PSS push enabled is unknown
    02-17 19:12:07.621 22373 16840 I Exchange: PSS no push enabled acct:6.
    02-17 19:12:07.621 22373 16840 I Exchange: PSS removing account state for acct:6
    I will update my mobile to LineageOS and see if the problem still exist.

  9. #9
    Junior Member
    Join Date
    Feb 2017
    Posts
    10
    hey manfred,

    freshly installed LineageOS (no gapps).. same problem :-(

    er23

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

    is it all?

    removing account state for acct:6
    that doesn't sound correct. It would be good to know why it removes the account state.

    no push enabled acct:6
    Have you set to manual sync? Have you tried enabling push?

    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. wrong attachment added to mail
    By ldb1619 in forum Installation, Configuration and Maintenance
    Replies: 3
    Last Post: 17-12-2016, 01:24 PM
  2. second line added webapp
    By chomes in forum WebApp
    Replies: 2
    Last Post: 20-04-2016, 11:26 AM
  3. Replies: 0
    Last Post: 22-12-2014, 02:53 PM
  4. Can't sync user-added folders
    By swimboy in forum Z-Push when using Kopano/Zarafa
    Replies: 1
    Last Post: 20-09-2014, 05:13 PM
  5. BUG: spaces added to the subject when replying
    By sasos in forum Outlook usage Archives
    Replies: 12
    Last Post: 23-03-2009, 01:09 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
  •