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
Post
by packetdog » Sat Apr 06, 2019 11:35 am
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.
axslingr
Outstanding Member
Posts: 256 Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18
Post
by axslingr » Sat Apr 06, 2019 1:49 pm
Kind of makes you wonder how that got past QC.
Lance
nowrap
Posts: 7 Joined: Sat Sep 13, 2014 12:21 am
Post
by nowrap » Sat Apr 06, 2019 4:39 pm
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
Post
by maxim_al » Mon Apr 08, 2019 5:40 am
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
Posts: 27278 Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England
Post
by phoenix » Mon Apr 08, 2019 6:24 am
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)?
maxim_al
Posts: 4 Joined: Mon Apr 08, 2019 5:34 am
Post
by maxim_al » Mon Apr 08, 2019 6:43 am
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
Post
by nowrap » Mon Apr 08, 2019 8:22 am
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
Post
by maxim_al » Mon Apr 08, 2019 10:25 pm
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
Post
by ponty » Fri Apr 12, 2019 5:11 am
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
Post
by nowrap » Mon Apr 22, 2019 2:21 pm
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