Results 1 to 5 of 5

Thread: After backup and restore "Starting ldap...failed with exit code 256"

  1. #1
    deuscapturus is offline New Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    6

    Unhappy After backup and restore "Starting ldap...failed with exit code 256"

    I followed a wiki article on how to backup and restore zimbra open source edition.

    I backed up my /opt/zimbra directory installed my new system with all of the same network information. installed a "dummy version" of the same zimbra edition as I had before. And then removed that dummy version and replaced it with my zimbra directory that I had backed up.

    Below is the resulting output from the end of the upgrade procedure.

    Please help. My company isn't functioning while this is down.

    zmsetup.07092009-004527.log >>

    Thu Jul 9 00:45:27 2009 Operations logged to /tmp/zmsetup.07092009-004527.log
    Thu Jul 9 00:45:27 2009 Getting installed packages
    Thu Jul 9 00:45:29 2009 Getting local config zimbra_server_hostname
    Thu Jul 9 00:45:29 2009 Getting local config ldap_url
    Thu Jul 9 00:45:30 2009 zimbra_server_hostname contained in ldap_url checking ldap status
    Thu Jul 9 00:45:30 2009 Checking ldap status.
    Thu Jul 9 00:45:30 2009 *** Running as zimbra user: /opt/zimbra/bin/ldap status
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    Thu Jul 9 00:45:30 2009 Starting ldap...
    Thu Jul 9 00:45:30 2009 *** Running as zimbra user: /opt/zimbra/sleepycat/bin/db_recover -h /opt/zimbra/openldap-data
    Thu Jul 9 00:45:30 2009 *** Running as zimbra user: /opt/zimbra/libexec/zmldapapplyldif
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    IO::Socket::INET: connect: Connection refused at /opt/zimbra/libexec/zmldapapplyldif line 145.
    Thu Jul 9 00:46:12 2009 *** Running as zimbra user: /opt/zimbra/bin/ldap status
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    Thu Jul 9 00:46:13 2009 *** Running as zimbra user: /opt/zimbra/bin/ldap start
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    Failed to start slapd. Attempting debug start to determine error.

    Thu Jul 9 00:46:52 2009 failed with exit code 256.
    Thu Jul 9 00:48:30 2009 checking isEnabled zimbra-core
    Thu Jul 9 00:48:30 2009 zimbra-core not in enabled cache
    Thu Jul 9 00:48:30 2009 enabled packages
    Thu Jul 9 00:48:30 2009 zimbra_server_hostname contained in ldap_url checking ldap status
    Thu Jul 9 00:48:30 2009 Checking ldap status.
    Thu Jul 9 00:48:30 2009 *** Running as zimbra user: /opt/zimbra/bin/ldap status
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    Thu Jul 9 00:48:31 2009 Starting ldap...
    Thu Jul 9 00:48:31 2009 *** Running as zimbra user: /opt/zimbra/sleepycat/bin/db_recover -h /opt/zimbra/openldap-data
    Thu Jul 9 00:48:31 2009 *** Running as zimbra user: /opt/zimbra/libexec/zmldapapplyldif
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    IO::Socket::INET: connect: Connection refused at /opt/zimbra/libexec/zmldapapplyldif line 145.
    Thu Jul 9 00:49:13 2009 *** Running as zimbra user: /opt/zimbra/bin/ldap status
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    Thu Jul 9 00:49:14 2009 *** Running as zimbra user: /opt/zimbra/bin/ldap start
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    /opt/zimbra/bin/ldap: line 59: kill: (7958) - No such process
    sudo: sorry, you must have a tty to run sudo
    Failed to start slapd. Attempting debug start to determine error.

  2. #2
    deuscapturus is offline New Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    6

    Lightbulb [FIXED] Tips for Resolving this restore issu and others like it for Zimbra OS edition

    I've been awake for the last 30 hours trying to fix my company email after a server crash reinstall and restore. I backed up and restored the entire /opt/zimbra directory using the method described in many different places.

    Here are the lessons I have learned:

    1. Zimbra for Fedora Core 7 will NOT run on Fedora 10 or 11! I did however get it to run on Fedora 8.
    2. Install the dummy version of Zimbra first before replacing it with the backup
    3. Kill the firewall.
    4. Make sure sendmail isn't running.
    5. Run /opt/zimbra/libexec/zmfixperms as root after restoring. But this IS NOT ENOUGH. Also run 'chown -R zimbra.zimbra /opt/zimbra/store'.
    6. Make sure your domain is entered properly in /etc/hosts/
    7. For unknown reasons I had to start ldap manually during the upgrade when I was getting error "failed with exit code 256.". Run 'ldap start' in a different terminal as the zimbra user when you get the error.

    I hope this saves you from hours of pain and agony.

  3. #3
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    If you're serious about running zimbra as the email server for your company you'd be far better running it on a stable enterprise distribution such as RHEL5 or SLES (if you want free then Zimbra on CentOS5 works fine), a bleeding edge consumer distribution is not a serious platform for company mail.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    deuscapturus is offline New Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    6

    Default

    Last Notes:

    Also do a "chown -R zimbra.zimbra /opt/zimbra/index" or you won't be able to search.

  5. #5
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,480
    Rep Power
    56

    Default

    How about just doing it correctly with:

    Code:
    /opt/zimbra/libexec/zmfixperms -verbose -extended
    
    /opt/zimbra/libexec/zmfixperms -help
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Restore specific network edition backup
    By sdemeyer in forum Administrators
    Replies: 5
    Last Post: 09-07-2008, 09:04 PM
  2. Restore single account failed from full backup
    By fmodola in forum Administrators
    Replies: 4
    Last Post: 06-20-2007, 05:27 AM
  3. 3 testing: LDAP: 389 Failed when restore zimbra
    By victorLeong in forum Administrators
    Replies: 15
    Last Post: 05-24-2007, 06:45 AM
  4. failed upgrade, failed restore, big trouble
    By feralcoder in forum Installation
    Replies: 2
    Last Post: 03-19-2007, 05:38 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
  •