[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Ask questions about your setup or get help installing ZCS server (ZD section below).
245centrex
Advanced member
Advanced member
Posts: 96
Joined: Fri Sep 12, 2014 10:42 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by 245centrex »

I just upgraded from 4.5.6 to 4.5.7, specifically I am now running 4.5.7_GA_1319.RHEL4_64_20070914213443 CentOS4_64 FOSS edition.
Things went smooth and there were no errors during the upgrade.
Only problem I have come across so far is that when I log in as admin and check service status, stats service is showing as not running ( red X graphic next to the service ).
Interestingly:
[zimbra@zcs ~]$ zmcontrol status

Host mail.foo.bar

antispam Running

antivirus Running

imapproxy Running

ldap Running

logger Running

mailbox Running

mta Running

snmp Running

spell Running

stats Running

I found a thread http://www.zimbra.com/forums/administra ... rvice.html where people discussed stats service issues on 5.0 beta which has the same symptoms as my issue, albeit involving a different ZCS version.
The symlink solution they suggested here http://www.zimbra.com/forums/installati ... #post55715 I don't think is relevant to my system because the two directories they link together in that solution already exist on my system and are populated.



[zimbra@zcs ~]$ file /opt/zimbra/zimbramon/rrdtool/bin

/opt/zimbra/zimbramon/rrdtool/bin: directory
[zimbra@zcs ~]$ file /opt/zimbra/zimbramon/rrdtool-1.0.49/bin

/opt/zimbra/zimbramon/rrdtool-1.0.49/bin: directory
[zimbra@zcs ~]$ ll /opt/zimbra/zimbramon/rrdtool-1.0.49/bin

total 940

lrwxrwxrwx 1 root root 40 Sep 19 15:02 bin -> /opt/zimbra/zimbramon/rrdtool-1.0.49/bin

-rwxr-xr-x 1 root root 424144 Aug 3 05:12 rrdcgi

-rwxr-xr-x 1 root root 459954 Aug 3 05:12 rrdtool

-rwxr-xr-x 1 root root 32462 Aug 3 05:12 rrdupdate

-rwxr-xr-x 1 root root 29539 Aug 3 05:12 trytime
[zimbra@zcs ~]$ ll /opt/zimbra/zimbramon/rrdtool/bin

total 940

lrwxrwxrwx 1 root root 40 Sep 19 15:02 bin -> /opt/zimbra/zimbramon/rrdtool-1.0.49/bin

-rwxr-xr-x 1 root root 424144 Aug 3 05:12 rrdcgi

-rwxr-xr-x 1 root root 459954 Aug 3 05:12 rrdtool

-rwxr-xr-x 1 root root 32462 Aug 3 05:12 rrdupdate

-rwxr-xr-x 1 root root 29539 Aug 3 05:12 trytime


In my zimbra.log I see weird things happening in relation to the stats service.
without any errors, it sometimes shows as running and sometimes shows as stopped. I have run
tail -f /var/log/zimbra.log and captured the output over a period of several minutes. It will show stats: Running and stats: Stopped at will.
Here's an excerpt, I only removed lines relating to mail delivery from the log:



Sep 19 15:00:11 zcs zmtomcatmgr[13459]: status requested

Sep 19 15:00:11 zcs zmtomcatmgr[13459]: status OK

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: antispam: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: antivirus: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: imapproxy: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: ldap: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: logger: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: mailbox: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: mta: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: snmp: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: spell: Running

Sep 19 15:00:11 zcs zimbramon[13057]: 13057:info: 2007-09-19 15:00:01, STATUS: zcs.domain.com: stats: Stopped

Sep 19 15:01:35 zcs zmtomcatmgr[14486]: status requested

Sep 19 15:01:35 zcs zmtomcatmgr[14486]: status OK

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: antispam: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: antivirus: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: imapproxy: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: ldap: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: logger: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: mailbox: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: mta: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: snmp: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: spell: Running

Sep 19 15:01:36 zcs zimbramon[13772]: 13772:info: 2007-09-19 15:01:29, STATUS: zcs.domain.com: stats: Running

Sep 19 15:02:06 zcs zmtomcatmgr[14998]: status requested

Sep 19 15:02:06 zcs zmtomcatmgr[14998]: status OK

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: antispam: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: antivirus: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: imapproxy: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: ldap: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: logger: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: mailbox: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: mta: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: snmp: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: spell: Running

Sep 19 15:02:06 zcs zimbramon[14788]: 14788:info: 2007-09-19 15:02:01, STATUS: zcs.domain.com: stats: Stopped
Has anyone else upgraded their 4.5.6 to 4.5.7 and seen the same issue ? Any ideas where to look next ?
Edit: I tried service zimbra stop;service zimbra start. I also rebooted the server to no avail. Since posting this thread, I am still monitoring zimbra.log and it's now consistently showing stats: Stopped every single time.
hogne
Posts: 9
Joined: Fri Sep 12, 2014 10:43 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by hogne »

I got the exact same problem with zcs-4.5.7_GA_1319.UBUNTU6.tgz running on Ubuntu 6.06.1 Server Edition (i386).
245centrex
Advanced member
Advanced member
Posts: 96
Joined: Fri Sep 12, 2014 10:42 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by 245centrex »

[quote user="hogne"]I got the exact same problem with zcs-4.5.7_GA_1319.UBUNTU6.tgz running on Ubuntu 6.06.1 Server Edition (i386).[/QUOTE]


Where you running 4.5.6 previously without any drama ?
hogne
Posts: 9
Joined: Fri Sep 12, 2014 10:43 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by hogne »

[quote user="245centrex"]Where you running 4.5.6 previously without any drama ?[/QUOTE]
This was a new clean install.
245centrex
Advanced member
Advanced member
Posts: 96
Joined: Fri Sep 12, 2014 10:42 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by 245centrex »

[quote user="hogne"]This was a new clean install.[/QUOTE]
Maybe a different issue then ?!
Did you look at the two links I referenced in my original post? Perhaps the suggestions in these two threads could work for you.

http://www.zimbra.com/forums/installati ... #post55715
http://www.zimbra.com/forums/administra ... rvice.html"
hogne
Posts: 9
Joined: Fri Sep 12, 2014 10:43 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by hogne »

[quote user="245centrex"]Maybe a different issue then ?!
Did you look at the two links I referenced in my original post? Perhaps the suggestions in these two threads could work for you.

http://www.zimbra.com/forums/installati ... #post55715[/QUOTE have looked at those threads and that is not the problem. My /opt/zimbra/zimbramon/rrdtool/bin is populated just as yours are. Otherwise my problem are identical to yours.
zmcontrol status shows stats to be running, the web interface and /var/log/zimbra.log shows it not to be running. I get no stats generated in the web admin interface. Something seems broken in 4.5.7 independent of any potential upgrade problems.
245centrex
Advanced member
Advanced member
Posts: 96
Joined: Fri Sep 12, 2014 10:42 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by 245centrex »

[quote user="hogne"]I have looked at those threads and that is not the problem. My /opt/zimbra/zimbramon/rrdtool/bin is populated just as yours are. Otherwise my problem are identical to yours.
zmcontrol status shows stats to be running, the web interface and /var/log/zimbra.log shows it not to be running. I get no stats generated in the web admin interface. Something seems broken in 4.5.7 independent of any potential upgrade problems.[/QUOTE]
I was secretly hoping that :)
It signifies that we are onto something and it's probably not just my individual install.
I will poke around tomorrow and see if I can find any cause. Will let you know if I find anything meaningful.
CrypTom
Posts: 34
Joined: Fri Sep 12, 2014 10:15 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by CrypTom »

I've got exactly the same behavior
- red cross next to the stats service in the admin webinterface

- 'zmcontrol status' tells that every service is running

- graphs are not updated
after my upgrade from 4.5.6 build 1044 Ubuntu6 on Ubuntu Server 7.04 (feisty) to 4.5.7 build 1319 Ubuntu6.
I realized that the stats are still gathered. I ran a 'zmgengraphs' and the graphs were updated with reasonable values.
I tried to manually start (or stop, then start) 'zmstatsctl' without success.
Any solutions in the meantime?
Tom
aabreu2005
Posts: 32
Joined: Fri Sep 12, 2014 10:10 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by aabreu2005 »

[quote user="CrypTom"]I've got exactly the same behavior
- red cross next to the stats service in the admin webinterface

- 'zmcontrol status' tells that every service is running

- graphs are not updated
after my upgrade from 4.5.6 build 1044 Ubuntu6 on Ubuntu Server 7.04 (feisty) to 4.5.7 build 1319 Ubuntu6.
I realized that the stats are still gathered. I ran a 'zmgengraphs' and the graphs were updated with reasonable values.
I tried to manually start (or stop, then start) 'zmstatsctl' without success.
Any solutions in the meantime?
Tom[/QUOTE]
Here it did not decide, I find that it is BUG as well as that they had been not yet decidedÂ…
245centrex
Advanced member
Advanced member
Posts: 96
Joined: Fri Sep 12, 2014 10:42 pm

[SOLVED] Upgrade from 4.5.6 CE to 4.5.7 CE: stats service shown as stopped

Post by 245centrex »

When I run zmgengraphs, it does populate all the graphs except what's under the "Anti-Spam/Anti-Virus Activity" tab. Not sure if it's failure to generate graphs based on amavisd data is a separate issue or related.
Edit: The bug I logged turned out to be a dupe of an already existing bug report #17977. Please use this link: Bug 17977 - Server Status in admin console shows incorrect info.
Post Reply