Difference between revisions of "OwnCloud App Migration"

From Univention Wiki

Jump to: navigation, search
(Add warning about unfinished guide)
(Update migration guide for 9.1.4-20170330 app version)
Line 13: Line 13:
 
Directories with ownCloud data are mapped to the container and the container continues to use the database on the Docker host.
 
Directories with ownCloud data are mapped to the container and the container continues to use the database on the Docker host.
  
The following steps are necessary to migrate the non-Docker ownCloud App to Docker:  
+
The guide should only be followed if the currently installed owncloud App version is 9.0.6. The following steps are necessary to migrate the non-Docker ownCloud App to Docker:  
  
  
Line 29: Line 29:
 
docker run hello-world
 
docker run hello-world
 
</pre>
 
</pre>
If this test fails, please contact the Univention Support or check the Univention Forum [http://forum.univention.de/] for more information.
+
If this test fails, please contact the Univention Support or check the Univention Forum [http://help.univention.com/] for more information.
  
 
== Save ownCloud UCR settings, prepare ownCloud App removal ==
 
== Save ownCloud UCR settings, prepare ownCloud App removal ==
 
<pre>
 
<pre>
 
ucr search --brief ^owncloud > /root/owncloud-ucr-settings.txt
 
ucr search --brief ^owncloud > /root/owncloud-ucr-settings.txt
 +
cat /etc/owncloudadmin.secret; echo
 
</pre>
 
</pre>
 +
 +
The admin password should not have changed. Please note, that the last command above shows the password.
  
 
== Remove ownCloud App ==
 
== Remove ownCloud App ==
 +
 +
 +
== Install ownCloud Docker App ==
 +
First the code of the ownCloud App is removed. All files and database contents remain in place. The unique internal identifier of the official ownCloud App is 'owncloud82'. This identifier remains unchanged for now, although the version number now differs.
 
<pre>
 
<pre>
 
univention-app remove owncloud82
 
univention-app remove owncloud82
 
ucr unset appcenter/prudence/docker/owncloud82
 
ucr unset appcenter/prudence/docker/owncloud82
 +
du -sh /var/lib/owncloud/*    # check how much disk space each user occupies.
 
</pre>
 
</pre>
  
== Install ownCloud Docker App ==
 
 
<pre>
 
<pre>
 
univention-app update
 
univention-app update
univention-app install owncloud82
+
univention-app list owncloud82    # print out avaiable versions
 +
univention-app install owncloud82=9.1.4-20170330
 +
 
 
</pre>
 
</pre>
  
Line 52: Line 61:
 
== Verify ownCloud UCS settings in Docker container ==
 
== Verify ownCloud UCS settings in Docker container ==
 
<pre>
 
<pre>
univention-app shell owncloud82 ucr search --brief ^owncloud
+
univention-app shell owncloud82 ucr search --brief ^owncloud > /root/owncloud-ucr-settings-9.1.4.txt
 +
diff -u /root/owncloud-ucr-settings*
 
</pre>
 
</pre>
  

Revision as of 13:12, 12 April 2017



Caution: This Migration guide will currently not work, using it will result in a broken owncloud installation


Starting with version 9.1.1 the ownCloud App for UCS is available as a Docker App. New installations automatically use this Docker App.

To update an existing non-Docker ownCloud App to the new Docker ownCloud App a manual migration has to be done. Basically, ownCloud on the server (Docker host) is removed and installed in a new Docker container. Directories with ownCloud data are mapped to the container and the container continues to use the database on the Docker host.

The guide should only be followed if the currently installed owncloud App version is 9.0.6. The following steps are necessary to migrate the non-Docker ownCloud App to Docker:


Check if docker works on the host


Caution: This Migration guide will currently not work, using it will result in a broken owncloud installation



Run the following command to verify docker works, before starting the migration:

docker run hello-world

If this test fails, please contact the Univention Support or check the Univention Forum [1] for more information.

Save ownCloud UCR settings, prepare ownCloud App removal

ucr search --brief ^owncloud > /root/owncloud-ucr-settings.txt
cat /etc/owncloudadmin.secret; echo

The admin password should not have changed. Please note, that the last command above shows the password.

Remove ownCloud App

Install ownCloud Docker App

First the code of the ownCloud App is removed. All files and database contents remain in place. The unique internal identifier of the official ownCloud App is 'owncloud82'. This identifier remains unchanged for now, although the version number now differs.

univention-app remove owncloud82
ucr unset appcenter/prudence/docker/owncloud82
du -sh /var/lib/owncloud/*    # check how much disk space each user occupies.
univention-app update
univention-app list owncloud82     # print out avaiable versions
univention-app install owncloud82=9.1.4-20170330

If you are logged in to the Univention Management Console, it is advised to log out and in again for all modules to register the change.

Verify ownCloud UCS settings in Docker container

univention-app shell owncloud82 ucr search --brief ^owncloud > /root/owncloud-ucr-settings-9.1.4.txt
diff -u /root/owncloud-ucr-settings*

Further configurations or modifications of UCR settings have to be done in the container from now on. Use the following command to change into the new ownCloud App container:

univention-app shell owncloud82
Personal tools