Results 1 to 8 of 8

Thread: Failed to switch servers

  1. #1
    smk
    smk is offline Junior Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    7

    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.

  2. #2
    jhahm is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    57
    Rep Power
    9

    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!

  3. #3
    smk
    smk is offline Junior Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    7

    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
    *********

  4. #4
    smk
    smk is offline Junior Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    7

    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.

  5. #5
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    yep, you can replace localconfig.xml

  6. #6
    smk
    smk is offline Junior Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    7

    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.

  7. #7
    pshao is offline Zimbra Employee
    Join Date
    Jul 2008
    Posts
    1
    Rep Power
    7

    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)

  8. #8
    smk
    smk is offline Junior Member
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    7

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  2. upgrading from 5.0.4 to 5.0.5 opensource
    By smoke in forum Installation
    Replies: 4
    Last Post: 10-19-2008, 10:38 AM
  3. Problem with Mail Server - Need help!
    By joeleo in forum Installation
    Replies: 2
    Last Post: 03-04-2008, 12:03 PM
  4. My Zimbra server down ... please help :)
    By frankb in forum Administrators
    Replies: 2
    Last Post: 12-12-2007, 11:29 AM
  5. Lotus migration
    By babou in forum Migration
    Replies: 15
    Last Post: 03-05-2007, 10:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •