Difference between revisions of "Troubleshooting zimbra issues"
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Troubleshooting zimbra issues]] | |||
==ldap fails to start== | ==ldap fails to start== | ||
If ldap server does not starts and gives this error | |||
<pre> | |||
Failed to start slapd. Attempting debug start to determine error. | |||
bdb_db_close: database "": txn_checkpoint failed: Invalid argument (22). | |||
backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (22) | |||
bdb_db_close: database "": alock_close failed | |||
</pre> | |||
First verify that domain to IP mapping in /etc/hosts file is correct. If domain to IP mapping in /etc/hosts is not correct then Zimbra will not be able to start listening socket on incorrect IP and hence ldap may fail to start. Also zimbra must be stopped before changing machine IP. Then IP should be changed on system and in /etc/hosts. Then zimbra should be started. | |||
If problem is not due to incorrect IP then: | |||
#Login as root | |||
#Go to dir '<tt>/opt/zimbra/data/ldap/hdb/db</tt>' | |||
#Use command '<tt>/opt/zimbra/bdb/bin/db_recover</tt>' | |||
Line 22: | Line 33: | ||
'''The same steps can be used for upgrading Zimbra to a higher version also''' | '''The same steps can be used for upgrading Zimbra to a higher version also''' | ||
==Fixing permisssions on zimbra files== | |||
If permissions on zimbra directory could be wrong then following can be use to fix permissions: | |||
<pre> | |||
chown -R zimbra:zimbra /opt/zimbra | |||
/opt/zimbra/libexec/zmfixperms -verbose -extended | |||
</pre> | |||
==Incoming email from other domains is not getting delivered to Zimbra== | |||
To troubleshoot incoming emails from other domains to Zimbra use following steps: | |||
# Verify DNS MX entries for domain | |||
# Verify Zimbra aliases or domains allow incoming emails for given alias or domain | |||
# Send email to corresponding zimbra user using mail command | |||
# Look at /var/log/zimbra.log if mail was accepted on Zimbra server. Mail not showing here indicates problem with sender. | |||
In case there is issue with sender do following: | |||
# Check /var/log/maillog on the sending machine to see if email was accepted for delivery as per sending machine | |||
# Check "mailq" or "postqueue -p" output | |||
# Check local user mail or various mail queues of postfix on sender to determine problem | |||
# One way of accepting email is to add sending IP address in Zimbra Admin -< Configure -< Global Settings -< MTA -< MTATrusted Networks and save | |||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Troubleshooting zimbra issues]] |
Latest revision as of 10:34, 14 July 2022
Home > CentOS > CentOS 6.x > Troubleshooting zimbra issues
ldap fails to start
If ldap server does not starts and gives this error
Failed to start slapd. Attempting debug start to determine error. bdb_db_close: database "": txn_checkpoint failed: Invalid argument (22). backend_startup_one (type=hdb, suffix=""): bi_db_open failed! (22) bdb_db_close: database "": alock_close failed
First verify that domain to IP mapping in /etc/hosts file is correct. If domain to IP mapping in /etc/hosts is not correct then Zimbra will not be able to start listening socket on incorrect IP and hence ldap may fail to start. Also zimbra must be stopped before changing machine IP. Then IP should be changed on system and in /etc/hosts. Then zimbra should be started.
If problem is not due to incorrect IP then:
- Login as root
- Go to dir '/opt/zimbra/data/ldap/hdb/db'
- Use command '/opt/zimbra/bdb/bin/db_recover'
Complete reinstallation without affecting data
If Zimbra stops working and normal troubleshooting is not working, then we can reinstall zimbra without affecting data using following steps:
- Download the same version of zimbra and extract the contents.
- Run './install.sh -s --platform-override' . The '-s' option is used to reinstall zimbra without touching the data.
- Then run '/opt/zimbra/libexec/zmsetup.pl' script as root to re-initialize the ldap and other settings.
- If permissions could be incorrect then they can be fixed using
- chown -R zimbra:zimbra /opt/zimbra
- /opt/zimbra/libexec/zmfixperms -verbose -extended
The same steps can be used for upgrading Zimbra to a higher version also
Fixing permisssions on zimbra files
If permissions on zimbra directory could be wrong then following can be use to fix permissions:
chown -R zimbra:zimbra /opt/zimbra /opt/zimbra/libexec/zmfixperms -verbose -extended
Incoming email from other domains is not getting delivered to Zimbra
To troubleshoot incoming emails from other domains to Zimbra use following steps:
- Verify DNS MX entries for domain
- Verify Zimbra aliases or domains allow incoming emails for given alias or domain
- Send email to corresponding zimbra user using mail command
- Look at /var/log/zimbra.log if mail was accepted on Zimbra server. Mail not showing here indicates problem with sender.
In case there is issue with sender do following:
- Check /var/log/maillog on the sending machine to see if email was accepted for delivery as per sending machine
- Check "mailq" or "postqueue -p" output
- Check local user mail or various mail queues of postfix on sender to determine problem
- One way of accepting email is to add sending IP address in Zimbra Admin -< Configure -< Global Settings -< MTA -< MTATrusted Networks and save