Syntax Error in python-mapi



  • I did the last update from Kopano and discovered the following error:

      Aktualisieren: python-mapi-8.5.2.0-11.1.x86_64                                                                                                       17/60
    /var/tmp/rpm-tmp.sDCIey: Zeile 2: Syntaxfehler beim unerwarteten Wort `then'
    /var/tmp/rpm-tmp.sDCIey: Zeile 2: `if test "$1" -ge 1; then /sbin/service "kopano-dagent" restart; fiif test "$1" -ge 1; then /sbin/service "kopano-spooler" restart; fi'
    Warnung: %post(python-mapi-8.5.2.0-11.1.x86_64) Scriptlet fehlgeschlagen, Beenden-Status 2
    Non-fatal POSTIN scriptlet failure in rpm package python-mapi-8.5.2.0-11.1.x86_64
    

    Also the Startscript for Kopano-Search return not [OK]

    [root@server ~]# /etc/init.d/kopano-search stop
    Stopping kopano-search:                                    [  OK  ]
    [root@server ~]# /etc/init.d/kopano-search start
    Starting kopano-search:
    

    The kopano-presence has the same problem:

    [root@server ~]# /etc/init.d/kopano-presence stop
    Stopping kopano-presence:                                  [  OK  ]
    [root@server ~]# /etc/init.d/kopano-presence start
    Starting kopano-presence:
    
    

    If I take a look into the processlist, both running:

    [root@server ~]# ps aux |grep kopano-search
    kopano   27546  0.0  0.6 407176 20596 ?        Sl   09:20   0:00 /usr/bin/python2 /usr/sbin/kopano-search
    kopano   27548  0.0  0.5 404828 17520 ?        S    09:20   0:00 /usr/bin/python2 /usr/sbin/kopano-search
    kopano   27549  0.0  0.4 407176 15752 ?        S    09:20   0:00 /usr/bin/python2 /usr/sbin/kopano-search
    root     27755  0.0  0.0 103348   880 pts/0    S+   09:25   0:00 grep kopano-search
    
    [root@server ~]# ps aux |grep kopano-presence
    kopano   28013  0.0  0.6 479868 19584 ?        Sl   09:29   0:00 /usr/bin/python2 /usr/sbin/kopano-presence -c /etc/kopano/presence.cfg
    root     28019  0.0  0.0 103348   880 pts/0    S+   09:29   0:00 grep kopano-presence
    

    THX


  • Kopano

    Hi @yythoss ,

    I see you are running an rpm based distro, but which one? Local tests showed no problems when upgrading.



  • Sorry!

    It is CentOS 6

    Linux server 2.6.32-696.20.1.el6.x86_64 #1 SMP Fri Jan 26 17:51:45 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


  • Kopano

    Ok, I was able to reproduce the upgrade issue for python-mapi and created a ticket for this https://jira.kopano.io/browse/KC-1054



  • Today I have install Version 8.5.3.0 and it is the same Error:

      Aktualisieren: python-mapi-8.5.3.0-18.1.x86_64                                                                                                                                                         22/76
    /var/tmp/rpm-tmp.CGcJwu: Zeile 2: Syntaxfehler beim unerwarteten Wort `:'
    /var/tmp/rpm-tmp.CGcJwu: Zeile 2: `if test "$1" -ge 1; then /sbin/service "kopano-dagent" restart; fi : # rpm expansion guard'
    Warnung: %post(python-mapi-8.5.3.0-18.1.x86_64) Scriptlet fehlgeschlagen, Beenden-Status 2
    Non-fatal POSTIN scriptlet failure in rpm package python-mapi-8.5.3.0-18.1.x86_64
    


  • After last Update, everything works fine.
    THX


Log in to reply