Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Ask questions about your setup or get help installing ZCS server (ZD section below).
packetdog
Posts: 4
Joined: Thu Apr 04, 2019 5:10 pm

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by packetdog »

I thought I would add, literally changing the line:

Code: Select all

      s|(^destination mail [b]{[/b] file\("/var/log/mail"\); };)|#$1|;
to:

Code: Select all

      s|(^destination mail [b]\{[/b] file\("/var/log/mail"\); };)|#$1|;
...corrected this for me. This is line 190 in the file /opt/zimbra/libexec/zmsyslogsetup. It seems like it's due to more restrictive Perl code than anything in Zimbra.
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by axslingr »

Kind of makes you wonder how that got past QC.

Lance
nowrap
Posts: 7
Joined: Sat Sep 13, 2014 12:21 am

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by nowrap »

zmstat-io is running on high cpu and io wa loads.

It's logging this many times a second:
Use of uninitialized value $line in pattern match (m//) at /opt/zimbra/libexec/zmstat-io line 76
maxim_al
Posts: 4
Joined: Mon Apr 08, 2019 5:34 am

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by maxim_al »

nowrap wrote:zmstat-io is running on high cpu and io wa loads.

It's logging this many times a second:
Use of uninitialized value $line in pattern match (m//) at /opt/zimbra/libexec/zmstat-io line 76
I have this problem also.
How is it fix?
phoenix
Ambassador
Ambassador
Posts: 27272
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by phoenix »

maxim_al wrote:
nowrap wrote:zmstat-io is running on high cpu and io wa loads.

It's logging this many times a second:
Use of uninitialized value $line in pattern match (m//) at /opt/zimbra/libexec/zmstat-io line 76
I have this problem also.
How is it fix?
Did you not see the fix for this problem at the top of the page (two posts above yours)?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
maxim_al
Posts: 4
Joined: Mon Apr 08, 2019 5:34 am

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by maxim_al »

phoenix wrote:Did you not see the fix for this problem at the top of the page (two posts above yours)?
I'm sorry, but I don't understand, what is message that fix my problem?
nowrap
Posts: 7
Joined: Sat Sep 13, 2014 12:21 am

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by nowrap »

The provided regex fix is for the syslog install error not for the zmstat-io error.
Right now i just stopped the zmstat as zimbra user.
maxim_al
Posts: 4
Joined: Mon Apr 08, 2019 5:34 am

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by maxim_al »

nowrap wrote:Right now i just stopped the zmstat as zimbra user.
How you do it?

Updated:
I'm find it, sorry

PS I cannot delete my post...
ponty
Posts: 3
Joined: Tue Jan 08, 2019 9:29 pm

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by ponty »

Regarding the zmstat.out messages that are filling up your hard drive, "Use of uninitialized value $line in pattern match (m//) at /opt/zimbra/libexec/zmstat-io line 76" ...

I'm not sure if this will break anything else, as I'm really not an expert. However, after reviewing the output of iostat that's ready by zmstat-io, (/opt/zimbra/libexec/zmstat-io) I noticed that "Device" in the iostat output doesn't contain a ":" as it appears to be looking for in the script (Device:). So here's what I did--it at least stopped the messages from filling up the zmstat.out file that quickly fills up the hard drive:

login as zimbra and stop zmstat: zmstatctl stop
edit /opt/zimbra/libexec/zmstat-io
replace all "Device:" with "Device" (in vi, put ":%s/Device:/Device/g" without quotes) and save.
delete the /opt/zimbra/zmstat/zmstat.log file that is probably huge.
restart zmstat: zmstatctl start
Offending, space-filling messages should be all gone!

I hope this helps. Let me know what you think.

Ponty
Last edited by ponty on Fri Jul 26, 2019 6:09 pm, edited 1 time in total.
nowrap
Posts: 7
Joined: Sat Sep 13, 2014 12:21 am

Re: Installing Zimbra 8.8.12_GA_3794 on Ubuntu 18.04

Post by nowrap »

Wanted to try the zmstat-io changes today, but:

Updating the ssl/tls cert seems not to work as before anymore:

Code: Select all

su - zimbra -c '/opt/zimbra/bin/zmcertmgr deploycrt comm ssl/letsencrypt/cert.pem ssl/letsencrypt/chain_x3.pem'
** Verifying 'ssl/letsencrypt/cert.pem' against '/opt/zimbra/ssl/zimbra/commercial/commercial.key'
Certificate 'ssl/letsencrypt/cert.pem' and private key '/opt/zimbra/ssl/zimbra/commercial/commercial.key' match.
** Verifying 'ssl/letsencrypt/cert.pem' against 'ssl/letsencrypt/chain_x3.pem'
Valid certificate chain: ssl/letsencrypt/cert.pem: OK
** Copying 'ssl/letsencrypt/cert.pem' to '/opt/zimbra/ssl/zimbra/commercial/commercial.crt'
** Copying 'ssl/letsencrypt/chain_x3.pem' to '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt'
** Appending ca chain 'ssl/letsencrypt/chain_x3.pem' to '/opt/zimbra/ssl/zimbra/commercial/commercial.crt'
** Importing cert '/opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt' as 'zcs-user-commercial_ca' into cacerts '/opt/zimbra/common/lib/jvm/java/lib/security/cacerts'
ERROR: cacerts keytool(-delete -alias zcs-user-commercial_ca) returned non-zero(1):
Warning: use -cacerts option to access cacerts keystore
keytool error: java.io.EOFException: Detect premature EOF
ERROR: cacerts keytool(-import -alias zcs-user-commercial_ca -noprompt -file /opt/zimbra/ssl/zimbra/commercial/commercial_ca.crt) returned non-zero(1):
Warning: use -cacerts option to access cacerts keystore
keytool error: java.io.EOFException: Detect premature EOF
Post Reply