Error
[Solve problem] zimbra some services are not running
Stopping spell...Failed.Stopping apache...(20014)Internal error (specific information not available): AH00058: Error retrieving pid file /opt/zimbra/log/httpd.pidAH00059: Remove it before continuing if it is corrupted.failed.zimbra@mail:$ rm -rf /opt/zimbra/log/httpd.pidzimbra@mail:$ zmspellctl restartzimbra@mail:$ zmcontrol restart
Starting stats...Failed.Can't kill a non-numeric process ID at /opt/zimbra/bin/zmstatctl line 204.Can't kill a non-numeric process ID at /opt/zimbra/bin/zmstatctl line 207
Look into the dir "/opt/zimbra/zmstat/pid/"
If you have something... rename to ".old" and try to start the service "/opt/zimbra/bin/zmstatctl start"
Zimbra services stop due to stale PID.
SolutionThis can be fix after restart the Zimbra serveices:zmcontrol restart
If you are still facing the same issue then you need to remove it manually. Please follow the below steps to remove it manually
1) Stop the Zimbra services.
su - zimbra zmcontrol stop
2) Check if any process is still running for the 'zimbra' user then kill it.
[Run as ROOT user] ps -elf | grep -i zimbra kill -9 <pid>
3) Check the remove stale PID files.
[Run as ROOT user] ls -ltr /opt/zimbra/log/*.pid rm /opt/zimbra/log/*.pid # Press Y to confirm the file deletion. 4) Now start Zimbra services.
su - zimbra
---------
/etc/rc.d/init.d/zimbra start
/etc/rc.d/init.d/zimbra restart
systemctl status zimbra.service
systemctl restart zimbra.service
systemctl stop zimbra.service
systemctl start zimbra.service
su - zimbra -c "zmcontrol restart"
su - zimbra -c "zmapachectl restart"
su - zimbra
zmmailboxdctl start
zmcontrol status
Step by step guide the solve problem zimbra some services are not running the following:
To restart and enable cron service the permanently.
#service crond restart
#chkconfig crond on
Opening rsyslog.conf file and uncomment the following.
#vim /etc/rsyslog.conf
Uncomment these two lines
$modload imupd
$UDPServerRun514
To restart and enable rsyslog service the permanently.
#service rsyslog restart
#chkconfig rsyslog on
To update /etc/rsyslog.conf file.
#/opt/zimbra/libexec/zmsyslogsetup
Login zimbra account and to run command line the following.
#su zimbra
#zmupdateauthkeys
Running the command line above zimbra ldap server, zimbra mailbox server, zimbra mta server in environment. if error then you can zimbra restart service.
[zimbra@mail]$ zmcontrol status
Host mail.ttdconline.com
amavis Running
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
snmp Running
spell Running
stats Running
zimbra webapp Running
zimbraAdmin webapp Running
zimlet webapp Running
zmconfigd Running
We reviewed logs and services and we see that the MTA is down:
[zimbra@mail]$ tail -f /var/log/mail.log
Jan 22 11:08:00 zcs postfix/postqueue[19195]: fatal: Queue report unavailable – mail system is down
[zimbra@mail]$ netstat -nlpt | grep 25
tcp 0 0 0.0.0.0:7025 0.0.0.0:* LISTEN 19017/java
[zimbra@mail]$ locate master.pid
/opt/zimbra/data/postfix/spool/pid/master.pid
[zimbra@mail]$ zmmtactl stop
[zimbra@mail]$ mv /opt/zimbra/data/postfix/spool/pid/master.pid /opt/zimbra/data/postfix/spool/pid/master.pid_ori
[zimbra@mail]$ zmmtactl start
Rewriting configuration files…done.
Starting saslauthd…already running.
/postfix-script: starting the Postfix mail system
[zimbra@mail]$ postfix reload
/postfix-script: refreshing the Postfix mail system
Zimbra : stats service is not running
chown zimbra:zimbra /opt/zimbra/zmstat/*
# su zimbra $ zmstatctl status $ /cd /opt/zimbra/zmstat/pid/ $ rm zmstat-fd-real.pid $ zmstatctl start $ zmstatctl status
Install Zimbra zimlets failed during installation
# su zimbra
Then, run 2 commands below. It can help you install zimlets.
# cd /opt/zimbra/zimlets
# for A in *; do zmzimletctl deploy $A; done
zmcontrol stop
zmcontrol start
zmcontrol status
Fix errors in Mail Queues in Zimbra Admin
1. Enter the following perinth to generate ssh key and update auth key
1
2
3
su - zimbra
zmsshkeygen
zmupdateauthkeys
Solved : Zimbra Webmail stuck after Login
su - zimbra -c 'zmcontrol stop'
/opt/zimbra/libexec/zmfixperms -e -v
Then perform this command
cd /opt/zimbra/mailboxd
find webapps -type d -exec chmod 0755 {} \;
find webapps -type f -exec chmod 0644 {} \;
su - zimbra -c 'zmcontrol restart'
Please try again to log in to Zimbra webmail.
Update :
If you have a problem when uploading an attachment, please run this command
chown zimbra.zimbra /opt/zimbra/data/tmp
chown zimbra.zimbra /opt/zimbra/data/tmp/upload
chmod 777 /opt/zimbra/data/tmp
chmod 750 /opt/zimbra/data/tmp/upload
When you get this error, you can not execute any Zimbra zmprov commands? in this tutorial, How do i fix error as below
[] INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
[] INFO: Retrying request
ERROR: zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause: java.net.ConnectException Connection refused)
The causes this error?
Zimbra zmprov is not configure to get results from ldap. you need set "zimbra_zmprov_default_to_ldap" to TRUE
To checking setting using by zmlocalconfig command
$ zmlocalconfig | grep zmprov
If set to false then reconfigure it to true flag as below
$ zmlocalconfig -e zimbra_zmprov_default_to_ldap=true
Recheck the settings:
$ zmlocalconfig |grep zmprov
--------