Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2006, 08:15 AM
New Member
 
Posts: 4
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.
Reply With Quote
  #2 (permalink)  
Old 12-14-2006, 09:06 AM
Moderator
 
Posts: 1,847
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.
Reply With Quote
  #3 (permalink)  
Old 12-14-2006, 09:46 AM
New Member
 
Posts: 4
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.
Reply With Quote
  #4 (permalink)  
Old 12-15-2006, 03:12 AM
New Member
 
Posts: 4
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
Reply With Quote
  #5 (permalink)  
Old 12-15-2006, 08:25 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
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)
Reply With Quote
  #6 (permalink)  
Old 12-17-2006, 03:56 AM
New Member
 
Posts: 4
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
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0