Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-2008, 03:31 PM
smk smk is offline
Junior Member
 
Posts: 5
Post Failed to switch servers

I have been testing Zimbra disaster recovery(changing servers) and failed to restoring backup.
"zmrestoreoffline -sys -a all -c -br" doen't restore backup from old server (it ended with no error/restore complete messages). When I start zimbra with "zmcontrol start" command, LDAP service started with following message:
"Unable to determine enabled services from ldap. Enabled services read from cache. Service list may be inaccurate." So I reset LDAP password (also reset mysql & logger db) then redo from ldap restore, but no luck...

During zmrestoreldap, there is warning :
bdb_db_open: Warning - No DB_CONFIG file found in directory
/opt/zimbra/openldap-data: (2)
Expect poor performance for suffix .

Is this related to the problem I have? Is there any solution?

Addition :
Installed the same ZCS release on both servers
(zcs-NETWORK-5.0.6_GA_2313.RHEL5.20080522094306)
Both severes are configured with same ip address, hostname, spam and non-spam training acct names, etc.
as from Admin Guide. ZCSLicense (currently it's trial version) was copied from old to new server,
and it was installed during zimbra configuration.

Please help.

Last edited by smk; 06-25-2008 at 03:42 PM..
Reply With Quote
  #2 (permalink)  
Old 06-25-2008, 11:31 PM
Zimbra Employee
 
Posts: 57
Default

Is there any useful info in /opt/zimbra/log/mailbox.log? zmrestoreoffline sends most of its log output there.

I believe the "No DB_CONFIG" warning is only a warnin, not a cause for restore failure.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 06-26-2008, 08:50 AM
smk smk is offline
Junior Member
 
Posts: 5
Default 'Config initialization failed' in mailbox.log

Thanks much for reply.
yes, there is 'Config initialization failed' in mailbox.log when I do
'zmrestoreoffline -sys -a all -c -br'

*********
2008-06-25 16:44:30,084 FATAL [main] [] system - Config initialization failed
com.zimbra.common.service.ServiceException: system failure: ZimbraLdapContext
ExceptionId:main:1214437470084:5bd5d28d64b5baac
Code:service.FAILURE
at com.zimbra.common.service.ServiceException.FAILURE (ServiceException.java:253)
at com.zimbra.cs.account.ldap.ZimbraLdapContext.(ZimbraLdapContext.java:253)
at com.zimbra.cs.account.ldap.ZimbraLdapContext.(ZimbraLdapContext.java:222)
at com.zimbra.cs.account.ldap.ZimbraLdapContext.(ZimbraLdapContext.java:215)
at com.zimbra.cs.account.ldap.LdapProvisioning.getSer verByName(LdapProvisioning.java:2205)
at com.zimbra.cs.account.ldap.LdapProvisioning.getSer verByName(LdapProvisioning.java:2194)
at com.zimbra.cs.account.ldap.LdapProvisioning.getLoc alServer(LdapProvisioning.java:2578)
at com.zimbra.cs.util.Config.init(Config.java:78)
at com.zimbra.cs.util.Config.initConfig(Config.java:8 9)
at com.zimbra.cs.util.Config.getString(Config.java:10 1)
at com.zimbra.cs.db.Versions.checkDBVersion(Versions. java:77)
at com.zimbra.cs.db.Versions.checkVersions(Versions.j ava:73)
at com.zimbra.cs.util.Zimbra.startup(Zimbra.java:156)
at com.zimbra.cs.util.Zimbra.startupCLI(Zimbra.java:1 33)
at com.zimbra.cs.backup.RestoreOfflineUtil.setup(Rest oreOfflineUtil.java:101)
at com.zimbra.cs.backup.RestoreOfflineUtil.main(Resto reOfflineUtil.java:46)
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid Credentials]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.jav a:2985)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCt x.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCt x.java:2732)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:264 6)
at com.sun.jndi.ldap.LdapCtx.(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapC txFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Ldap CtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstanc e(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext (LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.ja va:223)
at javax.naming.ldap.InitialLdapContext.(InitialLdapContext.java:134)
at com.zimbra.cs.account.ldap.ZimbraLdapContext.(ZimbraLdapContext.java:237)
... 14 more
*********
Reply With Quote
  #4 (permalink)  
Old 06-30-2008, 07:19 PM
smk smk is offline
Junior Member
 
Posts: 5
Post

I have been searching solutions to resolve my restore error, but not able to find answer so far beside resetting ldap, mysql & logger password.
I tried to reset them to the one I set as admin password during zimbra installation since I remember this way worked when I tested on ZCS4 a year back.
However I still see the same LDAP error this time with ZCS5 in mailbox.log and see message
"Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate."
when I start with zmcontrol command.
Should I reset with the same passwords from old server?
If so, can I do just copy localconfig.xml (only necessary passwords or file itself) from old server to the new server?
I do not know their old passwords since I did not set during configuration of the old server.
I appreciate your advice!

Last edited by smk; 06-30-2008 at 07:21 PM..
Reply With Quote
  #5 (permalink)  
Old 07-01-2008, 08:50 AM
Former Zimbran
 
Posts: 5,606
Default

yep, you can replace localconfig.xml
Reply With Quote
  #6 (permalink)  
Old 07-01-2008, 10:17 AM
smk smk is offline
Junior Member
 
Posts: 5
Post

Thank much for your advice.

I replaced localconfig.xml from old server, then redo
------------------------------------------------------------------------
rm -rf /opt/zimbra/db/data/*
zmrestoreldap -lb full-20080625.165013.495 (latest full backup)
(there is the same warning - No DB_CONFIG file.. but it has done anyway)
zmconvertctl start
zmrestoreoffline -sys -a all -c -br

*** I Skipped '/opt/zimbra/libexec/zmmyinit' this time to avoid resetting mysql password to the random passwords.
------------------------------------------------------------------------
then it stopped with below warning :
"log4j:WARN No appenders could be found for logger (zimbra.misc)."
"log4j:WARN Please initialize the log4j system properly."
I saw some postings say it just warnings, however process has stopped and there is no mailbox.log in /opt/zimbra/log to check what the problem is..

Appreciate some advices.
Reply With Quote
  #7 (permalink)  
Old 07-01-2008, 02:42 PM
Zimbra Employee
 
Posts: 1
Default

The original error for zmrestoreoffline is because the password for LDAP admin was wrong. Try restoring to the current localconfig.xml and use zmldappasswd to modify the LDAP password used by zmrestoreoffline (and all other CLI utils).

zmldappasswd {newpassword}
(do not give any option)
Reply With Quote
  #8 (permalink)  
Old 07-01-2008, 06:30 PM
smk smk is offline
Junior Member
 
Posts: 5
Default

thanks much for your comment regarding ldap error.

I noticed mailbox.log is not available if I install ZCS following guidance from wiki (Network Edition Disaster Recovery - Zimbra :: Wiki).
So I reinstall ZCS again with Admin guide, now I am able to see mailbox.log.

LDAP error seems to get cleared after I replace localconfig.xml, but now I faced new errors - logger & mailbox doesn't start when zmcontrol start.
It seems have been discussed in forums many times, hopefully will be able to find some solution.

thanks anyway.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.