Moin,
Ich müsste dieses Thema weiter anschneiden, wollte kein neues dafür öffnen.
Mein SD Karte hat es erwischt und Ich habe eine neue Karte mit neuem FHEM gemacht, nun wollte Ich meine ConfigDB in das Fhem Verzeichnis kopieren und die Datenbank starten. Leider möchte Fhem das nicht.
Folgende Fehlermeldung kommt:
pi@raspberrypi:/opt/fhem $ perl -I /opt/fhem/FHEM fhem.pl configDB
2019.10.31 11:13:22 1: PERL WARNING: DBD::SQLite::db do failed: attempt to write a readonly database at configDB.pm line 297.
DBD::SQLite::db do failed: attempt to write a readonly database at configDB.pm line 297.
2019.10.31 11:13:22 1: PERL WARNING: Issuing rollback() due to DESTROY without explicit disconnect() of DBD::SQLite::db handle dbname=/opt/fhem/configDB.db at configDB.pm line 297.
Ich habe der Datenbank dem Besitzer fhem und der Gruppe dailout zugeschrieben
pi@raspberrypi:/opt/fhem $ ls -al
insgesamt 192416
drwxr-xr-x 10 fhem dialout 4096 Okt 31 11:07 .
drwxr-xr-x 4 root root 4096 Okt 31 10:29 ..
-rw-r--r-- 1 fhem dialout 312696 Okt 31 11:07 CHANGED
-rwxr-xr-x 1 fhem dialout 96 Okt 31 10:30 configDB.conf
-rwxr-xr-x 1 fhem dialout 196354048 Okt 31 10:30 configDB.db
-rwxr-xr-x 1 fhem dialout 39782 Okt 31 11:07 configDB.pm
drwxr-xr-x 44 fhem dialout 4096 Okt 31 10:29 contrib
drwxr-xr-x 3 fhem dialout 4096 Okt 31 10:29 demolog
drwxr-xr-x 4 fhem dialout 4096 Okt 31 10:29 docs
drwxr-xr-x 6 fhem dialout 36864 Okt 31 11:07 FHEM
-rwxr-xr-x 1 fhem dialout 516 Okt 7 2018 fhem.cfg
-rwxr-xr-x 1 fhem dialout 25544 Okt 31 11:07 fhem.cfg.demo
-rwxr-xr-x 1 fhem dialout 159476 Okt 31 11:07 fhem.pl
drwxr-xr-x 2 fhem dialout 4096 Okt 31 10:34 log
-rwxr-xr-x 1 fhem dialout 41924 Okt 31 11:07 MAINTAINER.txt
-rwxr-xr-x 1 fhem dialout 935 Okt 7 2018 README_DEMO.txt
drwxr-xr-x 3 fhem dialout 4096 Okt 31 11:07 restoreDir
drwxr-xr-x 2 fhem dialout 4096 Okt 31 11:07 unused
drwxr-xr-x 10 fhem dialout 4096 Okt 31 11:04 www
Wenn Ich FHEM per CFG starte, kann Ich problemlos auf die Oberfläche zugreifen.
Bei Zugriff über ConfigDB keine Chance.
Lg
Ralf