ZCS 8.0.x to 8.6 upgrade fail due to slapd pid location change: Difference between revisions
(Created page with "{{BC|Certified}} __FORCETOC__ <div class="col-md-12 ibox-content"> =ZCS 8.0.x to 8.6 upgrade fail due to slapd pid location change= {{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8...") |
|||
Line 25: | Line 25: | ||
1. Create a symlink from the old location to the new: | 1. Create a symlink from the old location to the new: | ||
ln -s /opt/zimbra/data/ldap/state/run /opt/zimbra/openldap/var/run | ln -s /opt/zimbra/data/ldap/state/run /opt/zimbra/openldap/var/run | ||
2. Start ldap: | 2. Start ldap and make sure the installation completes successfully: | ||
ldap start | ldap start | ||
3. After the installation, remove the symlink: | 3. After the installation, remove the symlink: |
Revision as of 11:37, 31 May 2016
ZCS 8.0.x to 8.6 upgrade fail due to slapd pid location change
Problem
ZCS upgrade from 8.0.8 to 8.6 stops with the following error:
Restoring existing configuration file from /opt/zimbra/.saveconfig/localconfig.xml...done Operations logged to /tmp/zmsetup08142014-140153.log Upgrading from 8.0.8_GA_6152 to 8.6.0_BETA1_1002 Stopping zimbra services...done. This appears to be 8.0.8_GA Starting mysql...done. Checking ldap status...not running. Checking ldap status...not running. Starting ldap...failed with exit code: 256. UPGRADE FAILED - exiting.
In the /tmp/zmsetup.log file we see more:
unable to open pid file "/opt/zimbra/openldap/var/run/slapd.pid": 2 (No such file or directory)
Resolution
1. Create a symlink from the old location to the new:
ln -s /opt/zimbra/data/ldap/state/run /opt/zimbra/openldap/var/run
2. Start ldap and make sure the installation completes successfully:
ldap start
3. After the installation, remove the symlink:
unlink /opt/zimbra/openldap/var/run
Additional Content
This error is caused because the /opt/zimbra/.install_history file was left behind by previous installations. To uninstall zimbra:
./install.sh -u rm -rf /opt/zimbra
Bug: https://bugzilla.zimbra.com/show_bug.cgi?id=94980 provides more information.