Difference between revisions of "AppSuite:Upgrade from 6.22 Debian 6.0"

(Adjust Apache configuration)
(Adjust Apache configuration)
Line 107: Line 107:
 
Apache's service configuration needs adjustments.
 
Apache's service configuration needs adjustments.
  
If you want to run both frontends later, you need to create a default.conf file with the contents from OX6 and OX App Suite merged. Consult the [[AppSuite:Open-Xchange_Installation_Guide_for_Debian_6.0#Configure_services|OX App Suite documentation]] for details about the default.conf contents for OX App Suite.
+
If you want to run both frontends later, you need to create a default.conf file with the contents from OX6 and OX App Suite merged. If you want to drop the OX6 frontend anyways, you can now just create a default.conf file for OX App Suite. Consult the [[AppSuite:Open-Xchange_Installation_Guide_for_Debian_6.0#Configure_services|OX App Suite documentation]] for details about the default.conf contents for OX App Suite.
  
 
Then, depending on whether you switched to Grizzly or are still using AJP, you need to adjust the proxy_http.conf or proxy_ajp.conf file. Basically the OX App Suite configuration is a superset of the OX6 configuraton, so you can use the configuration described in the [[AppSuite:Open-Xchange_Installation_Guide_for_Debian_6.0#Configure_services|OX App Suite documentation]] for the Grizzly configuration, or the AJP example file in the [[AppSuite:Grizzly#Switching_from_open-xchange-grizzly_to_open-xchange-ajp|switching to AJP section of the Grizzly documentation]].
 
Then, depending on whether you switched to Grizzly or are still using AJP, you need to adjust the proxy_http.conf or proxy_ajp.conf file. Basically the OX App Suite configuration is a superset of the OX6 configuraton, so you can use the configuration described in the [[AppSuite:Open-Xchange_Installation_Guide_for_Debian_6.0#Configure_services|OX App Suite documentation]] for the Grizzly configuration, or the AJP example file in the [[AppSuite:Grizzly#Switching_from_open-xchange-grizzly_to_open-xchange-ajp|switching to AJP section of the Grizzly documentation]].

Revision as of 11:17, 27 September 2013

Update of Open-Xchange Server v6.22 to OX App Suite on Debian GNU/Linux 6.0

This document describes updating an OX 6 Server installation from version 6.22 to OX App Suite.

Supported update path

This document assumes you are running at least OX6 v6.22.0. If you are running on an older version of OX6, you need to update to v6.22.0 first, see Open-Xchange 6.20 to 6.22 Update Guide for Debian 6.0. (This requires an intermediate upgrade to OX6 v6.20.7 if you are running a version older than that.)

Then, update your OX6 installation to the latest 6.22 version. Since OX App Suite and OX6 use the same backend (beginning with OX App Suite 7.0.2 / OX6 v6.22.2 released on 2013-04-04), this is basically upgrading your backend to the latest OX App Suite backend, while keeping the OX6 frontend functional.

Then, add the latest OX App Suite frontend to the system.

Then, the OX6 frontend can be removed, optionally.

Requirements

  • An Open-Xchange Server installation v6.22.0 or later. This update guide is valid for a system installed through our Download and Installation Guide for Debian GNU/Linux 6.0 (Squeeze)
  • If you have custom packages done by Open-Xchange, please discuss with your Open-Xchange contact when these packages are available for OX App Suite. Do not attempt the update earlier.
  • Custom packages built for 6.22.1 or earlier might not work with OX App Suite.
  • As for every update we strongly recommend that you make a backup of your system(s) before you proceed.

Update Open-Xchange Repositories

If not already configured, we make the latest OX6 repos available by ajdusting the corresponding sources.list file:

deb http://software.open-xchange.com/OX6/6.22/frontend/DebianSqueeze/ /
deb http://software.open-xchange.com/OX6/6.22/backend/DebianSqueeze/ /
deb http://software.open-xchange.com/OX6/6.22/usm/DebianSqueeze/ /

# if you have a valid maintenance subscription, please uncomment the 
# following and add the ldb account data to the url so that the most recent
# packages get installed
# deb http://LDBACCOUNT:LDBPASSWORD@software.open-xchange.com/OX6/6.22/updates/frontend/DebianSqueeze /
# deb http://LDBACCOUNT:LDBPASSWORD@software.open-xchange.com/OX6/6.22/updates/backend/DebianSqueeze /
# deb http://LDBACCOUNT:LDBPASSWORD@software.open-xchange.com/OX6/6.22/updates/usm/DebianSqueeze /

Updating repositories and update packages

Reload the package index:

$ apt-get update

Download and update all installed packages:

$ apt-get dist-upgrade

Please note: For some config files, the following interaction dialog may occur:

Configuration file `/opt/open-xchange/etc/hazelcast.properties'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** hazelcast.properties (Y/I/N/O/D/Z) [default=N] ? 

Chose Y to install the new version. Check later no manual changes have been screwed. You can do this by comparing the new (installed) config file with the dpkg.old files created by dpkg.

IMPORTANT: Please be extremely careful when executing apt-get autoremove after the upgrade. On some test systems packages were marked for automatic removal even if they were still needed.

To remove a package from the autoremove list, you can use:

$ apt-mark unmarkauto package1 [package2 [package3 [...]]]

Replace AJP with Grizzly

You need to decide whether whether you want to replace AJP by Grizzly now, or later. AJP is deprecated with OX App Suite 7.4 / OX6 v6.22.4 released in September 2013 and will be discontinued with OX App Suite 7.6 in April 2014. For more information, see AppSuite:Grizzly.

Review configuration files

One configuration setting is to be made manually:

# vi /opt/open-xchange/etc/cluster.properties
com.openexchange.cluster.name=oxcluster

Restart Open-Xchange

To restart Open-Xchange Server after the update, run

$ /etc/init.d/open-xchange restart

You might want to check with

$ ps aux | grep open-xchange

that there is exactly one newly spawned process running Open-Xchange Server.

You should verify that login is possible. Upon the first connection after the backend update, you will get the message Error: updating database, try later. The second try should succeed.

Add the App Suite UI

Add App Suite repositories to your sources.list:

# adjust your existing repository list with the new locations
deb http://software.open-xchange.com/products/appsuite/stable/backend/DebianSqueeze/ /
deb http://software.open-xchange.com/products/appsuite/stable/appsuiteui/DebianSqueeze/ /

Then, install packages:

# apt-get install open-xchange-appsuite open-xchange-appsuite-backend open-xchange-appsuite-manifest

Adjust Apache configuration

Apache's service configuration needs adjustments.

If you want to run both frontends later, you need to create a default.conf file with the contents from OX6 and OX App Suite merged. If you want to drop the OX6 frontend anyways, you can now just create a default.conf file for OX App Suite. Consult the OX App Suite documentation for details about the default.conf contents for OX App Suite.

Then, depending on whether you switched to Grizzly or are still using AJP, you need to adjust the proxy_http.conf or proxy_ajp.conf file. Basically the OX App Suite configuration is a superset of the OX6 configuraton, so you can use the configuration described in the OX App Suite documentation for the Grizzly configuration, or the AJP example file in the switching to AJP section of the Grizzly documentation.

After this, stop and start the apache2 and open-xchange services. Then you should be able to use the App Suite UI.

Remove the OX6 GUI

This step is optional. You may just skip it and offer both GUIs, the OX6 GUI and the App Suite GUI. (This is only supported with OX6 v6.22.2 and later.)

If you want to uninstall the OX6 GUI, this step consists of removing the OX6 GUI packages and adjusting Apache's configuration.

The packages to be removed can be identified by their version number in the output of dpkg -l | grep open-x. It will probably boil down to uninstall everything which starts with open-xchange-gui, as the names of the App Suite UI packages start with open-xchange-appsuite.

# apt-get remove open-xchange-gui*

After deinstallation of the OX6 GUI packages, adjust the /etc/apache2/sites-available/default file to remove obsolete stuff which was required for the OX6 GUI, but is not required by the App Suite UI. To do so, you may consult the Installation Guide for OX Appsuite to learn which sections of the file are required for an App Suite UI.

The AJP or Grizzly configuration will not require adjustments; the settings for App Suite are a superset of the settings of the OX6 GUI.

Leftover configuration files and runtime data

After the update you may see leftover configuration files and runtime data below /opt/open-xchange/etc.

Some of these files belong to packages which have been uninstalled during the update, they are marked with the status rc in the output of dpkg -l. You can remove these packages with the command

$ dpkg --purge <packagename>

Other orphaned files may be runtime data or temporary files which do not belong to any package and therefore couldn't be removed during the package update.

Finally, there may be backup files created by the package manager during earlier updates.

It is safe to remove all files ending in .dpkg-bak or .dpkg-remove