Feedback 2.0 Alpha 3

Fragen zur Nutzung, Features, usw..
MadMax219
Beiträge: 31
Registriert: Fr Dez 03, 2021 12:27 am

Re: Feedback 2.0 Alpha 3

Beitrag von MadMax219 »

Ich hatte auch mal Probleme mit dem Update, da waren es aber Berechtigungsprobleme.
Hatte vorher wohl versehentlich unter su eine Datei geändert.
Die update.log wurde jedoch dennoch geschrieben und das Problem/die Fehlemeldung darin beschrieben.
Meine Lösung war dann radikal, ich hab meine SD-Karte komplett neu mit dem Image beschrieben, seitdem hatte ich kein Problem mehr mit Update.

Aktueller Inhalt meiner update.log

Code: Alles auswählen

#### running update ####
#### 1. fetching latest data from origin ####
POST git-upload-pack (144 bytes)
POST git-upload-pack (973 bytes)
From https://github.com/openWB/core
   02952e7a..9c88f5d3  master     -> origin/master
#### done
#### 2. applying latest changes ####
HEAD is now at 9c88f5d3 Merge pull request #440 from LKuemmel/fix_smart_wb
#### done
#### 3. rebooting system ####
Schön wäre, wenn da evtl. auch ein Datum drin stehen würde.
Das würde mich beim Debuggen beruhigen, speziell im Browser, also ohne erst einen Connect per SSH machen zu müssen.
Benutzeravatar
mrinas
Beiträge: 1904
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Feedback 2.0 Alpha 3

Beitrag von mrinas »

Was genau macht denn deine Box wenn Du den Update Kopf verwendest? Bei mir tut sich da sichtbar genau gar nichts, im Hintergrund wird das git repo aktualisiert und die Box startet neu. Das lässt sich danach im update log in der UI nachvollziehen. Drück' den update Knopf doch mal und poste den Inhalt vom update.log, dann sollten wir zumindest wissen ob der Knopf bei Dir funktioniert.

Und ja, ich bin bei Dir, eine Versionsinformation wäre sicher nicht schlecht. Kommt bestimmt auch noch.
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
LenaK
Beiträge: 1029
Registriert: Fr Jan 22, 2021 6:40 am

Re: Feedback 2.0 Alpha 3

Beitrag von LenaK »

mrinas hat geschrieben: Sa Jun 11, 2022 1:32 pm Hm, irgendwas scheint mit 1p/3p doch noch nicht zu passen. Die Box wechselt derzeit regelmässig zwischen 1p und 3p hin und her.
Bei 3p (und 6A?) gab es noch ein paar hundert W Einspeisung, dennoch wurde auf 1p gewechselt. Nur um dann nach 8min wieder auf 3p zu wechseln.

main.log.txt
Screenshot 2022-06-11 153133.png
Bei der Prüfung, ob die Verzögerung unterbrochen wird, war noch ein Bug drin. PR # 445 behebt das.
Gero
Beiträge: 2511
Registriert: Sa Feb 20, 2021 9:55 am

Re: Feedback 2.0 Alpha 3

Beitrag von Gero »

Ich komme mit dem update.log nicht klar. Das hier steht drin, wenn ich im Browser kucke: (Den Chache hatte ich vorher geleert und musste den Refresh-Button klicken, damit das log angezeigt wurde)
#### running update ####
sudo: Ein Passwort ist notwendig
#### 1. fetching latest data from origin ####
POST git-upload-pack (144 bytes)
Von https://github.com/openWB/core
= [aktuell] master -> origin/master
#### done
#### 2. applying latest changes ####
HEAD ist jetzt bei 31ad2a16 Update version
#### done
#### 3. rebooting system ####
sudo: Zum Lesen des Passworts ist ein Terminal erforderlich; verwenden Sie entweder die Option -S, um aus der Standardeingabe zu lesen oder richten Sie das Askpass-Hilfsprogramm ein
sudo: Ein Passwort ist notwendig
Nun bin ich in der Shell:
pi@raspi:/var/www/html/openWB/data/log$ pwd
/var/www/html/openWB/data/log
pi@raspi:/var/www/html/openWB/data/log$ ls -l
insgesamt 0
Nun suche ich mal nach dem "31ad2a16" aus dem Log, weil ich mal vermute, dass dieser String nicht allzuhäufig vorkommt:

Code: Alles auswählen

pi@raspi:/var/www/html/openWB/data/log$ find /var/www/html/openWB/ -exec sh -c 'grep 31ad2a16  2>/dev/null {} && echo {} ' \;
31ad2a16
/var/www/html/openWB/ramdisk/currentCommitHash
31ad2a1673639f14fde00c91b47834bc9abdf998
/var/www/html/openWB/.git/ORIG_HEAD
55a780d160879f5ac7aad2619b3cb3b6dc43b83d 31ad2a1673639f14fde00c91b47834bc9abdf998 pi <pi@raspi.(none)> 1654161825 +0200	fetch -v origin: fast-forward
/var/www/html/openWB/.git/logs/refs/remotes/origin/master
55a780d160879f5ac7aad2619b3cb3b6dc43b83d 31ad2a1673639f14fde00c91b47834bc9abdf998 pi <pi@raspi.(none)> 1654161825 +0200	reset: moving to origin/master
/var/www/html/openWB/.git/logs/refs/heads/master
55a780d160879f5ac7aad2619b3cb3b6dc43b83d 31ad2a1673639f14fde00c91b47834bc9abdf998 pi <pi@raspi.(none)> 1654161825 +0200	reset: moving to origin/master
31ad2a1673639f14fde00c91b47834bc9abdf998 31ad2a1673639f14fde00c91b47834bc9abdf998 pi <pi@raspi.(none)> 1654161827 +0200	reset: moving to origin/master
31ad2a1673639f14fde00c91b47834bc9abdf998 31ad2a1673639f14fde00c91b47834bc9abdf998 pi <pi@raspi.(none)> 1654161827 +0200	reset: moving to origin/master
/var/www/html/openWB/.git/logs/HEAD
31ad2a1673639f14fde00c91b47834bc9abdf998
/var/www/html/openWB/.git/refs/remotes/origin/master
31ad2a1673639f14fde00c91b47834bc9abdf998
/var/www/html/openWB/.git/refs/heads/master
31ad2a1673639f14fde00c91b47834bc9abdf998		branch 'master' of https://github.com/openWB/core
/var/www/html/openWB/.git/FETCH_HEAD
Bis auf currentCommitHash ist alles aus .git, vermutlich ist das das Verzeichnis, wo das Repository hinkopiert wird. Wo ist denn nun das richtige update.log?

PS: ich habe jetzt noch mal das aktuelle Repo drüberinstalliert in Erwartung, dass in currentCommitHash eine der Wert des aktuellen Hashes von github steht - es bleibt aber bei dem oben genannten Wert.
git.jpg
openWB-series2, openWB-Buchse, E3/DC S10pro+19.5kWh, 30kWp Ost-Süd, Model 3 und Ion
MadMax219
Beiträge: 31
Registriert: Fr Dez 03, 2021 12:27 am

Re: Feedback 2.0 Alpha 3

Beitrag von MadMax219 »

Wenn der Browser (Firefox?) nicht den identischen Inhalt zur Datei

Code: Alles auswählen

/var/www/html/openWB/data/log/update.log
anzeigt stimmt etwas mit dem Cache beim Browser nicht.

Wenn wie bei Dir die Datei gleich gar nicht existiert, kann ich nur vermuten, daß das Update entweder nicht ausgeführt wurde oder die Logdatei mangles Rechten nicht geschrieben werden kann.
Du bist als User pi angemeldet, openwb wäre IMHO besser.

Nach meiner Kenntnis wird durch den Update-Button nur das Skript

Code: Alles auswählen

/runs/update_self.sh
ausgeführt.
Vielleicht mal direkt ausführen, aber als User openwb.
Benutzeravatar
mrinas
Beiträge: 1904
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Feedback 2.0 Alpha 3

Beitrag von mrinas »

LenaK hat geschrieben: Di Jun 14, 2022 7:41 am
mrinas hat geschrieben: Sa Jun 11, 2022 1:32 pm Hm, irgendwas scheint mit 1p/3p doch noch nicht zu passen. Die Box wechselt derzeit regelmässig zwischen 1p und 3p hin und her.
Bei 3p (und 6A?) gab es noch ein paar hundert W Einspeisung, dennoch wurde auf 1p gewechselt. Nur um dann nach 8min wieder auf 3p zu wechseln.

main.log.txt
Screenshot 2022-06-11 153133.png
Bei der Prüfung, ob die Verzögerung unterbrochen wird, war noch ein Bug drin. PR # 445 behebt das.

Eben mal das update gemacht, leider bekomm' ich jetzt sehr viele diese Meldungen. Hoffe mal dass die Laderegelung weiterläuft, die Sonne scheint gerade.

Update: Regelung läuft nicht, ich verschieb' die ganzen daily_logs mal in ein anderes Verzeichnis, damit läuft die Regelung wieder. Hab' hier halt noch alte .jsons aus der Alpha1 & 2 Zeit, scheinbar kommt die Konvertierung damit nicht klar.

Code: Alles auswählen

2022-06-14 14:11:37,028 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220301.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,084 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220605.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,103 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220414.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,120 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220329.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,138 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220325.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,154 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220315.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,175 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220417.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,193 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220418.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,197 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220211.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,250 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220603.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-13'
2022-06-14 14:11:37,284 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220614.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,289 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220110.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
LenaK
Beiträge: 1029
Registriert: Fr Jan 22, 2021 6:40 am

Re: Feedback 2.0 Alpha 3

Beitrag von LenaK »

mrinas hat geschrieben: Di Jun 14, 2022 12:13 pm
LenaK hat geschrieben: Di Jun 14, 2022 7:41 am
mrinas hat geschrieben: Sa Jun 11, 2022 1:32 pm Hm, irgendwas scheint mit 1p/3p doch noch nicht zu passen. Die Box wechselt derzeit regelmässig zwischen 1p und 3p hin und her.
Bei 3p (und 6A?) gab es noch ein paar hundert W Einspeisung, dennoch wurde auf 1p gewechselt. Nur um dann nach 8min wieder auf 3p zu wechseln.

main.log.txt
Screenshot 2022-06-11 153133.png
Bei der Prüfung, ob die Verzögerung unterbrochen wird, war noch ein Bug drin. PR # 445 behebt das.

Eben mal das update gemacht, leider bekomm' ich jetzt sehr viele diese Meldungen. Hoffe mal dass die Laderegelung weiterläuft, die Sonne scheint gerade.

Code: Alles auswählen

2022-06-14 14:11:37,028 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220301.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,084 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220605.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,103 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220414.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,120 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220329.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,138 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220325.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,154 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220315.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,175 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220417.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,193 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220418.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,197 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220211.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,250 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220603.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-13'
2022-06-14 14:11:37,284 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220614.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,289 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220110.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
Ich habe das Datenformat der Logdateien angepasst. Nach dem Start wird geprüft, ob die Logdateien das richtige Format haben. Wenn nicht, werden sie konvertiert. Allerdings werden nur Dateien konvertiert, die dem Format der Alpha 3 entsprechen.
Ältere Dateien bleiben erhalten, werden aber nicht im Logging im UI angezeigt.
Auf die Regelung sollte das keine Auswirkungen haben.
Benutzeravatar
mrinas
Beiträge: 1904
Registriert: Mi Jan 29, 2020 10:12 pm

Re: Feedback 2.0 Alpha 3

Beitrag von mrinas »

LenaK hat geschrieben: Di Jun 14, 2022 12:25 pm
mrinas hat geschrieben: Di Jun 14, 2022 12:13 pm
LenaK hat geschrieben: Di Jun 14, 2022 7:41 am

Bei der Prüfung, ob die Verzögerung unterbrochen wird, war noch ein Bug drin. PR # 445 behebt das.

Eben mal das update gemacht, leider bekomm' ich jetzt sehr viele diese Meldungen. Hoffe mal dass die Laderegelung weiterläuft, die Sonne scheint gerade.

Code: Alles auswählen

2022-06-14 14:11:37,028 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220301.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,084 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220605.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,103 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220414.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,120 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220329.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,138 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220325.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,154 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220315.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,175 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220417.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,193 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220418.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,197 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220211.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,250 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220603.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-13'
2022-06-14 14:11:37,284 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220614.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,289 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220110.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
Ich habe das Datenformat der Logdateien angepasst. Nach dem Start wird geprüft, ob die Logdateien das richtige Format haben. Wenn nicht, werden sie konvertiert. Allerdings werden nur Dateien konvertiert, die dem Format der Alpha 3 entsprechen.
Ältere Dateien bleiben erhalten, werden aber nicht im Logging im UI angezeigt.
Auf die Regelung sollte das keine Auswirkungen haben.
es gab leider schon einen Einfluss auf die Regelung, ich hab' mal auf Verdacht den letzten Teil der Regelschleife und den Start der nächsten reinkopiert. Scheint einen Fehler in der Main.py zu geben. Nachdem ich die Logs wegkopiert habe läuft wieder alles.

Code: Alles auswählen

2022-06-14 14:11:27,019 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220205.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:27,034 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220321.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:27,052 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220311.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:27,126 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220610.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:27,138 - {root:209} - ERROR - Fehler im Main-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/main.py", line 177, in <module>
    update_config.UpdateConfig().update()
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 334, in update
    self.__solve_breaking_changes()
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 401, in __solve_breaking_changes
    content = json.load(jsonFile)
  File "/usr/lib/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 61439 (char 61438)
2022-06-14 14:11:28,260 - {root:171} - DEBUG - Warten auf das Ende des Boot-Prozesses
2022-06-14 14:11:28,260 - {root:174} - DEBUG - Boot-Prozess abgeschlossen
2022-06-14 14:11:28,261 - {helpermodules.update_config:321} - DEBUG - Broker-Konfiguration aktualisieren
2022-06-14 14:11:31,208 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/charge_state
2022-06-14 14:11:31,211 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/rfid
2022-06-14 14:11:31,213 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/power
2022-06-14 14:11:31,216 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/voltages
2022-06-14 14:11:31,219 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/phases_in_use
2022-06-14 14:11:31,222 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/plug_state
2022-06-14 14:11:31,224 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/currents
2022-06-14 14:11:31,227 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/imported
2022-06-14 14:11:31,229 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/system/version
2022-06-14 14:11:31,269 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220301.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:31,324 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220605.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:31,343 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220414.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:31,358 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220329.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
Ich kann die alten Logs gern mal teilen falls Du da weiter reinschauen möchtest.
15,2kWp SMA (SB4000TL-21, SB3.0, STP6.0-SE + BYD HVS, EnergyMeter), openWB Standard+, openWB Pro, Peugeot e2008, Tesla Model Y LR.
LenaK
Beiträge: 1029
Registriert: Fr Jan 22, 2021 6:40 am

Re: Feedback 2.0 Alpha 3

Beitrag von LenaK »

mrinas hat geschrieben: Di Jun 14, 2022 12:29 pm
LenaK hat geschrieben: Di Jun 14, 2022 12:25 pm
mrinas hat geschrieben: Di Jun 14, 2022 12:13 pm
Eben mal das update gemacht, leider bekomm' ich jetzt sehr viele diese Meldungen. Hoffe mal dass die Laderegelung weiterläuft, die Sonne scheint gerade.

Code: Alles auswählen

2022-06-14 14:11:37,028 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220301.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,084 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220605.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,103 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220414.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,120 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220329.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,138 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220325.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,154 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220315.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,175 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220417.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,193 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220418.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,197 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220211.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:37,250 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220603.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-13'
2022-06-14 14:11:37,284 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220614.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:37,289 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220110.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
Ich habe das Datenformat der Logdateien angepasst. Nach dem Start wird geprüft, ob die Logdateien das richtige Format haben. Wenn nicht, werden sie konvertiert. Allerdings werden nur Dateien konvertiert, die dem Format der Alpha 3 entsprechen.
Ältere Dateien bleiben erhalten, werden aber nicht im Logging im UI angezeigt.
Auf die Regelung sollte das keine Auswirkungen haben.
es gab leider schon einen Einfluss auf die Regelung, ich hab' mal auf Verdacht den letzten Teil der Regelschleife und den Start der nächsten reinkopiert. Scheint einen Fehler in der Main.py zu geben. Nachdem ich die Logs wegkopiert habe läuft wieder alles.

Code: Alles auswählen

2022-06-14 14:11:27,019 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220205.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:27,034 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220321.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:27,052 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220311.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:27,126 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220610.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:27,138 - {root:209} - ERROR - Fehler im Main-Modul
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/main.py", line 177, in <module>
    update_config.UpdateConfig().update()
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 334, in update
    self.__solve_breaking_changes()
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 401, in __solve_breaking_changes
    content = json.load(jsonFile)
  File "/usr/lib/python3.9/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.9/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 61439 (char 61438)
2022-06-14 14:11:28,260 - {root:171} - DEBUG - Warten auf das Ende des Boot-Prozesses
2022-06-14 14:11:28,260 - {root:174} - DEBUG - Boot-Prozess abgeschlossen
2022-06-14 14:11:28,261 - {helpermodules.update_config:321} - DEBUG - Broker-Konfiguration aktualisieren
2022-06-14 14:11:31,208 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/charge_state
2022-06-14 14:11:31,211 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/rfid
2022-06-14 14:11:31,213 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/power
2022-06-14 14:11:31,216 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/voltages
2022-06-14 14:11:31,219 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/phases_in_use
2022-06-14 14:11:31,222 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/plug_state
2022-06-14 14:11:31,224 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/currents
2022-06-14 14:11:31,227 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/chargepoint/13/get/imported
2022-06-14 14:11:31,229 - {helpermodules.update_config:362} - DEBUG - Ungültiges Topic zum Startzeitpunkt: openWB/set/system/version
2022-06-14 14:11:31,269 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220301.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:31,324 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220605.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 219, in get_totals
    totals[group][module][key] = float(value) if "." in value else int(value)
ValueError: invalid literal for int() with base 10: '0E-8'
2022-06-14 14:11:31,343 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220414.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
2022-06-14 14:11:31,358 - {helpermodules.update_config:409} - ERROR - Logfile /var/www/html/openWB/data/daily_log/20220329.json entspricht nicht dem Dateiformat von Alpha 3.
Traceback (most recent call last):
  File "/var/www/html/openWB/packages/helpermodules/update_config.py", line 404, in __solve_breaking_changes
    new_content = {"entries": content, "totals": measurement_log.get_totals(content)}
  File "/var/www/html/openWB/packages/helpermodules/measurement_log.py", line 217, in get_totals
    Decimal(str(totals[group][module][key])))
KeyError: 'counter'
Ich kann die alten Logs gern mal teilen falls Du da weiter reinschauen möchtest.
Der Absturz der main.py wurde vermutlich durch das korrupte Logfile verursacht. Diese Exception wir nun auch gefangen und die Regelung auch gestartet, wenn vorher in der main.py eine Exception auftritt.
Kannst Du mir bitte das Logfile /var/www/html/openWB/data/daily_log/20220610.json geben? Da sollte die Konvertierung eigentlich klappen.
Gero
Beiträge: 2511
Registriert: Sa Feb 20, 2021 9:55 am

Re: Feedback 2.0 Alpha 3

Beitrag von Gero »

MadMax219 hat geschrieben: Mo Jun 13, 2022 6:34 pm Ich hatte auch mal Probleme mit dem Update, da waren es aber Berechtigungsprobleme.
MadMax219 hat geschrieben: Di Jun 14, 2022 9:54 am die Logdatei mangles Rechten nicht geschrieben werden kann.
Jepp. Genau das isses. Die installation habe ich als pi gemacht und die Prozesse laufen als openWB. Das hier habe ich nun im update.log:
#### running update ####
#### 1. fetching latest data from origin ####
error: kann '.git/FETCH_HEAD' nicht öffnen: Keine Berechtigung
#### 2. applying latest changes ####
fatal: Konnte '/var/www/html/openWB/.git/index.lock' nicht erstellen: Keine Berechtigung
#### 3. rebooting system ####
Ich mach' mal eine Neuinstallation als openwb.
openWB-series2, openWB-Buchse, E3/DC S10pro+19.5kWh, 30kWp Ost-Süd, Model 3 und Ion
Gesperrt