Update nach langer Zeit.... Nextcloud Daten zerstört

Peter Schauder p_schauder at web.de
Mo Mär 5 15:29:42 CET 2018


So, viel versucht, aber nicht zum Abschluß gekommen:

Nextcloud funktioniert wieder in der Version 1.2.3, wenn ich ein altes
"config.php" zurückspiele.

Ich kann (immer auf meiner kopierten Spielumgebung) alle Pakete
updaten, aber sobald ich Mariadb aktualisiere und anschließend noch
Mariadb55 installieren, funktioniert zwar Mantis, Mediawiki und andere
Webanwendungen ohne Problem, aber die NextCloud beschwert sich über

OWNCLOUD_DB_TYPE='mysql'

ohne verfügbaren Databaseclient oder Database server.

 eisman query --installed mariadb*
   und
 eisman query --installed mysql*

bringen das hier als Ergebnis. Sieht für mich erstmal gut aus, oder?

name       mariadb55
version    2.12.2
short      MariaDB - Database Server 5.5
date       2017-09-05
url        https://www.pack-eis.de/dl.php?l=19941/mariadb55.tar.bz2
status     stable
---------------------------------------------------------

name       mysql-common
version    2.6.1
short      mysql-common - MariaDB/MySQL common scripts
date       2017-09-02
url        https://www.pack-eis.de/dl.php?l=19907/mysql-common.tar.bz2
status     stable
---------------------------------------------------------



 which mysql
/usr/bin/mysql
ServerNG #


Wenn ich jetzt einfach Nextcloud auf 1.3.3 update, dann hat es bisher
immer stress mit dem Data-Laufwerk gegeben. Das war dann irgendwann
nur noch ro-gemounted. Nach ein wenig forschen, hab ich einen anderen
Powerstecker vom Netzteil gewählt; jetzt scheint es stabil zu laufen,
zumindestens kann ich es mit den Aktionen, die vorher immer zu einem
RO geführt haben, nicht mehr erschrecken.

Ein Update der Nextcloud gibt jetzt (neben den Download Msg)

Installation of: nextcloud (1.3.3) ...
nextcloud maintenance mode: enabled
nextcloud maintenance mode: enabled
removing program files ...
loading previous configuration file ...
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Updating database schema
Updated database
Disabled 3rd-party app: bruteforcesettings
Checking for update of app activity in appstore
/var/install/config.d/nextcloud.sh: line 5949:
/var/nextcloud/nextcloud-disabled-apps.txt: No such file or directory
/var/install/config.d/nextcloud.sh: line 5963:
/var/nextcloud/nextcloud-disabled-apps.txt: No such file or directory
/var/install/config.d/nextcloud.sh: line 5978:
/var/nextcloud/nextcloud-disabled-apps.txt: No such file or directory
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Disabled 3rd-party app: bruteforcesettings
Checking for update of app activity in appstore
/var/install/config.d/nextcloud.sh: line 5949:
/var/nextcloud/nextcloud-disabled-apps.txt: No such file or directory
/var/install/config.d/nextcloud.sh: line 5963:
/var/nextcloud/nextcloud-disabled-apps.txt: No such file or directory
/var/install/config.d/nextcloud.sh: line 5978:
/var/nextcloud/nextcloud-disabled-apps.txt: No such file or directory
owncloud maintenance mode: enabled
----------------------------------------------------------------
The maintenance mode is still active at this stage!
You should follow these instructions to solve the problem:

1. switch to the webserver user: # su - wwwrun
2. change directory            : > cd /var/www/NCNG
3. check the current directory : > pwd
                               : /var/www/NCNG
4. fix the previously described:
   problems by using occ, e.g. : > ./occ app:disable gallery
                               : gallery disabled
5. run update check            : > ./occ upgrade
                               : Update successful
6. disable the maintenance mode: > ./occ  maintenance:mode --off
                               : Maintenance mode disabled
----------------------------------------------------------------

Configuration messages appeared, please check configuration

Im Gegensatz zur Version 1.2.3 gibt es jetzt bei neu-Aktivieren der
Konfiguration aber keine Mecker zu einem nicht vorhandenen mysql.

Ein Update auf der Weboberfläche bringt Seitenlange Fehlermeldungen.
Hier mal die ersten paar Zeilen:

Doctrine\DBAL\Exception\DriverException: An exception occurred while
executing 'INSERT INTO `nc_appconfig`
(`appid`,`configkey`,`configvalue`) SELECT ?,?,? FROM `nc_appconfig`
WHERE `appid` = ? AND `configkey` = ? HAVING COUNT(*) = 0' with params
["core", "oc.integritycheck.checker",
"{\"core\":{\"EXTRA_FILE\":{\"lib\\\/l10n\\\/eu.js\":{\"expected\":\"\",\"current\":\"7c935c90d7c472a223f7c9f0194f748ee9775e858ae8c7c4514caa96b426bf884505c8fd8e7aadb463d9d9c26179de0943ddb48afb290e7b799e9f493296f79f\"},\"lib\\\/l10n\\\/eu.json\":{\"expected\":\"\",\"current\":\"a652448b6ae7b9ef1b92d756027a537d5388045094ccb56d08c248d643f95c2a1fd56aa1b6a31787ef12ada189c9819b31f9d3666b56f7301b356c61e067bed6\"},\"lib\\\/public\\\/IDb.php\":{\"expected\":\"\",\"current\":\"21453ad2c6a79bcdbeba5160195ffcaa32e9ec8669f4e2cbf79525b85ea751ab5b4f1a6d06637870ff42b2d43fcecbae29438017e8f524c26f9d86fe4dff2f5b\"},\"lib\\\/private\\\/Share\\\/Share.php~\":{\"expected\":\"\",\"current\":\"a2187667a1f1cbee17d54f885c9998f5b2c19ee48f31ada3f3029d1046420ad3fcfa347598f263be753df279f33ec03dea675b35a046356ab14d451ce5f6da17\"},\"lib\\\/private\\\/Share\\\/MailNotifications.php\":{\"expected\":\"\",



Das ganze ist ziemlich länglich (ich schätze mal so 600
Bildschirmseiten voll) und für mich nichtssagend. Vielleicht kann ja
jemand was damit anfangen. 

Ich mache jetzt alles nochmal auf Anfang und versuche es nochmal von
Vorn. Aber bitte im Hinterkopf behalten: das
Datenbank-nicht-gefunden-Thema dürfte nichts mit dem Plattenproblem zu
tun haben.

Gruß
Peter



Mehr Informationen über die Mailingliste Eisfair