Results 1 to 10 of 10

Thread: [SOLVED] Upgrading zimbra 5 to 6 with samba !!!

  1. #1
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default [SOLVED] Upgrading zimbra 5 to 6 with samba !!!

    Hi all,

    I have a full fonctionnal zimbra 5.0.21 with samba 3.0.33 on Centos 5.4. All work fine PDC, file sharing, mail, zimbra...

    For several months, I plan to migrate to v6.0.x (yet 6.0.4) so that use new functions

    So I get a fonctionnal test server and test migration before the real one. And I always run in trubble.

    Here is what I do from 5.0.21 :
    1) zmcontrol stop

    2) Do the steps as outlined here: Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki

    3) Do the steps as outlined here: Installing custom ldap schema 6.0 - Zimbra :: Wiki

    4) cd /opt/zimbra/data/ldap **rename all ldap.* files so they are out of the way**

    5) Copy the latest ldap.bak from latest backup (most likely from 5.0.x), and place it in /opt/zimbra/data/ldap/

    6) chown zimbra:zimbra /opt/zimbra/data/ldap/ldap.bak && chmod 640 /opt/zimbra/data/ldap/ldap.bak

    7) mv /opt/zimbra/data/ldap/hdb /opt/zimbra/data/ldap/hdb.OLD

    8) mkdir /opt/zimbra/data/ldap/hdb/db && mkdir /opt/zimbra/data/ldap/hdb/logs

    9) chown -R zimbra:zimbra /opt/zimbra/data/ldap/hdb/

    10) Edit the .install_history file, so it will the install section, for example:
    1252187141: INSTALL SESSION START
    1252187141: UPGRADED zimbra-spell-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187142: UPGRADED zimbra-logger-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187143: UPGRADED zimbra-ldap-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187144: UPGRADED zimbra-archiving-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187145: UPGRADED zimbra-core-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187146: UPGRADED zimbra-snmp-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187147: UPGRADED zimbra-convertd-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187148: UPGRADED zimbra-mta-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187149: UPGRADED zimbra-apache-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187151: UPGRADED zimbra-store-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187143: INSTALL SESSION COMPLETE
    **You only need to delete the CONFIGURED/UPGRADED for 6.0.x section, keep the 6.0.0 INSTALL session. Make sure to keep *everything* that every came before...every 5.0.x install, etc**

    11) Run /opt/zimbra/libexec/zmsetup.pl

    And then I've got a "ERROR: account.NO_SUCH_SERVER (no such server: server_name)"...

    The DNS is right and worked with 5.0.21, /etc/hosts is right too...

    I don't realy know what to do yet

    I join the upgrade log file if nedded.

    Fabrice
    Attached Files Attached Files
    Last edited by fafa31; 01-26-2010 at 01:28 PM. Reason: pb solved
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  2. #2
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default

    Realy no idear about this pb !!!!
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  3. #3
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    Default

    Quote Originally Posted by fafa31 View Post
    I have a full fonctionnal zimbra 5.0.21 with samba 3.0.33 on Centos 5.4. All work fine PDC, file sharing, mail, zimbra...
    That's not what it says in your signature, which is correct?

    Please update your forum profile with the output of the following command (do not post it in this thread):

    Code:
    zmcontrol -v
    Quote Originally Posted by fafa31 View Post
    For several months, I plan to migrate to v6.0.x (yet 6.0.4) so that use new functions
    Why did you not install 6.0.4, surely that would have been the most obvious choice?

    Quote Originally Posted by fafa31 View Post
    So I get a fonctionnal test server and test migration before the real one. And I always run in trubble.

    Here is what I do from 5.0.21 :
    1) zmcontrol stop

    2) Do the steps as outlined here: Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki

    3) Do the steps as outlined here: Installing custom ldap schema 6.0 - Zimbra :: Wiki
    According to the wiki article you are supposed to do the upgrade at this point before making any further changes, you appear not to have done that - why not?

    Quote Originally Posted by fafa31 View Post
    4) cd /opt/zimbra/data/ldap **rename all ldap.* files so they are out of the way**

    5) Copy the latest ldap.bak from latest backup (most likely from 5.0.x), and place it in /opt/zimbra/data/ldap/

    6) chown zimbra:zimbra /opt/zimbra/data/ldap/ldap.bak && chmod 640 /opt/zimbra/data/ldap/ldap.bak

    7) mv /opt/zimbra/data/ldap/hdb /opt/zimbra/data/ldap/hdb.OLD

    8) mkdir /opt/zimbra/data/ldap/hdb/db && mkdir /opt/zimbra/data/ldap/hdb/logs

    9) chown -R zimbra:zimbra /opt/zimbra/data/ldap/hdb/

    10) Edit the .install_history file, so it will the install section, for example:
    1252187141: INSTALL SESSION START
    1252187141: UPGRADED zimbra-spell-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187142: UPGRADED zimbra-logger-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187143: UPGRADED zimbra-ldap-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187144: UPGRADED zimbra-archiving-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187145: UPGRADED zimbra-core-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187146: UPGRADED zimbra-snmp-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187147: UPGRADED zimbra-convertd-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187148: UPGRADED zimbra-mta-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187149: UPGRADED zimbra-apache-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187151: UPGRADED zimbra-store-6.0.0_GA_1802.RHEL5_64-20090830130556
    1252187143: INSTALL SESSION COMPLETE
    **You only need to delete the CONFIGURED/UPGRADED for 6.0.x section, keep the 6.0.0 INSTALL session. Make sure to keep *everything* that every came before...every 5.0.x install, etc**
    Where did you get steps 4 - 10 from?

    Quote Originally Posted by fafa31 View Post
    11) Run /opt/zimbra/libexec/zmsetup.pl
    As mentioned above, this step is in the wrong place.

    Quote Originally Posted by fafa31 View Post
    And then I've got a "ERROR: account.NO_SUCH_SERVER (no such server: server_name)"...
    Did you search the forums for that error?

    Quote Originally Posted by fafa31 View Post
    The DNS is right and worked with 5.0.21, /etc/hosts is right too...
    You've given no evidence that your statement is correct.
    Last edited by phoenix; 01-24-2010 at 12:20 PM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  4. #4
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default

    Quote Originally Posted by phoenix View Post
    That's not what it says in your signature, which is correct?
    Sorry, I don't update my signature, sorry, now it is done

    Quote Originally Posted by phoenix View Post
    Why did you not install 6.0.4, surely that would have been the most obvious choice?
    For the last test, it was what I've done. A 5.0.21 fresh install with an direct upgrade to a 6.0.4 !!! (the report is from this test).

    Quote Originally Posted by phoenix View Post
    According to the wiki article you are supposed to do the upgrade at this ponit before making any further changes, you appear not to have done that - why not?

    Where did you get steps 4 - 10 from?
    I follow the steps from here : Problem upgrading to 6; slapadd import failed

    I have found a tuto to upgrade zimbra 5 to 6 with samba that I adapt to Centos :
    Migration Zimbra 5 vers 6 sous Debian Lenny | tutoriels-web.net

    But it is in french and the steps were like the link above.

    Quote Originally Posted by phoenix View Post
    Did you search the forums for that error?
    Yes I do, and I tried a lot's of things related to this pb but nothing get it work...

    Quote Originally Posted by phoenix View Post
    You've given no evidence that your statement is correct.
    Here is my /etc/hosts:
    127.0.0.1 localhost.localdomain localhost
    192.168.XXX.YYY test.domain.local test

    For DNS:
    I follow this tuto to build my server, and test the DNS as it was said in it:
    UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI - Zimbra :: Wiki
    For my part :
    dig mx domain.local, dig a test.domain.local and nslookup domain.local returned good things for both real and test server.
    A "ping test give me the right adress like "ping test.domain.local" !!!!

    I can give you what this commands return to me if you like but tomorow as I can access to my test server.

    A "telnet test.domain.local 389" work fine too !!!
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    Default

    I still seem to be slightly confused by what you've done. You should follow the instructions in the following wiki article:

    Optimizing 5.0 to 6.0 LDAP upgrade - Zimbra :: Wiki - half way through that procedure you should install the extra schema as detailed in this article:

    Installing custom ldap schema 6.0 - Zimbra :: Wiki - and then finish off the commands in the first article. When you get to the end of the first article you should finish running the installation script. You seem to have missed out the step of running the install script in your steps in the first post and you've continued on your steps 3-11 when you finally run the install. Have I misunderstood what you've done or did you run the upgrade in the correct place?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default

    Ok,

    I will get back to a fresh 5.0.21 server (I have an image)

    And I will try the upgrade again by following the instruction given by the 2 wikis and see where I break down... All that by forgiving the french tuto for upgrade...

    I'll give you the result and all the steps I've done if it doesn't work.

    Thank's for your help.

    Fabrice
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  7. #7
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default

    Hi again,

    I follow steps with wiki and not the tuto I found

    I begin By Optimizing 5 to 6...
    so first I install zimbra 6 without configuration : ./install.sh -s in ZCS6 directory

    I go to the /opt/zimbra/openldap/etc/openldap/config and edit cn=config.ldif and replace olcTollThreads by 4

    In /opt/zimbra/openldap/etc/openldap/config/cn=config/olcDatabase={2}hdb.ldif add the acces rights
    olcAccess: {10}to dn.subtree="dc=test,dc=domain,dc=fr" by dn.children="cn=admins,cn=zimbra" write by * read
    olcAccess: {11}to dn.subtree="ou=machines,"dc=test,dc=domain,dc=fr"" by dn.children="cn=admins,cn=zimbra" write by * read
    olcAccess: {12}to dn.subtree="ou=groups,"dc=test,dc=domain,dc=fr"" by dn.children="cn=admins,cn=zimbra" write by * read
    olcAccess: {13}to dn.subtree="ou=people,"dc=test,dc=domain,dc=fr"" by dn.children="cn=admins,cn=zimbra" write by * read

    and add the indexies:
    olcDbIndex: uidNumber eq
    olcDbIndex: gidNumber eq
    olcDbIndex: memberUID eq
    olcDbIndex: sambaSID eq
    olcDbIndex: sambaPrimaryGroupSID eq
    olcDbIndex: sambaDomainName eq

    Nothing with DB_CONFIG file as I don't custimized it.

    I create /opt/zimbra/data/ldap/config/cn=config/cn=schema as they don't exist because it is an update from 5.

    Then, I follow "Installing custum ldap schema 6.0"
    cp /opt/zimbra/openldap/etc/openldap/schema/nis.ldif /opt/zimbra/data/ldap/config/cn=config/cn=schema/cn={10}nis.ldif
    cd /opt/zimbra/data/ldap/config/cn=config/cn=schema

    and change it as it is said in the tuto !!!

    Lunch "ldap start" as zimbra user, and It failed (Failed to start slapd. Attempting debug start to determine error"
    and, in the zimbra.log, I get "ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException localhost.localdomain:389)"...

    And I can't start ldap anymore

    I found something in the wiki about this error, it is related to the /etc/sudoers !!! I get in it, but only zimbra 5 command has been register and not 6... Where can I find them to try to change them ?

    Fabrice
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  8. #8
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default

    OK,

    After a lot's of test, I think that the LDAP server can't start afer upgradind to v6.

    It's not a DNS issue, but a pb of ldap server config and so it can't start...

    I continue to search this way, and if someone have an idear, I is welcome
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  9. #9
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default

    Having thinks,

    It is normal that LDAP server is out as I have to end the settings at first !!!

    I'll try to find a solution tomorrow
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

  10. #10
    fafa31 is offline Intermediate Member
    Join Date
    Jul 2009
    Posts
    20
    Rep Power
    6

    Default [SOLVED] Upgrading zimbra 5 to 6 with samba !!!

    Hi,

    As today is another day, I start an other upgrade from a fresh install 5.0.21 and upgrade it to 6.0.4.

    I forgive my tuto found under internet and follow the 2 wikis Optimizing 5.0 to 6.0 upgrade and Installing custum LDAP schema 6.0 line by line

    What's new compare to all the last upgrade I tested before is that I had this lines to olcDatabase={2}hdb,cn=config file before starting the upgrade (/opt/zimbra/libexec/zmsetup.pl)

    olcAccess: {10}to dn.subtree="dc=test,dc=domain,dc=local" by dn.children="cn=admins,cn=zimbra" write by * read
    olcAccess: {11}to dn.subtree="ou=machines,dc=test,dc=domain,dc=local " by dn.children="cn=admins,cn=zimbra" write by * read
    olcAccess: {12}to dn.subtree="ou=groups,dc=test,dc=domain,dc=local" by dn.children="cn=admins,cn=zimbra" write by * read
    olcAccess: {13}to dn.subtree="ou=people,dc=test,dc=domain,dc=local" by dn.children="cn=admins,cn=zimbra" write by * read

    I think that's why the upgrade installer can't contact LDAP server as it doesn't have rights to do it !!!

    And now, upgrade seems to work !!!

    Thank's a lot for all your help

    PS: I don't know how to add [SOLVED] in the title
    Fabrice

    --------------------------------------------------
    Centos 5.3 X64
    Zimbra Release 6.0.4_GA_2038.RHEL5_64_20091214174341 CentOS5_64 NETWORK edition
    Samba 3.0.33

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  2. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  3. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  4. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07: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
  •