MariaDB Problem nach Upgrade auf Debian bullseye

deimos

New Member
Hallo,
habe ein Upgrade auf Debian 11 mit Update von phpMyAdmin durchgeführt nach diesen Anleitungen:
https://www.howtoforge.com/update-the-ispconfig-perfect-server-from-debian-10-to-debian-11/
und
https://www.howtoforge.com/how-to-upgrade-from-debian-10-to-debian-11/
Seit dem gibt es ein Problem mit dem DB Server das Backup der DB in ISPConfig bringt einen Fehler,
Failed to make backup of database xxx_xxx_yy, because mysqldump failed
Im DB Error Log gibt es einige Einträge wie (vor dem Upgrade gab es keine Einträge im Log):
[Warning] Access denied for user 'root'@'localhost' (using password: YES)
[Warning] Aborted connection 9 to db: 'unconnected' user: 'unauthenticated' host: 'localhost' (This connection closed normally without authentication)
[Warning] Aborted connection 1002 to db: 'dbispconfig' user: 'ispconfig' host: 'localhost' (Got an error reading communication packets)
[ERROR] Incorrect definition of table mysql.proc: expected column 'sql_mode' at position 14 to have type set ...
Auch mehrere Einträge die ich im DB Error Log noch nicht gesehen habe wie:
[Warning] IP address '35.195.93.98' has been resolved to the host name '98.93.195.35.bc.googleusercontent.com', which resembles IPv4-address itself.
[Warning] Aborted connection 4528 to db: 'unconnected' user: 'unauthenticated' host: '35.195.93.98' (This connection closed normally without authentication)

Der Zugriff mit phpMyAdmin funktioniert, das einzige was mir hier auffällt, bei Webserver steht PHP-Version: 8.1.4 / Datenbank-Client Version: libmysql - mysqlnd 8.1.4 sollte es nicht 7.4.x sein?

Hat jemand eine Idee was da beim Upgrade schief gelaufen ist und wie ich das Problem beheben kann?
Vielen Dank im Voraus für eure Hilfe
Gruss Ralf
 

Till

Administrator
Ja, die PHP Version von Debian 11 ist 7.4, da hast Du vermutlich eine PHP version von sury als default aktiviert.

Ruf auf:

update-alternatives --config php
update-alternatives --config php-cgi

und wähle 7.4 aus. Möglicherweise must Du auch noch mehr umstellen wie php-fpm und ggf. mod_php, falls es installiert ist.
 

deimos

New Member
Hallo Till,
als du sury erwäht hast ist mir aufgefallen das ich 7.4 von sury in Debian 10 installiert hatte.
Habe in ISPConfig unter Zusätzliche PHP Versionen den Eintrag deaktiviert und dann gelöscht (webs waren keine mehr aktiv). Zusätzlich ist mir aufgefallen das in System -> Server Config -> FastCGI noch
FastCGI php.ini Pfad: /etc/php/7.3/cgi/ stand, geändert auf 7.4
Noch mal kontrolliert:
update-alternatives --config php
update-alternatives --config php-cgi
update-alternatives --config php-cgi-bin
update-alternatives --config php-fpm.sock
Alle stehen auf php 7.4
Zur Vorsicht ispconfig_update.sh --force ausgeführt
In phpMyAdmin (root Login funktioniert) stand leider noch immer PHP-Version: 8.1.4.
Kontrolle:
/etc/apache2/mods-enabled -> war noch php7.3 aktiv
a2dismod php7.3
a2enmod php7.4
/etc/apache2/conf-enabled -> php7.4-fpm.conf + php8.1-fpm.conf aktiv
a2disconf php8.1-fpm
Noch mal reboot + ispconfig_update.sh --force ausgeführt
Endlich phpMyAdmin zeigt PHP-Version: 7.4.28.
Test - Backup der DB in ISPConfig bringt immer noch den gleichen Fehler.
Test:
systemctl status mysql
Starting MariaDB 10.5.15 database server
debian-start[688]: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Dachte vielleicht über:
mysql_secure_installation
Change the root password? [Y/n] y
New password:
Re-enter new password:
ERROR 1146 (42S02) at line 1: Table 'mysql.global_priv' doesn't exist
Password update failed!
Auch bei:
Switch to unix_socket authentication [Y/n] y
ERROR 1146 (42S02) at line 1: Table 'mysql.global_priv' doesn't exist
Failed!
Login per mysql -u root -p und phpMyAdmin funktionieren.
Würde vielleicht ein
dpkg-reconfigure mariadb-server
oder
apt-get install mariadb-client mariadb-server --reinstall helfen?
Und verliere ich bei der Ausführung die Daten in allen vorhandenen Datenbanken?
Gibt es noch eine andere Lösung?
Gruss
Ralf
 

Till

Administrator
Schau mal hier:


an sich macht das apt während des upgrades selbst, aber scheinbar ist da bei Dir was schief gelaufen. Ruf es mal manuell auf.
 

Werbung

Top