DBLog/mySQL Problem nach Raspberry Neuinstallation

Begonnen von Steffen@Home, 08 November 2022, 17:30:26

Vorheriges Thema - Nächstes Thema

Steffen@Home

Hallo Zusammen,

ich habe mein FHEM Backup erfolgreich zurückgespielt aber irgendwas passt mit DBLog / DBLogMaria und meinem Zugriff auf meine Datenbank auf meinem NAS nicht:

Ich habe die abhängigen Pakete installiert wie damals:
sudo apt-get update && apt-get install mysql-client libdbd-mysql libdbd-mysql-perl
sudo apt-get install libxml-parser-lite-perl
sudo apt-get install libxml-simple-perl
sudo apt-get install libsoap-lite-perl


Fehlermeldung:

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib ./lib ./FHEM ./ /usr/local/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 354) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Mem, Proxy, SQLite, Sponge.
at ./FHEM/93_DbLog.pm line 2975.




Habe ich was vergessen ?
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine

Steffen@Home

#1
Ah, das Paket mysql-client gibt es wohl nicht mehr und wurde durch mariadb-client-10.0 ersetzt.

Wie installiere ich dieses paket?
Einfach mit sudo apt-get install mariadb-client installieren oder müssen dann noch andere Dinge geändert werden ?

Danke!
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine

DS_Starter

Es sollte alles installieren wenn du ausführst:


sudo apt-get install mariadb-server


das installiert:


libhtml-template-perl libjemalloc1 libreadline5 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common
mariadb-server-10.1 mariadb-server-core-10.1 rsync socat
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Steffen@Home

Danke für die Antwort, leider hat sich dabei nichts geändert.

Was kann ich noch tun ?
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine

Steffen@Home

perldoc DBD::mysql
liefert:
Zitat"You need to install the perl-doc package to usw this program"

perl -MDBD::mysql -le'print $DBD::mysql::VERSION'

liefert:

ZitatCan't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl).
BEGIN failed--compilation aborted.
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine

DS_Starter

Wenn du explizit nochmal


sudo apt-get install libdbd-mysql


ausführst ?
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Steffen@Home

Das Ergebnis ist aber immer noch das selbe  :(

mysqlReading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed:
  libdbi1
The following NEW packages will be installed:
  libdbd-mysql libdbi1
0 upgraded, 2 newly installed, 0 to remove and 120 not upgraded.
Need to get 175 kB of archives.
After this operation, 387 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian bullseye/main armhf libdbi1 armhf 0.9.0-6 [24.2 kB]
Get:2 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian bullseye/main armhf libdbd-mysql armhf 0.9.0-9 [150 kB]
Fetched 175 kB in 1s (316 kB/s)       
Selecting previously unselected package libdbi1:armhf.
(Reading database ... 77463 files and directories currently installed.) Preparing to unpack .../libdbi1_0.9.0-6_armhf.deb ...
Unpacking libdbi1:armhf (0.9.0-6) ...
Selecting previously unselected package libdbd-mysql:armhf.
Preparing to unpack .../libdbd-mysql_0.9.0-9_armhf.deb ...
Unpacking libdbd-mysql:armhf (0.9.0-9) ...
Setting up libdbi1:armhf (0.9.0-6) ...
Setting up libdbd-mysql:armhf (0.9.0-9) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ...
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine

DS_Starter

ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Steffen@Home

ja klar  ;)

perldoc DBD::mysql und perl -MDBD::mysql -le'print $DBD::mysql::VERSION'
liefern immer noch die selbe Ausgabe.. :-\
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine

DS_Starter

ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Steffen@Home

SUPER! Danke! das wars... keine Ahnung warum das jetzt auf einmal funktioniert, hatte die Befehle ja schon ganz Anfangs ausgeführt  :o
Jetzt ist der STATUS Connected.

Zitatsudo apt-get install libdbd-mysql-perl Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed:
  libdbd-mysql-perl
0 upgraded, 1 newly installed, 0 to remove and 120 not upgraded.
Need to get 114 kB of archives.
After this operation, 266 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libdbd-mysql-perl armhf 4.050-3+b1 [114 kB]
Fetched 114 kB in 0s (268 kB/s)           
Selecting previously unselected package libdbd-mysql-perl:armhf.
(Reading database ... 77500 files and directories currently installed.) Preparing to unpack .../libdbd-mysql-perl_4.050-3+b1_armhf.deb ...
Unpacking libdbd-mysql-perl:armhf (4.050-3+b1) ...
Setting up libdbd-mysql-perl:armhf (4.050-3+b1) ...
Processing triggers for man-db (2.9.4-2) ...

Zitatperl -MDBD::mysql -le'print $DBD::mysql::VERSION'
4.050
Pi 1 - FHEM, HM-MOD-RPI-PCB, HM-RT-CC-DN, HM-WDS10-TH-O, HM-Sec-SCo, HM-LC-Sw1PBU-FM, Relais Platine für ext. Ansteuerung, LD382 Wifi LED Controller, DHT
Pi 2 - Kamera, DHT
Pi 3 - FHEM2, Grafana, DHT, Magnet-Sensoren, Relais-Platine