<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #3: Migrate ownCloud from GreenQloud</title>
    <link>https://trac.crin.org/trac/ticket/3</link>
    <description>&lt;p&gt;
Migrate the ownCloud site from the GreenQloud server to crin1.crin.org.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/3</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 01 May 2015 14:08:57 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/3#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;1.6&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;1.6&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Following the install instructions:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="ext-link" href="https://owncloud.org/install/#instructions-server"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://owncloud.org/install/#instructions-server&lt;/a&gt;
&lt;/li&gt;&lt;li&gt;&lt;a class="ext-link" href="https://software.opensuse.org/download/package?project=isv:ownCloud:community&amp;amp;package=owncloud"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://software.opensuse.org/download/package?project=isv:ownCloud:community&amp;amp;package=owncloud&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class="citation"&gt;
&lt;p&gt;
For Debian 8.0 run the following as root:
&lt;/p&gt;
&lt;pre class="wiki"&gt;echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /' &amp;gt;&amp;gt; /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud
&lt;/pre&gt;&lt;p&gt;
You can add the repository key to apt. Keep in mind that the owner of the key may distribute updates, packages and repositories that your system will trust (more information). To add the key, run:
&lt;/p&gt;
&lt;pre class="wiki"&gt;wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_8.0/Release.key
apt-key add - &amp;lt; Release.key
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;
So &lt;tt&gt;/etc/apt/sources.list.d/owncloud.list&lt;/tt&gt; was created containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;# See https://trac.crin.org/trac/ticket/3
deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_8.0/ /
&lt;/pre&gt;&lt;p&gt;
And the GPG key was installed:
&lt;/p&gt;
&lt;pre class="wiki"&gt;wget http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_8.0/Release.key -O opensuse.asc
cat opensuse.asc | apt-key add -
  OK
&lt;/pre&gt;&lt;p&gt;
These ownCloud packges are now available:
&lt;/p&gt;
&lt;pre class="wiki"&gt;aptitude upadate
aptitude search owncloud
p   libowncloudsync-dev                                 - development files for owncloudsync
p   libowncloudsync0                                    - ownCloudSync folder synchronization - libraries
p   owncloud                                            - ownCloud Server - Private file sync and share server
p   owncloud-3rdparty                                   - The ownCloud app owncloud-3rdparty
p   owncloud-app-activity                               - The ownCloud app owncloud-app-activity
p   owncloud-app-external                               - The ownCloud app owncloud-app-external
p   owncloud-app-files                                  - The ownCloud app owncloud-app-files
p   owncloud-app-files-encryption                       - The ownCloud app owncloud-app-files-encryption
p   owncloud-app-files-external                         - The ownCloud app owncloud-app-files-external
p   owncloud-app-files-locking                          - The ownCloud app owncloud-app-files-locking
p   owncloud-app-files-pdfviewer                        - The ownCloud app owncloud-app-files-pdfviewer
p   owncloud-app-files-sharing                          - The ownCloud app owncloud-app-files-sharing
p   owncloud-app-files-texteditor                       - The ownCloud app owncloud-app-files-texteditor
p   owncloud-app-files-trashbin                         - The ownCloud app owncloud-app-files-trashbin
p   owncloud-app-files-versions                         - The ownCloud app owncloud-app-files-versions
p   owncloud-app-files-videoviewer                      - The ownCloud app owncloud-app-files-videoviewer
p   owncloud-app-firstrunwizard                         - The ownCloud app owncloud-app-firstrunwizard
p   owncloud-app-gallery                                - The ownCloud app owncloud-app-gallery
p   owncloud-app-provisioning-api                       - The ownCloud app owncloud-app-provisioning-api
p   owncloud-app-templateeditor                         - The ownCloud app owncloud-app-templateeditor
p   owncloud-app-updater                                - The ownCloud app owncloud-app-updater
p   owncloud-app-user-external                          - The ownCloud app owncloud-app-user-external
p   owncloud-app-user-ldap                              - The ownCloud app owncloud-app-user-ldap
p   owncloud-app-user-webdavauth                        - The ownCloud app owncloud-app-user-webdavauth
p   owncloud-apps                                       - third party applications for ownCloud
p   owncloud-client                                     - folder synchronization with an ownCloud server - GUI
p   owncloud-client-cmd                                 - folder synchronization with an ownCloud server - cmd client
p   owncloud-client-doc                                 - ownCloudSync folder synchronization - documentation
p   owncloud-client-l10n                                - ownCloudSync folder synchronization - localization
p   owncloud-config-apache                              - The ownCloud configuration for the apache web server
p   owncloud-doc                                        - documentation for ownCloud
p   owncloud-server                                     - The owncloud-server package
v   owncloud-server-core                                -
&lt;/pre&gt;&lt;p&gt;
The packages installed on web2.crin.org are:
&lt;/p&gt;
&lt;pre class="wiki"&gt;aptitude search owncloud | grep ^i
i   owncloud                        - ownCloud Server - Private file sync and sh
i A owncloud-3rdparty               - The ownCloud app owncloud-3rdparty
i A owncloud-app-activity           - The ownCloud app owncloud-app-activity
i A owncloud-app-external           - The ownCloud app owncloud-app-external
i A owncloud-app-files              - The ownCloud app owncloud-app-files
i A owncloud-app-files-encryption   - The ownCloud app owncloud-app-files-encryp
i A owncloud-app-files-external     - The ownCloud app owncloud-app-files-extern
i A owncloud-app-files-locking      - The ownCloud app owncloud-app-files-lockin
i A owncloud-app-files-pdfviewer    - The ownCloud app owncloud-app-files-pdfvie
i A owncloud-app-files-sharing      - The ownCloud app owncloud-app-files-sharin
i A owncloud-app-files-texteditor   - The ownCloud app owncloud-app-files-texted
i A owncloud-app-files-trashbin     - The ownCloud app owncloud-app-files-trashb
i A owncloud-app-files-versions     - The ownCloud app owncloud-app-files-versio
i A owncloud-app-files-videoviewer  - The ownCloud app owncloud-app-files-videov
i A owncloud-app-firstrunwizard     - The ownCloud app owncloud-app-firstrunwiza
i A owncloud-app-gallery            - The ownCloud app owncloud-app-gallery
i A owncloud-app-provisioning-api   - The ownCloud app owncloud-app-provisioning
i A owncloud-app-templateeditor     - The ownCloud app owncloud-app-templateedit
i A owncloud-app-user-external      - The ownCloud app owncloud-app-user-externa
i A owncloud-app-user-ldap          - The ownCloud app owncloud-app-user-ldap
i A owncloud-app-user-webdavauth    - The ownCloud app owncloud-app-user-webdava
i A owncloud-config-apache          - The ownCloud configuration for the apache
i A owncloud-server                 - The owncloud-server package
&lt;/pre&gt;&lt;p&gt;
So these were installed:
&lt;/p&gt;
&lt;pre class="wiki"&gt;aptitude install owncloud owncloud-3rdparty owncloud-app-activity owncloud-app-external owncloud-app-files owncloud-app-files-encryption owncloud-app-files-external owncloud-app-files-locking owncloud-app-files-pdfviewer owncloud-app-files-sharing owncloud-app-files-texteditor owncloud-app-files-trashbin owncloud-app-files-versions owncloud-app-files-videoviewer owncloud-app-firstrunwizard owncloud-app-gallery owncloud-app-provisioning-api owncloud-app-templateeditor owncloud-app-user-external owncloud-app-user-ldap owncloud-app-user-webdavauth owncloud-config-apache owncloud-server
  The following NEW packages will be installed:
    curl{a} libmcrypt4{a} libpq5{a} mysql-server{a} owncloud owncloud-3rdparty owncloud-app-activity
    owncloud-app-external owncloud-app-files owncloud-app-files-encryption owncloud-app-files-external
    owncloud-app-files-locking owncloud-app-files-pdfviewer owncloud-app-files-sharing owncloud-app-files-texteditor
    owncloud-app-files-trashbin owncloud-app-files-versions owncloud-app-files-videoviewer
    owncloud-app-firstrunwizard owncloud-app-gallery owncloud-app-provisioning-api owncloud-app-templateeditor
    owncloud-app-user-external owncloud-app-user-ldap owncloud-app-user-webdavauth owncloud-config-apache
    owncloud-server php5{a} php5-mcrypt{a} php5-pgsql{a} php5-sqlite{a}
  0 packages upgraded, 31 newly installed, 0 to remove and 0 not upgraded.
  Need to get 17.8 MB of archives. After unpacking 73.1 MB will be used.
  Do you want to continue? [Y/n/?] y
&lt;/pre&gt;&lt;p&gt;
The install has enabled &lt;tt&gt;/etc/apache/conf-available/owncloud.conf&lt;/tt&gt; via the &lt;tt&gt;/etc/apache/conf-enabled/owncloud.conf&lt;/tt&gt; symlink, we don't want &lt;tt&gt;/owncloud&lt;/tt&gt; to work for all domains on the server so that symlink was deleted, the file contains:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Alias /owncloud "/var/www/owncloud/"
&amp;lt;Directory "/var/www/owncloud"&amp;gt;
    Options +FollowSymLinks
    AllowOverride All
&amp;lt;/Directory&amp;gt;
&lt;/pre&gt;&lt;p&gt;
An apache config was created at &lt;tt&gt;/etc/apache2/sites-available/owncloud.conf&lt;/tt&gt; containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;&amp;lt;VirtualHost *:80&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID owncloud owncloud
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerName cloud.crin.org
        ServerAlias www.cloud.crin.org
        ServerAlias cloud.crin1.crin.org
        &amp;lt;If "%{HTTP_HOST} == 'cloud.crin.org'"&amp;gt;
                Redirect / https://cloud.crin.org/
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'www.cloud.crin.org'"&amp;gt;
                Redirect / https://cloud.crin.org/
        &amp;lt;/If&amp;gt;
        &amp;lt;If "%{HTTP_HOST} == 'cloud.crin1.crin.org'"&amp;gt;
                Redirect / https://cloud.crin1.crin.org/
        &amp;lt;/If&amp;gt;
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;IfModule mod_ssl.c&amp;gt;
&amp;lt;VirtualHost *:443&amp;gt;
        &amp;lt;IfModule mpm_itk_module&amp;gt;
                AssignUserID owncloud owncloud
                MaxClientsVHost 60
        &amp;lt;/IfModule&amp;gt;
        ServerAdmin chris@webarchitects.co.uk
        ServerName cloud.crin.org
        ServerAlias www.cloud.crin.org
        ServerAlias cloud.crin1.crin.org
        SSLEngine on
        SSLCertificateFile    /etc/ssl/gandi/cloud.crt.pem
        SSLCertificateKeyFile /etc/ssl/gandi/cloud.key.pem
        SSLCACertificateFile  /etc/ssl/gandi/root.pem
        SetEnv TMPDIR /var/www/owncloud/tmp
        DocumentRoot /var/www/owncloud
        &amp;lt;Directory /&amp;gt;
                Options FollowSymLinks
                AllowOverride None
                Require all denied
        &amp;lt;/Directory&amp;gt;
        &amp;lt;Directory /var/www/owncloud&amp;gt;
                Options Indexes FollowSymLinks
                AllowOverride All
                Require all granted
        &amp;lt;/Directory&amp;gt;
        &amp;lt;IfModule mod_php5.c&amp;gt;
                php_admin_value open_basedir /var/www/owncloud
                php_admin_value upload_tmp_dir /var/www/owncloud/tmp
                php_admin_value session.save_path /var/www/owncloud/tmp
                php_admin_value file_uploads 1
        &amp;lt;/IfModule&amp;gt;
        ErrorLog ${APACHE_LOG_DIR}/owncloud.error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/owncloud.ssl_access.log combined
        &amp;lt;IfModule headers_module&amp;gt;
                # Use HTTP Strict Transport Security to force client to use secure connections only
                #Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
                Header always set Strict-Transport-Security "max-age=31536000"
                # mitigate TIME attack
                Header always append X-Frame-Options "sameorigin"
        &amp;lt;/IfModule&amp;gt;
        &amp;lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&amp;gt;
                SSLOptions +StdEnvVars
        &amp;lt;/FilesMatch&amp;gt;
        &amp;lt;Directory /usr/lib/cgi-bin&amp;gt;
                SSLOptions +StdEnvVars
        &amp;lt;/Directory&amp;gt;
        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        # MSIE 7 and newer should be able to use keepalive
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
&amp;lt;/VirtualHost&amp;gt;
&amp;lt;/IfModule&amp;gt;
&lt;/pre&gt;&lt;p&gt;
And then this was symlinked and tested:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd /etc/apache2/sites-enabled
ln -s ../sites-available/owncloud.conf 20-owncloud.conf
apache2ctl configtest
  AH00543: apache2: bad user name owncloud
  Action 'configtest' failed.
  The Apache error log may have more information.
&lt;/pre&gt;&lt;p&gt;
So the &lt;tt&gt;owncloud&lt;/tt&gt; user was created:
&lt;/p&gt;
&lt;pre class="wiki"&gt;adduser --system --disabled-password --disabled-login --group --home=/var/www/owncloud owncloud
  Warning: The home dir /var/www/owncloud you specified already exists.
  Adding system user `owncloud' (UID 113) ...
  Adding new group `owncloud' (GID 118) ...
  Adding new user `owncloud' (UID 113) with group `owncloud' ...
  The home directory `/var/www/owncloud' already exists.  Not copying from `/etc/skel'.
  adduser: Warning: The home directory `/var/www/owncloud' does not belong to the user you are currently creating.
apache2ctl configtest
  Syntax OK
&lt;/pre&gt;&lt;p&gt;
Creat a TMPDIR:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mkdir /var/www/owncloud/tmp
chown owncloud:owncloud /var/www/owncloud/tmp/
&lt;/pre&gt;&lt;p&gt;
Setup &lt;tt&gt;vim&lt;/tt&gt; for the &lt;tt&gt;owncloud&lt;/tt&gt; user and enable history:
&lt;/p&gt;
&lt;pre class="wiki"&gt;touch /var/www/owncloud/.vimrc ;chown owncloud:owncloud /var/www/owncloud/.vimrc
echo "syntax on" &amp;gt; /var/www/owncloud/.vimrc ; chown owncloud:owncloud /var/www/owncloud/.vimrc
touch /var/www/owncloud/.bash_history ;chown owncloud:owncloud /var/www/owncloud/.bash_history
&lt;/pre&gt;&lt;p&gt;
So now sync the data and create a script for future data syncs that will be needed before the DNS update.
&lt;/p&gt;
&lt;p&gt;
First create a MySQL database for the site:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mysql mysql
 mysql&amp;gt; CREATE DATABASE owncloud;
 mysql&amp;gt; GRANT ALL ON owncloud.* to 'owncloud'@'localhost' identified by 'XXX';
 mysql&amp;gt; FLUSH PRIVILEGES;
&lt;/pre&gt;&lt;p&gt;
Initial sync of files:
&lt;/p&gt;
&lt;pre class="wiki"&gt;rsync -av web2:/var/www/owncloud/apps/ /var/www/owncloud/apps/
rsync -av web2:/var/www/owncloud/config/ /var/www/owncloud/config/
rsync -av web2:/var/www/owncloud/data/ /var/www/owncloud/data/
&lt;/pre&gt;&lt;p&gt;
Update the &lt;tt&gt;/var/www/owncloud/config/config.php&lt;/tt&gt; with the correct MySQL details.
&lt;/p&gt;
&lt;p&gt;
Create a script for future sycncs, &lt;tt&gt;/root/bin/owncloud-sync&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#!/bin/bash
rsync -av web2:/var/www/owncloud/apps/ /var/www/owncloud/apps/
rsync -av web2:/var/www/owncloud/config/ /var/www/owncloud/config/
rsync -av web2:/var/www/owncloud/data/ /var/www/owncloud/data/
chown -R owncloud:owncloud  /var/www/owncloud/apps/
chown -R owncloud:owncloud  /var/www/owncloud/config/
chown -R owncloud:owncloud  /var/www/owncloud/data/
ssh web2 "mysqldump -uowncloud -pXXX cloud &amp;gt; /root/owncloud.sql"
scp web2:owncloud.sql /root/
cat /root/owncloud.sql | mysql owncloud
&lt;/pre&gt;&lt;p&gt;
And run it.
&lt;/p&gt;
&lt;p&gt;
Check for database updates:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - owncloud -s /bin/bash
php console.php upgrade
  PHP is configured to populate raw post data. Since PHP 5.6 this will lead to PHP throwing notices for perfectly valid code.
  To fix this issue set &amp;lt;code&amp;gt;always_populate_raw_post_data&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; in your php.ini
&lt;/pre&gt;&lt;p&gt;
So that was added to the Apache config for the site and also to &lt;tt&gt;/etc/php5/cli/php.ini&lt;/tt&gt;, try again:
&lt;/p&gt;
&lt;pre class="wiki"&gt;su - owncloud -s /bin/bash
php console.php upgrade
  ownCloud is already latest version
&lt;/pre&gt;&lt;p&gt;
Restart Apache and test at &lt;a class="ext-link" href="https://cloud.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin1.crin.org/&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
And the login doesn't work, no error, it just doesn't log one in.
&lt;/p&gt;
&lt;p&gt;
This variables was changed in &lt;tt&gt;/var/www/owncloud/config/config.php&lt;/tt&gt; just in case that helped:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  'overwrite.cli.url' =&amp;gt; 'https://cloud.crin1.crin.org',
&lt;/pre&gt;&lt;p&gt;
But it don't help.
&lt;/p&gt;
&lt;p&gt;
I think I need to look up documentation on migrating sites / and or how to change the admin password to solve this.
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Sat, 02 May 2015 10:38:14 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/3#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.6&lt;/em&gt; to &lt;em&gt;2.1&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
There is a document &lt;a class="ext-link" href="https://doc.owncloud.com/server/7.0EE/admin_manual/operations/migrating_to_a_different_server.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Migrating to a Different Server&lt;/a&gt; which only differs in as much as it advises that the site should first be put into "maintenance mode".
&lt;/p&gt;
&lt;p&gt;
The site can be put into "maintenance mode" using the occ comand line interface, see &lt;a class="ext-link" href="https://doc.owncloud.com/server/7.0EE/admin_manual/configuration_server/occ_command.html"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Using the occ Command&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
So trying that, on the live server:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
su - cloud -s /bin/bash
php occ maintenance:mode --on
Maintenance mode enabled
&lt;/pre&gt;&lt;p&gt;
Check the status at &lt;a class="ext-link" href="https://cloud.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin.org/&lt;/a&gt; then run the data sync command on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
bash bin/owncloud-sync
&lt;/pre&gt;&lt;p&gt;
Now the site at &lt;a class="ext-link" href="https://cloud.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin1.crin.org/&lt;/a&gt; works (no idea why it wasn't yesterday) but isn't in "maintenance mode"...
&lt;/p&gt;
&lt;p&gt;
Migration script updated to add these steps:
&lt;/p&gt;
&lt;pre class="wiki"&gt;#!/bin/bash
# enable maintainance mode on remote server
ssh web2 "sudo -u cloud php /var/www/owncloud/occ maintenance:mode --on"
rsync -av web2:/var/www/owncloud/apps/ /var/www/owncloud/apps/
#rsync -av web2:/var/www/owncloud/config/ /var/www/owncloud/config/
rsync -av web2:/var/www/owncloud/data/ /var/www/owncloud/data/
chown -R owncloud:owncloud  /var/www/owncloud/apps/
chown -R owncloud:owncloud  /var/www/owncloud/config/
chown -R owncloud:owncloud  /var/www/owncloud/data/
ssh web2 "mysqldump -uowncloud -pXXX owncloud &amp;gt; /root/owncloud.sql"
scp web2:owncloud.sql /root/
cat /root/owncloud.sql | mysql owncloud
# disable maintainance mode on remote server
ssh web2 "sudo -u cloud php /var/www/owncloud/occ maintenance:mode --on"
&lt;/pre&gt;&lt;p&gt;
Maintainance mode on the live server was switched off.
&lt;/p&gt;
&lt;p&gt;
The &lt;a class="ext-link" href="https://cloud.crin1.crin.org/index.php/settings/admin"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;admin interface displays&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Configuration Checks
No problems found
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
So I think this application is now ready to be migrated.
&lt;/p&gt;
&lt;p&gt;
A start has been made on documenting ownCloud at &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/OwnCloud"&gt;wiki:OwnCloud&lt;/a&gt;.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 07 May 2015 10:57:53 GMT</pubDate>
      <title>hours, estimatedhours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/3#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.05&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;estimatedhours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;2.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.1&lt;/em&gt; to &lt;em&gt;2.15&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
2h 6m have been spent on this ticket so far, it's now ready for testing at &lt;a class="ext-link" href="https://cloud.crin1.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin1.crin.org/&lt;/a&gt; and if everything is good it can be quickly updated prior to a DNS switch using the &lt;tt&gt;/root/bin/owncloud-sync&lt;/tt&gt; script on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt;, I'm adding a total estimated time to this ticket of 2.5 hours.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>jonas</dc:creator>

      <pubDate>Thu, 07 May 2015 11:23:16 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/3#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:4</guid>
      <description>
        &lt;p&gt;
I tried ownCloud and it opens and displays all the files. However, opening files is very slow. Could have to do with my connection as well though..
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 05 Jun 2015 17:12:17 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/3#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.15&lt;/em&gt; to &lt;em&gt;2.4&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Doing a final sync before the DNS update on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
bash bin/owncloud-sync
&lt;/pre&gt;&lt;p&gt;
Update ownCloud and other Debian packages:
&lt;/p&gt;
&lt;pre class="wiki"&gt;a-up
su - owncloud -s /bin/bash
php console.php upgrade
  Turned on maintenance mode
  Checked database schema update
  Checked database schema update for apps
  Updated database
  Disabled 3rd-party app: documents
  Turned off maintenance mode
  Update successful
&lt;/pre&gt;&lt;p&gt;
Tried to update the DNS but I don't have the right username and password, so will come back to this later.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 05 Jun 2015 17:13:14 GMT</pubDate>
      <title>cc changed</title>
      <link>https://trac.crin.org/trac/ticket/3#comment:6</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;cc&lt;/strong&gt;
              &lt;em&gt;jenny&lt;/em&gt; &lt;em&gt;gillian&lt;/em&gt; added; &lt;em&gt;jonas&lt;/em&gt; removed
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Added Jenny and Gillian as CCs for this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Fri, 05 Jun 2015 18:39:31 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/3#comment:7</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/3#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.4&lt;/em&gt; to &lt;em&gt;2.55&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have updated the dns for ownCloud so in a while accessing &lt;a class="ext-link" href="https://cloud.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://cloud.crin.org/&lt;/a&gt; should result in people getting the &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; server. The 1984.is DNS have updated:
&lt;/p&gt;
&lt;pre class="wiki"&gt;dig @NS0.1984.IS cloud.crin.org +short
  93.95.228.179
&lt;/pre&gt;&lt;p&gt;
The site on the GreenCloud server is in maintenance mode, so this ticket is now being closed, if there are any problems new tickets can be opened.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>