Results 1 to 6 of 6

Thread: Upgrade problem

  1. #1
    NickB's Avatar
    NickB is offline New Member
    Join Date
    Dec 2006
    Location
    Switzerland
    Posts
    4
    Rep Power
    8

    Default Upgrade problem

    Hi,

    I'm trying to copy and upgrade our existing Zimbra installation 3.0.1_GA_160.FC4 to 4.0.4_GA_457.FC4. I transferred /opt/zimbra to the testserver with rsync (preserving perms). I changed hostname and hosts-entries to the same as on our existing Zimbra server. While starting Zimbra following error occured: /opt/zimbra/java/bin/java => permission denied.
    I tried to fix folder permissions with "zmfixperms" but without another result...the same error occured.
    Ignoring the error messages i started install.sh to upgrade Zimbra.
    The upgrade failed (who wonders ).
    I checked the install log (/tmp) :

    Code:
    COMMAND: zmlocalconfig -s | sed -e "s/ = \(.*\)/=\'\1\'/" > /opt/zimbra/.saveconfig/config.save
    COMMAND: zmcontrol shutdown
    Host host.domain.ch
    	Stopping mta...Done
    	Stopping spell...Done
    	Stopping snmp...Done
    	Stopping antivirus...Done
    	Stopping antispam...Done
    	Stopping imapproxy...Done
    	Stopping mailbox...Done
    	Stopping logger...Done
    	Stopping ldap...Done
    Preparing packages for installation...
    zimbra-core-4.0.4_GA_457.FC4-20061115174327
    ldconfig: /opt/zimbra/lib/libldap_r-2.2.so.7 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/libmysqlclient_r.so.14 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/liblber-2.2.so.7 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/libldap-2.2.so.7 is not a symbolic link
    
    mkdir: cannot create directory `/opt/zimbra/ssl': File exists
    mkdir: cannot create directory `/opt/zimbra/.ssh': File exists
    Loading classes to share ... done. 
    Rewriting and unlinking classes ... done. 
    Calculating hash values for String objects .. done. 
    Calculating fingerprints ... done. 
    Removing unshareable information ... done. 
    Moving most read-only objects to shared space at 0x90bb0000 ... done. 
    Moving common symbols to shared space at 0x90f2c4f0 ... done. 
    Moving remaining symbols to shared space at 0x91058280 ... done. 
    Moving string char arrays to shared space at 0x91058d10 ... done. 
    Moving additional symbols to shared space at 0x910da7b8 ... done. 
    Read-only space ends at 0x9112eaf8, 5761784 bytes.
    Moving read-write objects to shared space at 0x913b0000 ... done. 
    Moving String objects to shared space at 0x91939c50 ... done. 
    Read-write space ends at 0x91979d78, 6069624 bytes.
    Updating references to shared objects ... done. 
    
    Preparing packages for installation...
    zimbra-ldap-4.0.4_GA_457.FC4-20061115174327
    ldconfig: /opt/zimbra/lib/libldap_r-2.2.so.7 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/libmysqlclient_r.so.14 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/liblber-2.2.so.7 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/libldap-2.2.so.7 is not a symbolic link
    
    Preparing packages for installation...
    zimbra-logger-4.0.4_GA_457.FC4-20061115174327
    Preparing packages for installation...
    zimbra-mta-4.0.4_GA_457.FC4-20061115174327
    umount2: Invalid argument
    umount: /opt/zimbra/amavisd/tmp: not mounted
    mv: cannot stat `/opt/zimbra/amavisd': No such file or directory
    chown: changing ownership of `/opt/zimbra/httpd': No such file or directory
    chown: changing ownership of `/opt/zimbra/mysql': No such file or directory
    chown: changing ownership of `/opt/zimbra/snmp': No such file or directory
    ldconfig: /opt/zimbra/lib/libldap_r-2.2.so.7 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/libmysqlclient_r.so.14 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/liblber-2.2.so.7 is not a symbolic link
    
    ldconfig: /opt/zimbra/lib/libldap-2.2.so.7 is not a symbolic link
    
    Preparing packages for installation...
    zimbra-snmp-4.0.4_GA_457.FC4-20061115174327
    Preparing packages for installation...
    zimbra-store-4.0.4_GA_457.FC4-20061115174327
    Preparing packages for installation...
    zimbra-apache-4.0.4_GA_457.FC4-20061115174327
    Preparing packages for installation...
    zimbra-spell-4.0.4_GA_457.FC4-20061115174327
    COMMAND: zmlocalconfig -f -e ldap_cache_account_maxage='15'
    ........etc.....
    I recognized the different symbolic-links error messages and re-created the symbolic-links manually and re-run'd the install-script..but with the same error-outputs.

    Do you have an idea whats going wrong?

    Is that the right way to move and update zimbra? :
    - Stop Zimbra
    - Rsync Zimbra to the new server via SSH (preserving permissions)
    - Change host-name and /etc/hosts to match the existing Zimbra-Installation
    - Upgrade Zimbra with install.sh

    Thanks for any suggestions!
    (Sorry for my bad English )
    Last edited by NickB; 12-14-2006 at 08:19 AM.

  2. #2
    Klug's Avatar
    Klug is online now Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,321
    Rep Power
    13

    Default

    Hello, welcome to the forum.

    rsyncing the /opt/zimbra is not enough, you're missing other stuffs (zimbra user, crontab, etc).

    If you want to upgrade version AND server at the same time, you should _setup_ a 3.0.1 version on the new server (with the same name and IP than the old one), then backup the old server, then restore on this new server the backup from the old one, then upgrade to 4.0.4.

    Or the other way round : install 4.0.4 on the new server (with same name and IP as the old one), then backup the old server, then upgrade the old server to 4.0.4, then backup (again) the old server, then restore the backup on the new server.

    There are several threads on this (upgrade both version AND server at the same time) on the forum.

  3. #3
    NickB's Avatar
    NickB is offline New Member
    Join Date
    Dec 2006
    Location
    Switzerland
    Posts
    4
    Rep Power
    8

    Default

    Hi,

    Thx much for your quick answer!
    I installed 4.0.4 on my testserver to check out the new Zimbra version. After that i rsync'd the old Zimbra to /opt/zimbra. Maybe the problem was that i installed the new 4.0.4. and not 3.0.1 before rsync'ing?

    Anyway...i will try to update the old (productive) Zimbra version 3.0.1 to 4.0.4. The permissions and owner and symbolic links must be preserved: Last time when i tried to copy i made probably a mistake while copying...or a mistake while rsync'ing...(symbolic-links and permission errors in logfile)..so:

    - What is the correct cp -command and -options to make a copy of the "old" version..before updating?
    => i used: # cp -avp SOURCE DEST
    - What is the correct rsync -command to transmit /opt/zimbra to the remote server via SSH?
    => i used: # rsync -avz -p -e ssh remoteuser@remotehost:/remote/dir /this/dir/

    Sorry.. i don't know much about linux and could not find the right commands for me in Zimbra Forums.

    Is that the right way? :
    - Stop Zimbra
    - Rename /opt/zimbra to /opt/zimbra.backup
    - Copy /opt/zimbra.backup to /opt/zimbra (preserving perms, owner and sym-links)
    - Upgrade Zimbra to 4.0.4
    - Test Zimbra 4.0.4
    - Install Zimbra 4.0.4 on the new server (clean install)
    - Change hostname, IP, hosts to match the old server
    - rsync Zimbra

    thx much for your answer!
    Last edited by NickB; 12-14-2006 at 09:56 AM.

  4. #4
    NickB's Avatar
    NickB is offline New Member
    Join Date
    Dec 2006
    Location
    Switzerland
    Posts
    4
    Rep Power
    8

    Question copy and rsync /opt/zimbra

    Can anyone post the correct copy- and rsync-command to make a copy of /opt/zimbra and transfer /opt/zimbra to a remote server, preserving the permissions, owner and symbolic links?

    My knowledge of linux are not so wide...
    ...an answer would make me happy

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

    Default

    Quote Originally Posted by Klug View Post

    rsyncing the /opt/zimbra is not enough, you're missing other stuffs (zimbra user, crontab, etc).
    Klug is exactly right.
    You want to rsync the folder to a remote location. Then install Zimbra (the version you have rsynced). Set it all up EXACTLY how your backup is, then stop zcs (this is VERY IMPORTANT, make sure EVERTHING is stopped0

    Replace the Zimbra folder with your backup, and do a reinstall, and indicate that it's the upgrade.

    rsync -av /opt/zimbra (other location)

  6. #6
    NickB's Avatar
    NickB is offline New Member
    Join Date
    Dec 2006
    Location
    Switzerland
    Posts
    4
    Rep Power
    8

    Thumbs up

    Thx a lot for your answers!

    I'll try another time to rsync Zimbra to our new server considering your proposals.
    I'll be glad if the new Zimbra runs on our new Dual-Xeon virtual server

    GreeZ from Switzerland
    Nick

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 4.01 to 4.02 upgrade problem (with solution)
    By criley in forum Migration
    Replies: 2
    Last Post: 09-28-2006, 11:36 PM
  2. 3.1.3OS Upgrade Problem
    By mcevoys in forum Installation
    Replies: 7
    Last Post: 06-16-2006, 09:47 AM
  3. 3.0.1 GA upgrade problem
    By kollross in forum Administrators
    Replies: 5
    Last Post: 04-04-2006, 10:42 AM
  4. Another odd GA upgrade problem (FYI)
    By meikka in forum Installation
    Replies: 0
    Last Post: 02-08-2006, 01:38 PM
  5. Odd GA upgrade problem
    By drewage in forum Installation
    Replies: 2
    Last Post: 02-08-2006, 10:17 AM

Posting Permissions

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