Hi,
I attempted to upgrade to Zimbra 4.5.6 this morning. All went well until the install.sh script attempted to initialize the LDAP service, at which point things went haywire. We're running on RHEL 4 x64. Relevant output from the install script is copied below (long):
--------------------------------------------------------------
The system will be modified. Continue? [N] y
Shutting down zimbra mail
Backing up ldap
Removing existing packages
zimbra-ldap...done
zimbra-logger...done
zimbra-mta...done
zimbra-snmp...done
zimbra-store...done
zimbra-spell...done
zimbra-apache...done
zimbra-core...done
Removing deployed webapp directories
Installing packages
zimbra-core......zimbra-core-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-ldap......zimbra-ldap-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-logger......zimbra-logger-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-mta......zimbra-mta-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-snmp......zimbra-snmp-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-store......zimbra-store-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-apache......zimbra-apache-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
zimbra-spell......zimbra-spell-4.5.6_GA_1023.RHEL4_64-20070627170359.x86_64.rpm...done
Setting defaults from saved config in /opt/zimbra/.saveconfig/config.save
HOSTNAME=*****
LDAPHOST=*****
LDAPPORT=389
SNMPTRAPHOST=*****
SMTPSOURCE=*****
SMTPDEST=*****
SNMPNOTIFY=yes
SMTPNOTIFY=yes
LDAPROOTPW=*****
LDAPZIMBRAPW=*****
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...Restoring backup schedule...done
Operations logged to /tmp/zmsetup.log.411
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
main: TLS init def ctx failed: -1
ERROR - failed to start slapd
Setting defaults...Checking ldap status
Starting ldap
ldap startup failed with exit code 256
main: TLS init def ctx failed: -1
ERROR - failed to start slapd
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
main: TLS init def ctx failed: -1
ERROR - failed to start slapd
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
main: TLS init def ctx failed: -1
ERROR - failed to start slapd
Done
Setting defaults from existing config...Upgrading from 4.5.5_GA_838 to 4.5.6_GA_1023
Stopping zimbra services
Stop failed - exiting
UPGRADE FAILED - exiting
------------------------------------------------------------------
An additional log file, /tmp/zmsetup.log, is mentioned during the install. I've copied the relevant bits of that file below for reference:
------------------------------------------------------------------
Getting installed packages
checking isEnabled zimbra-core
zimbra-core not in enabled cache
enabled packages
Getting local config zimbra_server_hostname
Getting local config ldap_url
zimbra_server_hostname contained in ldap_url checking ldap status
Checking ldap status
*** Running as zimbra user: /opt/zimbra/bin/ldap status
Starting ldap
*** Running as zimbra user: /opt/zimbra/openldap/sbin/slapindex -q -f /opt/zimbra/conf/slapd.conf
could not stat config file "/opt/zimbra/conf/slapd.conf": No such file or directory (2)
slapindex: bad configuration file!
*** Running as zimbra user: /opt/zimbra/libexec/zmldapapplyldif
TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:259
TLS: error:20074002:BIO routines:FILE_CTRL:system lib bss_file.c:261
TLS: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib ssl_rsa.c:691
main: TLS init def ctx failed: -1
ERROR - failed to start slapd
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
ldap_bind: Can't contact LDAP server (-1)
*** Running as zimbra user: /opt/zimbra/bin/ldap status
*** Running as zimbra user: /opt/zimbra/bin/ldap start
TLS: error:02001002:system library:fopen:No such file or directory bss_file.c:259
TLS: error:20074002:BIO routines:FILE_CTRL:system lib bss_file.c:261
TLS: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib ssl_rsa.c:691
main: TLS init def ctx failed: -1
ERROR - failed to start slapd
ldap startup failed with exit code 256
------------------------------------------------------------------
This repeats several times. Are there other log files that I should be looking at? What additional information can I provide to help debug the issue?
Thanks in advance.
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
What does:
ls -l /opt/zimbra/conf/slapd.conf
show?
and
ls -l /opt/zimbra/conf/slapd.crt
ls -l /opt/zimbra/conf/slapd.key
Thanks!
--Quanah
ls -l /opt/zimbra/conf/slapd.conf
show?
and
ls -l /opt/zimbra/conf/slapd.crt
ls -l /opt/zimbra/conf/slapd.key
Thanks!
--Quanah
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
In consultation with Zimbra support, the issue has been resolved. Thanks for your help.
-
- Posts: 1
- Joined: Fri Sep 12, 2014 10:40 pm
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
What was the solution to get 4.5.6 running?
-
- Advanced member
- Posts: 191
- Joined: Fri Sep 12, 2014 10:38 pm
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
[quote user="Daimyo"]In consultation with Zimbra support, the issue has been resolved. Thanks for your help.[/QUOTE]
Probably it would be better if you can share to the community how your problem was resolved.
What do you think?
Thank you in advance for your kindnes...
Probably it would be better if you can share to the community how your problem was resolved.
What do you think?
Thank you in advance for your kindnes...
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
[quote]Probably it would be better if you can share to the community how your problem was resolved.[/quote]
I would be more than happy to share, but the truth is that I don't know exactly what was broken or exactly what was done to fix it. Our Zimbra architecture is clustered across two hosts, and the upgrade was performed while the cluster was inactive (i.e. all Zimbra services were running on just one host, where the upgrade was performed). My understanding is that there were some issues with the slapd.crt and slapd.key files, but the repair work was done remotely by Zimbra support. I still don't know exactly what was done to remedy the problem.
I would be more than happy to share, but the truth is that I don't know exactly what was broken or exactly what was done to fix it. Our Zimbra architecture is clustered across two hosts, and the upgrade was performed while the cluster was inactive (i.e. all Zimbra services were running on just one host, where the upgrade was performed). My understanding is that there were some issues with the slapd.crt and slapd.key files, but the repair work was done remotely by Zimbra support. I still don't know exactly what was done to remedy the problem.
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
Hi! Again here because now I have this error message and the installation cannot continue because this error don't stop.
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
chown: cannot access `/opt/zimbra/tomcat/conf/keystore': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.key': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/slapd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.pem': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.key': No such file or directory
Operations logged to /tmp/zmsetup.log.27145
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Setting defaults...Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Done
Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking for port conflicts
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Thx
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
chown: cannot access `/opt/zimbra/tomcat/conf/keystore': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.key': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/slapd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.pem': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.key': No such file or directory
Operations logged to /tmp/zmsetup.log.27145
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Setting defaults...Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Done
Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking for port conflicts
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Thx
-
- Advanced member
- Posts: 180
- Joined: Fri Sep 12, 2014 10:13 pm
Upgrade: 4.5.5 -> 4.5.6 failed, LDAP/slapd issues
Had the same problem on a Zimbra 4.55 to 4.56 upgrade on a Red Hat 5 server today. The solution was simply to:
vi /etc/sudoers
comment out: #Default requiretty
Run the install.sh again or if the install is still running just wait till the LDAP start command is called again and it should all just start working.
Checking the /tmp/install.log.2309 (Zimbra install / upgrade log) provided the vital information to work out what to do.
(Might be useful if the Zimbra installer did a check for this requirement).
[quote user="gbajczman"]Hi! Again here because now I have this error message and the installation cannot continue because this error don't stop.
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
chown: cannot access `/opt/zimbra/tomcat/conf/keystore': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.key': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/slapd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.pem': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.key': No such file or directory
Operations logged to /tmp/zmsetup.log.27145
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Setting defaults...Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Done
Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking for port conflicts
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Thx[/QUOTE]
vi /etc/sudoers
comment out: #Default requiretty
Run the install.sh again or if the install is still running just wait till the LDAP start command is called again and it should all just start working.
Checking the /tmp/install.log.2309 (Zimbra install / upgrade log) provided the vital information to work out what to do.
(Might be useful if the Zimbra installer did a check for this requirement).
[quote user="gbajczman"]Hi! Again here because now I have this error message and the installation cannot continue because this error don't stop.
Restoring existing configuration file from /opt/zimbra/.saveconfig/config.save...done
chown: cannot access `/opt/zimbra/tomcat/conf/keystore': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.key': No such file or directory
chown: cannot access `/opt/zimbra/conf/smtpd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/slapd.crt': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.pem': No such file or directory
chown: cannot access `/opt/zimbra/conf/perdition.key': No such file or directory
Operations logged to /tmp/zmsetup.log.27145
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Setting defaults...Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Done
Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking for port conflicts
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Checking ldap status
Starting ldap
ldap startup failed with exit code 256
Thx[/QUOTE]