cronjob not running (no $TERM) after upgrade to 1.8.13
Results 1 to 5 of 5

Thread: cronjob not running (no $TERM) after upgrade to 1.8.13

  1. #1
    Senior Member
    Join Date
    Oct 2013
    Posts
    70

    cronjob not running (no $TERM) after upgrade to 1.8.13

    I had a cronjob that executes the following commands every night and captures the output in a file
    su -c "/opt/zimbra/bin/zxsuite core getVersion" - zimbra
    su -c "/opt/zimbra/bin/zxsuite core getProperty" - zimbra
    su -c "/opt/zimbra/bin/zxsuite backup getProperty" - zimbra
    su -c "/opt/zimbra/bin/zxsuite mobile getProperty" - zimbra
    su -c "/opt/zimbra/bin/zxsuite powerstore getProperty" - zimbra
    su -c "/opt/zimbra/bin/zxsuite admin getProperty" - zimbra
    After upgrading to 1.8.13 I get the following error
    tput: No value for $TERM and no -T specified
    java.lang.NumberFormatException: For input string: "core"
    at java.lang.NumberFormatException.forInputString ( NumberFormatException.java:65 )
    at java.lang.Integer.parseInt ( Integer.java:492 )
    at java.lang.Integer.valueOf ( Integer.java:582 )
    at com.zextras.zxcli.ZxCommand.setWidth ( ZxCommand.java:83 )
    at com.zextras.zxcli.ZxCLI.mainCLI ( ZxCLI.java:93 )
    at com.zextras.zxcli.ZxSuiteCLI.main ( ZxSuiteCLI.java:12 )
    at sun.reflect.NativeMethodAccessorImpl.invoke0 ( NativeMethodAccessorImpl.java:-2 ) [native]
    at sun.reflect.NativeMethodAccessorImpl.invoke ( NativeMethodAccessorImpl.java:57 )
    at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java:43 )
    at java.lang.reflect.Method.invoke ( Method.java:601 )
    at com.martiansoftware.nailgun.NGSession.runSession ( NGSession.java:338 )
    at com.martiansoftware.nailgun.NGSession.run ( NGSession.java:185 )
    ...

  2. #2
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Hello stsimb!

    The issue you report is being analyzed by our Dev team, in the meantime in order for the 'zxsuite' command to properly work please change line 35 of the /opt/zimbra/bin/zxsuite file from:
    Code:
    TPUT_EXISTS=$?
    to:
    Code:
    TPUT_EXISTS=1

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  3. #3
    Senior Member
    Join Date
    Oct 2013
    Posts
    70
    Thanks, the workaround got the results back.

    ... and congrats on the huge speed improvement for both cli and web interface, it is very noticeable

  4. #4
    Senior Member
    Join Date
    Oct 2013
    Posts
    70
    Last night I upgraded from 1.8.13 to 1.8.15 and this error came up again.

    I manually edited /opt/zimbra/bin/zxsuide and set TPUT_EXISTS=1 to fix it again..
    Last edited by stsimb; 05-22-2014 at 08:05 AM.

  5. #5
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Hello stsimb!

    The issue has been found and resolved, the fix will be released in ZeXtras Suite 1.8.16...

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

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
  •