Owncloud - Upgrades Howto:
Prinzipiell gilt bei Owncloud:
keine Major-Relases überspringen, d.h. jedes Major Release MUSS installiert sein, um ein Upgrade durchführen zu können.
Hierzu ist folgende Vorgehensweise praktikabel:
Entsprechendes Repository laden und entsprechend nach der Installation in der CLI das Webupdate durchführen
Repositories:
Quell-URL:
https://download.owncloud.org/download/repositories/<8.2>/owncloud/
Debian_8.0 owncloud-8.2.11-1.1
wget -nv https://download.owncloud.org/download/repositories/8.2/Debian_8.0/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/8.2/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Debian_8.0 owncloud-9.0.10-1.1
wget -nv https://download.owncloud.org/download/repositories/9.0/Debian_8.0/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/9.0/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Debian_8.0 owncloud-9.1.6-1.1
wget -nv https://download.owncloud.org/download/repositories/9.1/Debian_8.0/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/9.1/Debian_8.0/ /' > /etc/apt/sources.list.d/owncloud.list"
apt-get update
apt-get install owncloud
Debian_8.0 owncloud-files-10.0.2-1.1
wget -nv https://download.owncloud.org/download/repositories/10.0/Debian_8.0/Release.key -O Release.key
apt-key add - < Release.key
sh -c "echo 'deb http://download.owncloud.org/download/repositories/10.0/Debian_8.0/ /' > /etc/apt/sources.list.d /owncloud.list"
apt-get update
apt-get install owncloud-files
Debian_9.0 owncloud-files-10.5
wget -nv https://download.owncloud.org/download/repositories/10.5/Debian_9.0/Release.key -O Release.key
apt-key add - < Release.key
Debian_9.0 owncloud-files-10.9
wget -nv https://download.owncloud.org/download/repositories/10.9/Debian_9.0/Release.key -O Release.key
apt-key add - < Release.key
Integritätsprüfung:
Mit Einführen von 9.0 ist die Integitätsprüfung der Config-Files eingeführt worden, wenns zu nicht nachvollziehbaren Meldungen kommt, kann diese "elegant" deaktiviert werden:
config.php um den Eintrag 'integrity.check.disabled' => true, erweitern
Befehle für Maintenance:
sudo -u www-data php occ upgrade
sudo -u www-data php occ maintenance:mode --off
sudo -u www-data php occ maintenance:mode --on
Korrekte Berechtigungen setzen:
sudo chown -R www-data:www-data /var/www/owncloud
Upgrade Prozess einleiten:
sudo -u www-data php occ upgrade
Fehler nach Upgrade:
Owncloud meldet nach Update "APCu not available for local cache"
in Datei /etc/php/7.2/cli/php.ini
folgenden Eintrag am Ende hinzufügen:
apc.enable_cli=1