Datenbankproblem nach Update von Ubuntu 16.04 auf 18.04

Hallo Community,

zunÀchst herzlichen Dank an alle freiwilligen Entwickler und Supporter! Ich habe Nextcloud schon seit 2018 im privaten Betrieb und bin stets zufrieden. Heute ist das erste Mal, dass ich externe Hilfe benötige.

Leider musste ich aufgrund fehlenden Betriebssystemssupports seitens Ubuntu auf die aktuellere Version 18.04 wechseln. Eigentlich wollte ich direkt weiter auf 21.04. aber zunÀchst wollte ich einen stabilen Betrieb sicherstellen. Dieser ist aber aktuell noch nicht gegeben.

Aktuell befasse ich mit der Datenbank. Die hat es wohl in Mitleidenschaft gezogen beim Upgrade. UnglĂŒcklicherweise fehlt mit der Datenbank-Dump aber ich konnte zumindest das Backup vom Ordner /var/lib/mysql ĂŒbernehmen.

Folgende Meldungen lese ich nach dem Start der Mariadb:

service mariadb status
● mariadb.service - MariaDB 10.3.29 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; masked; vendor preset: enabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─migrated-from-my.cnf-settings.conf
   Active: active (running) since Fri 2021-06-11 10:10:32 CEST; 1min 55s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 19529 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
  Process: 19527 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 19429 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
  Process: 19426 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 19425 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
 Main PID: 19496 (mysqld)
   Status: "Taking your SQL requests now..."
    Tasks: 31 (limit: 4915)
   CGroup: /system.slice/mariadb.service
           └─19496 /usr/sbin/mysqld

Jun 11 10:10:32 vmd13608.contabo.host systemd[1]: Started MariaDB 10.3.29 database server.
Jun 11 10:10:32 vmd13608.contabo.host mysqld[19496]: 2021-06-11 10:10:32 8 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Jun 11 10:10:32 vmd13608.contabo.host mysqld[19496]: 2021-06-11 10:10:32 9 [Warning] Access denied for user 'root'@'localhost' (using password: NO)
Jun 11 10:10:32 vmd13608.contabo.host /etc/mysql/debian-start[19534]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Jun 11 10:10:32 vmd13608.contabo.host /etc/mysql/debian-start[19534]: Looking for 'mysql' as: /usr/bin/mysql
Jun 11 10:10:32 vmd13608.contabo.host /etc/mysql/debian-start[19534]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Jun 11 10:10:32 vmd13608.contabo.host /etc/mysql/debian-start[19534]: Version check failed. Got the following error when calling the 'mysql' command line client
Jun 11 10:10:32 vmd13608.contabo.host /etc/mysql/debian-start[19534]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Jun 11 10:10:32 vmd13608.contabo.host /etc/mysql/debian-start[19534]: FATAL ERROR: Upgrade failed
Jun 11 10:10:33 vmd13608.contabo.host mysqld[19496]: 2021-06-11 10:10:33 10 [Warning] Access denied for user 'root'@'localhost' (using password: NO)

Mir ist klar, dass es sich dabei um ein Authentifizierungsproblem handeln mĂŒsste. Jedoch funktioniert der Login ĂŒber mysql -u root -p tadellos. Daher kann ich die Meldung nicht nachvollziehen. Das Passwort habe ich außerdem bereits vom User root zurĂŒckgesetzt.

Mysql ist down:

service mysql status
● mysql.service - LSB: Start and stop the mysql database server daemon
   Loaded: loaded (/etc/init.d/mysql; generated)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

Die Datenbank wird auch erkannt:

mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 60
Server version: 10.3.29-MariaDB-1:10.3.29+maria~bionic mariadb.org binary distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| nextcloud_db       |
| performance_schema |
+--------------------+
4 rows in set (0.003 sec)

Die HTTP/S-Anfrage an meinen nextcloud-server gibt folgende Meldung zurĂŒck:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Als ergÀnzende Info, es lÀuft ein nginx-server (nginx version: nginx/1.14.0,). Die noch nicht laufende Nextcloud-Version ist 20.0.10.

Ich bin aktuell etwas irritiert muss ich gestehen.

EDIT: Es lag an einem fehlenden php-Modul: php7.3-apcu. Somit konnte ich mir auch dieses Mal selbst weiter helfen. Ich hoffe so geht es auch noch viele Jahre weiter :smiley:

Danke und liebe GrĂŒĂŸe
peacepipe