Faruque Ahmed : MCP, MCSA, MCSE, MCTS, MCIT, CCNA, OCA, OCP, GCP
Zimbra services stop due to stale PID.
SolutionThis can be fix after restart the Zimbra serveices:---------
/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
chown zimbra:zimbra /opt/zimbra/zmstat/*
# su zimbra $ zmstatctl status $ /cd /opt/zimbra/zmstat/pid/ $ rm zmstat-fd-real.pid $ zmstatctl start $ zmstatctl status
# 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
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
--------