Upgrading ownCloud to New Version Releases
From Amahi Wiki
Revision as of 18:58, 9 September 2015 by Ken Neiser (aka northridgegrp) (talk | contribs) (→Updating ownCloud on Amahi)
Work In Progress | |
---|---|
This article is currently undergoing major expansion or restructuring. You are welcome to assist by editing it as well. If this article has not been edited in several days, please remove this template. |
Starting from the ownCloud 8.0 release, new releases are issued in a "time based" schedule. Please be aware due to testing and software changes a schedule can be changed suddenly.
New versions have a specific numbering format: x.y.z
- x - each year there will be a new release (i.e. 7, 8, 9).
- y - every calendar quarter there will be a new version (i.e. 8.0 8.1, 8.2), starting a 0 for quarter 1.
- z - patch and security releases are issued as necessary (i.e. 8.1.1, 8.1.2).
Refer to the ownCloud Maintenance and Release Schedule for more information.
Updating ownCloud on Amahi
Use the following steps for updating ownCloud:
- Catalogue all applications active in the current ownCloud instance. Take special care to identify the "core" applications that were activated and Approved/Experimental applications that were installed. There is no guarantee that non-core applications will work on a new ownCloud release.
- Review and document all ownCloud sharing techniques used in the current ownCloud instance.
- It is recommended that all third party applications be disabled before upgrading.
- Do backups of the ownCloud database, binaries and stored files.
- Go to the Amahi Dashboard, Apps => Installed, and uninstall the current ownCloud instance. This will remove the ownCloud binaries and ownCloud database.
- Go to the Amahi Dashboard, Apps => Available, and install the new ownCloud release.
- Using a "terminal" connection, "cd" in to the ownCloud directory containing the binaries.
cd /var/hda/web-apps/owncloudx/html - where "x" is an ownCloud major release number
- Restore the ownCloud "config.php" file from backups.
- Using a "terminal" connection and using the command-line OR an Amahi MySQL application restore the ownCloud database from backups.
- Login to the ownCloud "admin" ID as usual.
- Navigate to the ownCloud Admin page and confirm the new version release number.
- Confirm some of the other settings and make appropriate changes (file upload/download sizes, versioning).
- DO NOT turn the system over to users yet!
- Restore the ownCloud applications from backups.
- If there is no match for the third party applications; activate the "core" applications needed, enable the Approved/Experiments applications as needed. Please remember Approved/Experiments applications that do not work will take time for the authors to update for the new release version.
- Enable required "core" and Approved/Experiments applications "one-at-a-time", testing each application. Stop at any behaviour that is not the same, this usually happens with Approved/Experiments applications (there maybe new versions that have to be installed).
- Login to a normal user ID and test ownCloud functionality (i.e. sharing) and applications.
- If the prior testing was successful have other users test their ownCloud IDs.
- The update is now completed.
Upgrading ownCloud on Amahi
Use the following steps for upgrading ownCloud:
- It is highly desirable that your current ownCloud instance is at the latest release number before the next major version release. This is important as there may have been some important meta data fixes (or other fixes) that the new major release is dependent on. If you skip this step the upgrade for ownCloud may have some problems at a future time.
- Catalogue all applications active in the current ownCloud instance. Take special care to identify the "core" applications that were activated and Approved/Experimental applications that were installed. There is no guarantee that non-core applications will work on a new ownCloud release.
- Review and document all ownCloud sharing techniques used in the current ownCloud instance.
- Do backups of the ownCloud database, binaries and stored files.
- Go to the Amahi Dashboard, Apps => Installed, and uninstall the current ownCloud instance. This will remove the ownCloud binaries and ownCloud database.
- Go to the Amahi Dashboard, Apps => Available, and install the new ownCloud release.
- Using a "terminal" connection, "cd" in to the ownCloud directory containing the binaries.
cd /var/hda/web-apps/owncloudx/html - where "x" is an ownCloud major release number
- Restore the ownCloud "config.php" file from backups. Remember that this restore should be from the last major point release (i.e. 6.0.6) versus the new major release (i.e. 7.0.3) that will be the upgrade (not update).
- The following sub-steps must be done for ownCloud releases from version 6.0.5 and beyond. Refer to the "ownCloud 7.0 and Future Updates/Upgrades on Amahi" section on this page for more information. The following sub-steps use an upgrade from ownCloud 6.0.6 to 7.0.3 as an example.
- Navigate to the ownCloud "config" directory:
cd /var/hda/web-apps/owncloud7/html/config/
- The restored "config" directory contains a file, "config.php" as follows:
$CONFIG = array ( 'instanceid' => 'xxx', 'passwordsalt' => 'xxxx', 'datadirectory' => '/var/hda/files/owncloud6/data', 'dbtype' => 'mysql', 'version' => '6.0.6.1', 'dbname' => 'owncloud6', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud6', 'dbpassword' => 'owncloud6', 'installed' => true, 'theme' => , 'maintenance' => false, );
- All references with "owncloud6" in this file must be changed to "owncloud7". DO NOT change the "version".
- The changes can be made with a text editor or the following command:
sed -i 's/owncloud6/owncloud7/g' /var/hda/web-apps/owncloud7/html/config/config.php
- The "config.php" will be as follows:
$CONFIG = array ( 'instanceid' => 'xxx', 'passwordsalt' => 'xxxx', 'datadirectory' => '/var/hda/files/owncloud7/data', 'dbtype' => 'mysql', 'version' => '6.0.6.1', 'dbname' => 'owncloud7', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud7', 'dbpassword' => 'owncloud7', 'installed' => true, 'theme' => , 'maintenance' => false, );
- Using a "terminal" connection and using the command-line OR an Amahi MySQL application, restore the ownCloud database from backups.
- Using an Internet Browser navigate to ownCloud, the upgrade will now begin. Follow any instructions given by the ownCloud upgrade process.
- If the upgrade was successful, login to the ownCloud "admin" ID as usual.
- Navigate to the Admin page and confirm new version release number.
- Confirm some of the other settings and make appropriate changes (file upload/download sizes, versioning).
- DO NOT turn the system over to users yet!
- Navigate to the Apps page.
- Enable "core" applications that were used in the previous ownCloud instance "one-at-time". Testing each after enabling.
- Enable any additional applications available from the new release that were used in the prior ownCloud instance. Testing each after enabling.
- Download, install, and enable any required third party applications. Testing each after enabling. Please remember third party applications that do not work will take time for the third party authors to update for the new release version.
- Login to a normal user ID and test ownCloud functionality (i.e. sharing) and applications.
- If the prior testing was successful have other users test their ownCloud IDs.
- The upgrade is now completed.
ownCloud 8.0 and Future Updates/Upgrades on Amahi
In order to allow multiple instances of different version releases of ownCloud on the same Amahi server naming changes to the main ownCloud application directory and database names have been implemented.
- The location where the actual ownCloud application is stored has changed to "/var/hda/web-apps/owncloudx/html" (where "x" is the major release number). For example for ownCloud release version 7.0.3 the directory is named owncloud7.
- The ownCloud database user ID, password, and name have changed in the same manner. Before updating or upgrading changes will have to be made to the ownCloud "config.php" configuration file before proceeding further.
- You may want to consider changing your ownCloud data file directory name for the same naming convention. Provided you used the name owncloud as part of the data directory name.
- If you use automated backup and recovery software you may have to reload and reconfigure your ownCloud data and backup system configuration before the next backup set is taken. Some backup systems allow you to change the ownCloud directory names (data, ownCloud config,php location) in the existing backup sets (rsnapshot).
- Starting with ownCloud 8.0, any-to-any major version upgrades will be supported. Prior to ownCloud 8.0, it was necessary to upgrade one release at a time (i.e. ownCloud 6 -> 7 -> 8) from the last prior software patch and security release. With ownCloud 8, it will be possible to upgrade from 8.0 to 8.3 or 9.1 directly.
- Starting with ownCloud 8.0, on upgrade, most applications are disabled, only certain "core" applications are left enabled (Files, Pictures). The ownCloud Community has "slimmed" down their installation package to provide basic functionality. Most "core" applications have now been moved to the ownCloud appStore.