Bombardare per la pace è un po’ come trombare per la verginità…

Reset Zimbra logger after an upgrade

After the upgrade my Zimbra stats and graphs didn’t work any more. After some searches i found the right solution:

Log in and stop zimbra process:

su zimbra
zmcontrol stop

Change user:

su root

Checked for processes and killed what was left running:

ps auxww | grep zimbra
ps auxww | grep mysql

Remove old data:

rm -rf /opt/zimbra/logger/db/

Setup directories with correct permissions and access:

mkdir /opt/zimbra/logger/db/
chown -R zimbra:zimbra /opt/zimbra/logger/db/
chmod -R 775 /opt/zimbra/logger/db/

Reset password and database:

/opt/zimbra/libexec/zmloggerinit

Change user:

su zimbra

Start Zimbra:

zmcontrol start

This process has only one inconvenient: the old stats are lost…. :(