openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Fragen zur Nutzung, Features, usw..
oefters
Beiträge: 5
Registriert: Do Jul 08, 2021 10:46 am

openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von oefters »

Hallo!

ich versuche gerade openwb auf meinem Raspberry mit einem volkszaehler Image zu installieren. Dabei habe ich das openwb-Installationsskript verwendet und den Webserver (nginx) für OpenWB konfiguriert. Inzwischen komme ich auf die openWB-Webseite.

Möchte ich nun dort die Datenschutzeinwilligung bestätigen und drücke auf Speichern, wird die openwb.conf-Datei auf dem raspberry zerschossen und ist anschließend leer. Ich habe das Installationsskript erneut ausgeführt und ein Backup der Datei erstellt. Der Fehler ist beliebig wiederholbar, immer wenn ich versuche die Config zu ändern wird die Datei geleert :-(

Hat jemand eine Idee?

Viele Grüße,
Dominik
Benutzeravatar
humschti
Beiträge: 554
Registriert: Mo Nov 25, 2019 8:25 am
Wohnort: Nürensdorf (Schweiz)

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von humschti »

was hast du denn für ein OS? richtige Pakete installiert und auch aktiv?
openWB Series 2 Duo mit EVU, 1/3 Umschaltung und abgesetztem Display, 16 kWp mit Solaredge, Ansteuerung Haushaltsgeräte mit Shelly
Tesla Model S und Cupra Born (SoC via EVCC)
oefters
Beiträge: 5
Registriert: Do Jul 08, 2021 10:46 am

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von oefters »

Auf dem PI ist Raspbian GNU/Linux 10 (buster).

Ich habe nochmals das Installationsskript ausgeführt und poste hier die Meldungen:

pi@raspberrypi:~ $ curl -s https://raw.githubusercontent.com/snaptec/openWB/mast er/openwb-install.sh | sudo sh
install required packages...
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Fetched 15.0 kB in 3s (4,595 B/s)
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor rect the problem.
...done
check for timezone
...ok
check for i2c bus
check for initial git clone
...ok
check for ramdisk
...ok
check for crontab
...added
disable cronjob logging
...ok
fix upload limit...OS Buster
installing pymodbus
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: pymodbus in /usr/local/lib/python2.7/dist-packag es (2.5.2)
Requirement already satisfied, skipping upgrade: six>=1.15.0 in /usr/local/lib/p ython2.7/dist-packages (from pymodbus) (1.16.0)
Requirement already satisfied, skipping upgrade: pyserial>=3.4 in /usr/local/lib /python2.7/dist-packages (from pymodbus) (3.5)
check for paho-mqtt
mqtt installed...
check for MCP4725
Adafruit_MCP4725 installed...
atreboot.sh started
loading config
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named Adafruit_MCP4725
Updating /var/www/html/openWB/openwb.conf...
Config file Update done.
Initializing Ramdisk /var/www/html/openWB/ramdisk
Trigger update of logfiles...
Ramdisk init done.
smarthome handler...
mqtt handler...
crontab 1...
executed
LAN/WLAN...
apache...
...changed
crontab 2...
packages 1...
evdev installed...
timezone...
cp: '/usr/share/zoneinfo/Europe/Berlin' and '/etc/localtime' are the same file
mosquitto...
updating mosquitto config file
[ ok ] Reloading network daemon configuration:: mosquitto.
packages 2...
mqtt installed...
docopt installed...
certifi installed...
aiohttp installed...
pymodbus installed...
jq installed...
version...
clear warning...
display update...
grep: /home/pi/.config/lxsession/LXDE-pi/autostart: No such file or directory
load versions...
update broker...
etprovider...
not activated, skipping
fix upload limit...OS Buster
apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
Action '-k graceful' failed.
The Apache error log may have more information.
2021-07-08 14:07:15: boot done :-)

Danke und

Viele Grüße,
Dominik
derNeueDet
Beiträge: 4229
Registriert: Mi Nov 11, 2020 7:16 pm

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von derNeueDet »

Reading package lists... Done
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor rect the problem


Behebe erst mal deine Fehler in deinem Package Manager. Da liegt was schief.



VG
Det
10kWp PV mit SMA Tripower 10000TL-10 (PE11 mit SDM72V2); 2,4kWp mit Solis 2.5 G6 (EE11 mit SDM120). OpenWB Standard+. EVU EM540 an einem Raspi mit Venus OS. BEV Mercedes EQA 250 (07/2023)
oefters
Beiträge: 5
Registriert: Do Jul 08, 2021 10:46 am

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von oefters »

Hi!

An dpkg scheint es nicht zu liegen. Der Fehler tritt jetzt nicht mehr auf, die Datei ist aber weiterhin leer. Als Webserver läuft aktuell nginx. Kann das damit zu tun haben? Unten das aktuelle Installationsprotokoll. Danke und

Viele Grüße,
Dominik

pi@raspberrypi:/var/www/html/openWB $ curl -s https://raw.githubusercontent.com/ snaptec/openWB/master/openwb-install.sh | sudo sh
install required packages...
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Reading package lists...
Building dependency tree...
Reading state information...
apache2 is already the newest version (2.4.38-3+deb10u4).
bc is already the newest version (1.07.1-2).
git is already the newest version (1:2.20.1-2+deb10u3).
i2c-tools is already the newest version (4.1-1).
jq is already the newest version (1.5+dfsg-2+b1).
libapache2-mod-php is already the newest version (2:7.3+69).
mosquitto is already the newest version (1.5.7-1+deb10u1).
mosquitto-clients is already the newest version (1.5.7-1+deb10u1).
php is already the newest version (2:7.3+69).
php-curl is already the newest version (2:7.3+69).
php-gd is already the newest version (2:7.3+69).
php-json is already the newest version (2:7.3+69).
php-xml is already the newest version (2:7.3+69).
socat is already the newest version (1.7.3.2-2).
sshpass is already the newest version (1.06-1).
vim is already the newest version (2:8.1.0875-5).
python-pip is already the newest version (18.1-5+rpt1).
python3-pip is already the newest version (18.1-5+rpt1).
raspberrypi-kernel-headers is already the newest version (1:1.20210527-1).
The following packages were automatically installed and are no longer required:
dbconfig-common dbconfig-mysql libmcrypt4 libzip4 php-bz2 php-php-gettext
php-phpseclib php-tcpdf php-zip php7.1-common php7.1-mcrypt php7.3-bz2
php7.3-zip
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 200 not upgraded.
...done
check for timezone
...ok
check for i2c bus
check for initial git clone
...ok
check for ramdisk
...ok
check for crontab
...ok
disable cronjob logging
...ok
fix upload limit...OS Buster
installing pymodbus
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: pymodbus in /usr/local/lib/python2.7/dist-packag es (2.5.2)
Requirement already satisfied, skipping upgrade: six>=1.15.0 in /usr/local/lib/p ython2.7/dist-packages (from pymodbus) (1.16.0)
Requirement already satisfied, skipping upgrade: pyserial>=3.4 in /usr/local/lib /python2.7/dist-packages (from pymodbus) (3.5)
check for paho-mqtt
mqtt installed...
check for MCP4725
Adafruit_MCP4725 installed...
atreboot.sh started
loading config
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named Adafruit_MCP4725
Updating /var/www/html/openWB/openwb.conf...
Config file Update done.
Initializing Ramdisk /var/www/html/openWB/ramdisk
Trigger update of logfiles...
Ramdisk init done.
smarthome handler...
mqtt handler...
crontab 1...
executed
LAN/WLAN...
apache...
...changed
crontab 2...
packages 1...
evdev installed...
timezone...
cp: '/usr/share/zoneinfo/Europe/Berlin' and '/etc/localtime' are the same file
mosquitto...
updating mosquitto config file
[ ok ] Reloading network daemon configuration:: mosquitto.
packages 2...
mqtt installed...
docopt installed...
certifi installed...
aiohttp installed...
pymodbus installed...
jq installed...
version...
clear warning...
display update...
grep: /home/pi/.config/lxsession/LXDE-pi/autostart: No such file or directory
load versions...
update broker...
etprovider...
not activated, skipping
fix upload limit...OS Buster
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-k graceful' failed.
The Apache error log may have more information.
2021-07-08 14:41:22: boot done :-)
You have new mail in /var/mail/pi
Benutzeravatar
humschti
Beiträge: 554
Registriert: Mo Nov 25, 2019 8:25 am
Wohnort: Nürensdorf (Schweiz)

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von humschti »

Es gibt halt immer wieder Probleme mit Buster - deshalb wird ja auch stretch empfohlen
openWB Series 2 Duo mit EVU, 1/3 Umschaltung und abgesetztem Display, 16 kWp mit Solaredge, Ansteuerung Haushaltsgeräte mit Shelly
Tesla Model S und Cupra Born (SoC via EVCC)
derNeueDet
Beiträge: 4229
Registriert: Mi Nov 11, 2020 7:16 pm

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von derNeueDet »

Keine Ahnung, ob es an nginx liegt. Du hast auch nen Apache drauf, probier es halt mit dem. Buster ist es nicht, bei mir läuft eine Testumgebung problemlos unter Buster.

Mach mal einen Update auf die aktuelle Nightly. Es gab mal eine Version, die die config zerstört hat. Evtl. Ist da noch ein Fragment übrig.
10kWp PV mit SMA Tripower 10000TL-10 (PE11 mit SDM72V2); 2,4kWp mit Solis 2.5 G6 (EE11 mit SDM120). OpenWB Standard+. EVU EM540 an einem Raspi mit Venus OS. BEV Mercedes EQA 250 (07/2023)
Benutzeravatar
humschti
Beiträge: 554
Registriert: Mo Nov 25, 2019 8:25 am
Wohnort: Nürensdorf (Schweiz)

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von humschti »

derNeueDet hat geschrieben: Do Jul 08, 2021 1:26 pm Buster ist es nicht, bei mir läuft eine Testumgebung problemlos unter Buster.
öhm - schau mal den Thread des Tesla SoC's - da wurde definitiv Buster als Übeltäter identifiziert
openWB Series 2 Duo mit EVU, 1/3 Umschaltung und abgesetztem Display, 16 kWp mit Solaredge, Ansteuerung Haushaltsgeräte mit Shelly
Tesla Model S und Cupra Born (SoC via EVCC)
derNeueDet
Beiträge: 4229
Registriert: Mi Nov 11, 2020 7:16 pm

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von derNeueDet »

Ich habe keinen Tesla, mein Mercedes SoC läuft auch unter Buster ;) .

Es mag Dinge geben, die unter Buster nicht funktionieren. Aber nicht in dem Stadium, in dem der Ersteller hier ist.

VG
Det
10kWp PV mit SMA Tripower 10000TL-10 (PE11 mit SDM72V2); 2,4kWp mit Solis 2.5 G6 (EE11 mit SDM120). OpenWB Standard+. EVU EM540 an einem Raspi mit Venus OS. BEV Mercedes EQA 250 (07/2023)
derNeueDet
Beiträge: 4229
Registriert: Mi Nov 11, 2020 7:16 pm

Re: openwb.conf leer nach Bestätigung der Datenschutzeinwilligung

Beitrag von derNeueDet »

Aber ich kann mir vorstellen, dass es mit dem nginx ein Problem gibt.

Bei der Änderung der Datenschutzerklärung wird aus einer Datei gelesen

Code: Alles auswählen

file($_SERVER["DOCUMENT_ROOT"].'/openWB/openwb.conf');
Ich sage mit Absicht, aus "einer" Datei.

Denn geschrieben wird das Ergebnis anschließend in die Datei:

Code: Alles auswählen

 file_put_contents('/var/www/html/openWB/openwb.conf', $result);
Es kommt also darauf an, was dein nginx als $_SERVER["DOCUMENT_ROOT"]. auflöst.
Wenn das nicht mit /var/www/html/ übereinstimmt, versucht er eine openwb.conf an der falschen stelle zu öffnen.
Wenn da keine ist, gibt es keine Zeilen zu lesen, dementsprechend auch keine Zeilen zu schreiben und das Resultat ist eine leere openwb.conf.

Datei ist /var/www/html/openWB/web/settings/datenschutzack.php

VG
Det
10kWp PV mit SMA Tripower 10000TL-10 (PE11 mit SDM72V2); 2,4kWp mit Solis 2.5 G6 (EE11 mit SDM120). OpenWB Standard+. EVU EM540 an einem Raspi mit Venus OS. BEV Mercedes EQA 250 (07/2023)
Antworten