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

Thread: z-push-kopano-gabsync-2.3.4 rising warnings and error

  1. #1
    Member
    Join Date
    Dec 2010
    Location
    Wr. Neustadt, Austria
    Posts
    51

    z-push-kopano-gabsync-2.3.4 rising warnings and error

    Hi,

    I tried to setup z-push-kopano-gabsync on SLES 12 SP1. Unfortunately I see many warnings and an error:

    # cd /usr/share/z-push/tools/gab-sync
    # ./gab-sync.php -a sync
    PHP Warning: include_once(mapi/mapi.util.php): failed to open stream: No such file or directory in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 28
    PHP Warning: include_once(): Failed opening 'mapi/mapi.util.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/z-push/tools/gab-sync/') in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 28
    PHP Warning: include_once(mapi/mapidefs.php): failed to open stream: No such file or directory in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 29
    PHP Warning: include_once(): Failed opening 'mapi/mapidefs.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/z-push/tools/gab-sync/') in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 29
    PHP Warning: include_once(mapi/mapitags.php): failed to open stream: No such file or directory in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 30
    PHP Warning: include_once(): Failed opening 'mapi/mapitags.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/z-push/tools/gab-sync/') in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 30
    PHP Warning: include_once(mapi/mapicode.php): failed to open stream: No such file or directory in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 31
    PHP Warning: include_once(): Failed opening 'mapi/mapicode.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/z-push/tools/gab-sync/') in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 31
    PHP Warning: include_once(mapi/mapiguid.php): failed to open stream: No such file or directory in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 32
    PHP Warning: include_once(): Failed opening 'mapi/mapiguid.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/z-push/tools/gab-sync/') in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 32
    PHP Warning: mapi_prop_tag() expects parameter 1 to be long, string given in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 35
    PHP Warning: mapi_prop_tag() expects parameter 1 to be long, string given in /usr/share/z-push/tools/gab-sync/lib/kopano.php on line 38
    Kopano->openMessageStore(): No store found for user 'SYSTEM': 0x00000000 - Aborting.


    To get around of the include errors I tried to execute in /usr/share/z-push/backend/kopano but I see an different error:
    # cd /usr/share/z-push/backend/kopano
    # /usr/share/z-push/tools/gab-sync/gab-sync.php -a sync
    PHP Fatal error: Class name must be a valid object or a string in /usr/share/z-push/tools/gab-sync/gab-sync.php on line 115


    Environment: SLES 12 SP1 with all patches installed, Kopano 8.1.1.11, single-tenant. Phone sync works without any issues.

    Any Ideas how to solve the include error, the Class error and the "No Store found for user 'SYSTEM'" error?

    Walter
    Regards

    Walter

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

    in order to solve the include errors, you have to locate the PHP-MAPI files. Usually they are in /usr/share/php/mapi. If that's the case, modify gab-sync.php line 34 to look like this:

    set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI . PATH_SEPARATOR . '/usr/share/php/');

    Is there a public store on your system? If not, please create it or use other user than 'SYSTEM' for the synchronisation.

    If you will execute the script in its directory (/usr/share/z-push/tools/gab-sync), there shouldn't be issues with the Class.

    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.

  3. #3
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    We are still trying to figure out where the error (or who/what package) is setting this wrong. The mapi includes are by default in /usr/share/php/mapi. Could you check if this exists on your system?
    I guess php-mapi is installed ?

  4. #4
    Member
    Join Date
    Dec 2010
    Location
    Wr. Neustadt, Austria
    Posts
    51
    Sebastian,

    all included mapi file are located in "/usr/share/z-push/backend/kopano/mapi", this was the second test:

    # cd /usr/share/z-push/backend/kopano
    # /usr/share/z-push/tools/gab-sync/gab-sync.php -a sync
    PHP Fatal error: Class name must be a valid object or a string in /usr/share/z-push/tools/gab-sync/gab-sync.php on line 115

    unfortunately starting the script in "/usr/share/z-push/backend/kopano" rises an different error, please see above.


    The mapi files are also stored in "/usr/share/php/mapi" this files are one day newer and slightly bigger.

    launching the script from this directory works:

    # cd /usr/share/php
    # /usr/share/z-push/tools/gab-sync/gab-sync.php -a sync

    Created hidden public folder with id: '791340b385a74b70853b44199ec42c52d86d1b000000'
    Starting GAB sync to store 'SYSTEM' on id '791340b385a74b70853b44199ec42c52d86d1b000000'
    Kopano->clearAllNotCurrentChunkType: no invalid items, done!
    ...

    the newer files:

    # cd /usr/share/php
    # l mapi
    total 516
    drwxr-xr-x 2 root root 4096 Dec 31 17:05 ./
    drwxr-xr-x 3 root root 4096 Dec 20 15:15 ../
    -rw-r--r-- 1 root root 4863 Dec 20 15:15 class.baseexception.php
    -rw-r--r-- 1 root root 64532 Dec 20 15:15 class.baserecurrence.php
    -rw-r--r-- 1 root root 11473 Dec 20 15:15 class.freebusypublish.php
    -rw-r--r-- 1 root root 2718 Dec 20 15:15 class.mapiexception.php
    -rw-r--r-- 1 root root 131053 Dec 20 15:15 class.meetingrequest.php
    -rw-r--r-- 1 root root 64482 Dec 20 15:15 class.recurrence.php
    -rw-r--r-- 1 root root 17108 Dec 20 15:15 class.taskrecurrence.php
    -rw-r--r-- 1 root root 40038 Dec 20 15:15 class.taskrequest.php
    -rw-r--r-- 1 root root 11616 Dec 20 15:15 mapi.util.php
    -rw-r--r-- 1 root root 10377 Dec 20 15:15 mapicode.php
    -rw-r--r-- 1 root root 34287 Dec 20 15:15 mapidefs.php
    -rw-r--r-- 1 root root 2339 Dec 20 15:15 mapiguid.php
    -rw-r--r-- 1 root root 87589 Dec 20 15:15 mapitags.php
    #

    The older files:
    # cd /usr/share/z-push/backend/kopano
    # l mapi
    total 596
    drwxr-xr-x 2 root root 4096 Jan 9 17:21 ./
    drwxr-xr-x 3 root root 4096 Dec 26 19:36 ../
    -rw-r--r-- 1 root root 5495 Dec 21 19:15 class.baseexception.php
    -rw-r--r-- 1 root root 86417 Dec 21 19:15 class.baserecurrence.php
    -rw-r--r-- 1 root root 17139 Dec 21 19:15 class.freebusypublish.php
    -rw-r--r-- 1 root root 3180 Dec 21 19:15 class.mapiexception.php
    -rw-r--r-- 1 root root 156658 Dec 21 19:15 class.meetingrequest.php
    -rw-r--r-- 1 root root 73708 Dec 21 19:15 class.recurrence.php
    -rw-r--r-- 1 root root 20853 Dec 21 19:15 class.taskrecurrence.php
    -rw-r--r-- 1 root root 47843 Dec 21 19:15 class.taskrequest.php
    -rw-r--r-- 1 root root 12093 Dec 21 19:15 mapi.util.php
    -rw-r--r-- 1 root root 9992 Dec 21 19:15 mapicode.php
    -rw-r--r-- 1 root root 35167 Dec 21 19:15 mapidefs.php
    -rw-r--r-- 1 root root 2559 Dec 21 19:15 mapiguid.php
    -rw-r--r-- 1 root root 90087 Dec 21 19:15 mapitags.php
    #

    Any ideas why I have to directories with similar files and why include is not working?

    Walter
    Regards

    Walter

  5. #5
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    Z-Push forked these mapi classes a few years back (especially due to different release cycles).
    The gab-sync script doesn't use the forked classes, but the classes in /usr/share/php which are installed by the php-mapi package.

    I guess you installed Z-Push from the tarball? Or from the repository?

    The problem is the include path of php. Your output says:
    Code:
    include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/z-push/tools/gab-sync/'
    The location/usr/share/php is not included in that path.
    Executing the gab-sync script directly from that directory is a good workaround.
    Right now it seems as this is an issue of the php-mapi package. I am going to check this.

    Cheers,
    Sebastian

  6. #6
    Member
    Join Date
    Dec 2010
    Location
    Wr. Neustadt, Austria
    Posts
    51
    Sebastian,

    I installed z-push from repository, as discussed at Kopano Conference 2016.

    Walter
    Regards

    Walter

  7. #7
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    Could you please inform the repository you've installed Kopano from?
    Please inform also the installed version + build and more information about your OS (e.g. architecture).

    I've created a ticket at KC for this: https://jira.kopano.io/browse/KC-461
    Ticket can only be processed with the requested information.

    Greetings,
    Sebastian

  8. #8
    Member
    Join Date
    Dec 2010
    Location
    Wr. Neustadt, Austria
    Posts
    51
    Sebastian,

    OS is a SLES 12 SP1 64 Bit current patch level.


    Z-Push:
    Repository: baseurl=http://repo.z-hub.io/z-push:/final/SLE_12/
    Now I switched to SP1 repo "baseurl=http://repo.z-hub.io/z-push:/final/SLE_12_SP1/" but no newer packages available.

    Installed z-push packages:
    # rpm -qa | grep z-push | sort
    z-push-autodiscover-2.3.4+0-47.1.noarch
    z-push-backend-kopano-2.3.4+0-47.1.noarch
    z-push-common-2.3.4+0-47.1.noarch
    z-push-config-apache-2.3.4+0-47.1.noarch
    z-push-ipc-sharedmemory-2.3.4+0-47.1.noarch
    z-push-kopano-2.3.4+0-47.1.noarch
    z-push-kopano-gabsync-2.3.4+0-47.1.noarch


    Kopano:
    baseurl=https://<USER>:<PWD>@download.kopano.io/supported/core:/final/SLE_12_SP1/
    baseurl=https://<USER>:<PWD>@download.kopano.io/supported/webapp:/final/SLE_12_SP1/

    Installed kopano packages:
    # rpm -qa | grep kopano | sort
    kopano-backup-8.1.1.11-7.1.x86_64
    kopano-client-8.1.1.11-7.1.x86_64
    kopano-common-8.1.1.11-7.1.x86_64
    kopano-contacts-8.1.1.11-7.1.x86_64
    kopano-dagent-8.1.1.11-7.1.x86_64
    kopano-gateway-8.1.1.11-7.1.x86_64
    kopano-ical-8.1.1.11-7.1.x86_64
    kopano-lang-8.1.1.11-7.1.x86_64
    kopano-monitor-8.1.1.11-7.1.x86_64
    kopano-presence-8.1.1.11-7.1.x86_64
    kopano-search-8.1.1.11-7.1.x86_64
    kopano-server-8.1.1.11-7.1.x86_64
    kopano-server-packages-8.1.1.11-7.1.x86_64
    kopano-spooler-8.1.1.11-7.1.x86_64
    kopano-utils-8.1.1.11-7.1.x86_64
    kopano-webapp-3.2.0.335-19.1.noarch
    kopano-webapp-lang-3.2.0.335-19.1.noarch
    kopano-webapp-plugin-delayeddelivery-2.0.0.6-6.1.noarch
    kopano-webapp-plugin-desktopnotifications-2.0.0.7-6.1.noarch
    kopano-webapp-plugin-filepreviewer-2.0.0.3-6.1.noarch
    kopano-webapp-plugin-folderwidgets-3.2.0.335-19.1.noarch
    kopano-webapp-plugin-gmaps-3.2.0.335-19.1.noarch
    kopano-webapp-plugin-mdm-2.0.1.0-21.1.noarch
    kopano-webapp-plugin-pimfolder-3.2.0.335-19.1.noarch
    kopano-webapp-plugin-quickitems-3.2.0.335-19.1.noarch
    kopano-webapp-plugin-spell-2.0.0.0-5.1.noarch
    kopano-webapp-plugin-spell-de-at-2.0.0.0-4.1.noarch
    kopano-webapp-plugin-spell-de-de-2.0.0.0-4.1.noarch
    kopano-webapp-plugin-spell-en-us-2.0.0.0-4.1.noarch
    kopano-webapp-plugin-titlecounter-3.2.0.335-19.1.noarch
    kopano-webapp-plugin-webappmanual-3.2.0.335-19.1.noarch
    libgsoap-kopano-2_8-2.8.22-1.1.x86_64
    libvmime_kopano0-0.9.1+svn603-1.1.x86_64
    python-kopano-8.1.1.11-7.1.x86_64
    z-push-backend-kopano-2.3.4+0-47.1.noarch
    z-push-kopano-2.3.4+0-47.1.noarch
    z-push-kopano-gabsync-2.3.4+0-47.1.noarch


    Hope this helps?

    Walter

    ---------- Post added ----------

    Sebastian,

    today I found an difference between SUSE and Debian version. On Debian there exists a symlink: "/usr/sbin/z-push-gabsync" on SUSE this symlink do not exist.

    Walter

    ---------- Post added ----------

    Manfred,

    today I modified line 34 as you requested, now gab-sync works in any directory. Thank you.
    On Debian system, there is no need to modify line 34, gab-sync.php works without modification.
    What is wrong on SLES 12 systems?

    Walter
    Regards

    Walter

  9. #9
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    Hi Walter,

    you are right about the difference between debian and suse, in the rpm packages we don't set the symlink. I've created a ticket for this and this will be fixed in 2.3.5: https://jira.z-hub.io/browse/ZP-1137
    If you use the pre-final repository you will get this fix in the next couple of days.

    About the path issue: it's being addressed in https://jira.kopano.io/browse/KC-461 as mentioned before. The current fix version is 8.2.0.

    Cheers,
    Sebastian

  10. #10
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467
    Ticket ZP-1137 is fixed and available in the develop repository (link to z-push-gabsync in RPMs).
    Pre-final repo will follow soon (still waiting on another fix).

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 13-10-2016, 10:05 AM
  2. Kopano OL-Extenions Error
    By retok in forum Outlook client
    Replies: 3
    Last Post: 13-10-2016, 06:52 AM
  3. Z-push 2.3 Beta1, IMAP backend. Alot of warnings about diffstate in the logs
    By Toby in forum Z-Push when using other backends
    Replies: 5
    Last Post: 27-06-2016, 12:44 PM
  4. Replies: 0
    Last Post: 10-06-2016, 07:06 AM
  5. Warnings in z-push.log
    By Jelmerj in forum Z-Push when using Kopano/Zarafa
    Replies: 1
    Last Post: 14-06-2012, 02:10 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
  •