Results 1 to 6 of 6

Thread: Help, failed 7.1.1->7.1.3 upgrade

  1. #1
    lindsey is offline Senior Member
    Join Date
    Feb 2008
    Location
    Urbana-Champaign, IL
    Posts
    68
    Rep Power
    7

    Default Help, failed 7.1.1->7.1.3 upgrade

    Last night I tried doing a 7.1.1 to 7.1.3 upgrade (7.1.1_GA_3196.RHEL5_64.20110527011124 to 7.1.3_GA_3346.RHEL5_64.20110928134520).

    The first time it told me that my operating system was unknown (I'm running CentOS 5.6), so I re-ran it with --platform-override. This was after it shut down MySQL and tested the database.

    Unfortunately, this process broke something. Zimbra wouldn't start at all. I restarted the upgrade with --platform-override and it completed the install, but Zimbra continued to fail:

    Host localhost
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
    Starting ldap...Done.
    Starting zmconfigd...Done
    Starting logger...Failed.
    Starting logswatch...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException localhost:389)
    zimbra logger service is not enabled! failed.
    Starting mailbox...Done.
    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...Done.
    Starting stats...Done.

    Then I tried reverting back to my old version, but it said

    Downgrading to version 7.1.1 from 7.1.3 is not supported.

    I see this in the logs:

    IOError: [Errno 2] File not found - /opt/zimbra/zimbramon/pylibs/conf$py.class (Permission denied)

    -rw-r----- 1 root root 9149 Dec 6 02:50 /opt/zimbra/zimbramon/pylibs/conf$py.class

    That's the same permissions as it had before.

    I do have a backup of the mailboxes and the main/config ldap databases.

    Here are my questions:

    1. Does anyone have any ideas to move past this and get our Zimbra install back up and running?

    2. Failing that, should I be able to revert by reinstalling 7.1.1 from scratch, importing the ldap database, and then importing the mailboxes?

    Thanks,

    Chrsi

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Quote Originally Posted by lindsey View Post
    Unfortunately, this process broke something. Zimbra wouldn't start at all. I restarted the upgrade with --platform-override and it completed the install, but Zimbra continued to fail:

    Host localhost
    Unable to determine enabled services from ldap.
    Enabled services read from cache. Service list may be inaccurate.
    Starting ldap...Done.
    Starting zmconfigd...Done
    Starting logger...Failed.
    Starting logswatch...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.naming.CommunicationException localhost:389)
    zimbra logger service is not enabled! failed.
    Starting mailbox...Done.
    Starting snmp...Done.
    Starting spell...Done.
    Starting mta...Done.
    Starting stats...Done.
    The highlighted text in blue looks incorrect to me, you should have the FQDN of your server in that message not localhost.

    The highlighted text in red would indicate to me that you've a) got a problem with expired certificates or b) your DNS A or MX record and/or your /etc/host file is incorrect.

    You can check the article in the wiki on regenerating the certificates (assuming it's a self-signed certificate) and you can check the hosts file and NDS records by running all the commands in the 'Verify....' section of the Split DNS article.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    lindsey is offline Senior Member
    Join Date
    Feb 2008
    Location
    Urbana-Champaign, IL
    Posts
    68
    Rep Power
    7

    Default

    That's what I was thinking too.

    /etc/hosts is right, there are no self-referential MX records (never have been, I override with mailertable on a separate relay host that kicks the mail to the zimbra server), the A record is right, and the certificate is valid.

    Do I have enough with my backups to reinstall the old version and restore?

    Thanks,

    Chris

  4. #4
    lindsey is offline Senior Member
    Join Date
    Feb 2008
    Location
    Urbana-Champaign, IL
    Posts
    68
    Rep Power
    7

    Default

    When trying to generate a new certificate (for giggles) I noticed that it also spits out some errors.

    /opt/zimbra/bin/zmcertmgr createca -new
    ** Creating /opt/zimbra/ssl/zimbra/ca/zmssl.cnf...chown: invalid option -- 1
    Try `chown --help' for more information.
    done
    chown: invalid option -- 1
    Try `chown --help' for more information.
    chown: invalid option -- 1
    Try `chown --help' for more information.
    chown: invalid option -- 1
    Try `chown --help' for more information.
    ** Creating CA private key /opt/zimbra/ssl/zimbra/ca/ca.key...done.
    ** Creating CA cert /opt/zimbra/ssl/zimbra/ca/ca.pem...done.

    Running zmcertmgr with sh -x prepended gives me this gem:

    chown -1:-1 /opt/zimbra/ssl/zimbra/ca/zmssl.cnf

    So for some reason it's no longer getting the proper uid/gid for Zimbra either. Trying to track down where that comes from.

  5. #5
    lindsey is offline Senior Member
    Join Date
    Feb 2008
    Location
    Urbana-Champaign, IL
    Posts
    68
    Rep Power
    7

    Default

    Running zmlocalconfig shows that a bunch of the data is lost.

    ./zmlocalconfig | egrep 'hostname|gid|uid'
    zimbra_gid = -1
    zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra
    zimbra_server_hostname = localhost
    zimbra_uid = -1

    Looking at the actual XML files, for some reason all of them are essentially empty.

    Chris
    Last edited by lindsey; 12-06-2011 at 12:34 PM.

  6. #6
    lindsey is offline Senior Member
    Join Date
    Feb 2008
    Location
    Urbana-Champaign, IL
    Posts
    68
    Rep Power
    7

    Default

    Fortunately, I had a backup for the conf directory. I copied back any files that where empty (conf/ldap*, localconfig.xml, slapd*), made the zimbramon/pylibs files readable by anyone (maybe a bad move, but)...

    With the pylibs files readable, zmconfigd was able to start and changed permissions on a *ton* of files.

    The server is now up and running again.

    Chris

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 05-11-2012, 02:16 PM
  2. Upgrade from 6.0.10 to 7 beta4
    By alex70 in forum Installation
    Replies: 14
    Last Post: 05-11-2012, 02:02 PM
  3. MySQL errors
    By mludwig in forum Administrators
    Replies: 1
    Last Post: 07-11-2011, 03:40 AM
  4. Replies: 6
    Last Post: 03-14-2011, 04:21 AM
  5. [SOLVED] New zcs 7 install : database errors founds
    By dkbk in forum Administrators
    Replies: 4
    Last Post: 03-01-2011, 06:49 AM

Tags for this Thread

Posting Permissions

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