snaptec / openWB

openWB - die modulare Wallbox
https://openwb.de
GNU General Public License v3.0
341 stars 205 forks source link

Kostal Plenticore Exception on Stable: 1.9.303.0 #2801

Open reptilex opened 8 months ago

reptilex commented 8 months ago

I get an unhandled exception error on kostal plenticore leading to the whole loading not working and no data about the PV System. IP Parsers showing an error seemed to be an issue with the IP in the PV Module, but I have "192.168.178.23" in there and the Kostal Plenticore module active. This is running on a purchased openWB series2 custom. It used to run fine, sadly I did not make a backup and do not know the former version.

The following error is shown:

2023-11-05 11:33:14: PID: 2825: legacy run server: Completed running command in 0.02s: ["bezug_kostalplenticoreem300haus.kostal_plenticore","0"]
2023-11-05 11:33:14: PID: 2825: Kostal-Plenticore: Watt: 0
2023-11-05 11:33:14: PID: 2825: Kostal-Plenticore: Kostal Plenticore Haus: 0
2023-11-05 11:33:14: PID: 2825: legacy run server: Received command ["bezug_kostalplenticoreem300haus.kostal_plenticore","0"]
2023-11-05 11:33:13: PID: 19533: BattLeistung: 0 (LV1) at 19 main modules/speicher_kostalplenticore/main.sh
2023-11-05 11:33:13: PID: 19533: RET: 0 (LV2) at 17 main modules/speicher_kostalplenticore/main.sh
FileNotFoundError: [Errno 2] No such file or directory: '/var/www/html/openWB/ramdisk/temp_speicherleistung'
with open(src, 'rb') as fsrc:
File "/usr/lib/python3.5/shutil.py", line 120, in copyfile
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.5/shutil.py", line 241, in copy
shutil.copy("/var/www/html/openWB/ramdisk/temp_speicherleistung", "/var/www/html/openWB/ramdisk/speicherleistung")
File "/var/www/html/openWB/modules/speicher_kostalplenticore/kostal_plenticore.py", line 26, in update
parser.set_defaults(RUN=lambda args: function(*[getattr(args, argument_name) for argument_name in arg_spec.args]))
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 19, in <lambda>
args.RUN(args)
File "/var/www/html/openWB/packages/helpermodules/cli/_run_using_positional_cli_args.py", line 34, in run_using_positional_cli_args
run_using_positional_cli_args(update, argv)
File "/var/www/html/openWB/modules/speicher_kostalplenticore/kostal_plenticore.py", line 32, in main
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-11-05 11:33:13: PID: 2825: legacy run server: Unhandled exception
2023-11-05 11:33:13: PID: 2825: legacy run server: Received command ["speicher_kostalplenticore.kostal_plenticore"]
SyntaxError: invalid syntax
^
LOG.debug(f'IPParser ERR: {e}')
File "/usr/local/lib/python3.5/dist-packages/ipparser/__init__.py", line 109
from ipparser import ipparser
File "/var/www/html/openWB/modules/wr_plenticore/read_kostalplenticore.py", line 30, in <module>
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
importlib.import_module(parsed[0]).main(parsed[1:])
File "/var/www/html/openWB/packages/legacy_run_server.py", line 110, in handle_message
self.__callback(read_all_bytes(connection))
File "/var/www/html/openWB/packages/legacy_run_server.py", line 88, in handle_connection
yield
File "/var/www/html/openWB/packages/legacy_run_server.py", line 49, in redirect_stdout_stderr_exceptions_to_log
Traceback (most recent call last):
2023-11-05 11:33:13: PID: 2825: legacy run server: Unhandled exception
2023-11-05 11:33:13: PID: 2825: legacy run server: Received command ["wr_plenticore.read_kostalplenticore","192.168.178.23","none","1","none"]
2023-11-05 11:33:12: PID: 19354: **** Regulation loop start **** (LV1) at 77 main /var/www/html/openWB/regel.sh
2023-11-05 11:33:02: PID: 19323: **** Regulation loop needs 1 seconds (LV2) at 62 cleanup /var/www/html/openWB/regel.sh
2023-11-05 11:33:02: PID: 19323: **** Regulation loop start **** (LV1) at 77 main /var/www/html/openWB/regel.sh
2023-11-05 11:32:55: PID: 17999: **** Regulation loop needs 4 seconds (LV2) at 62 cleanup /var/www/html/openWB/regel.sh
2023-11-05 11:32:55: PID: 17999: Timing Umschaltung: 60 / 900 (LV1) at 17 u1p3pswitch u1p3p.sh
2023-11-05 11:32:55: PID: 17999: automatische Umschaltung aktiv (LV1) at 16 u1p3pswitch u1p3p.sh
2023-11-05 11:32:55: PID: 17999: Zeit zum abfragen aller Werte 4 Sekunden (LV1) at 186 main /var/www/html/openWB/regel.sh
2023-11-05 11:32:54: PID: 17999: chargestatlp1 0 chargestatlp2 0 chargestatlp3 0 (LV1) at 1274 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: plugstatlp1 1 plugstatlp2 0 plugstatlp3 0 (LV1) at 1273 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: lp1enabled 1 lp2enabled 1 lp3enabled 1 (LV1) at 1272 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: EVU 1:V/0A 2: V/0A 3: V/0A (LV1) at 1271 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: lla3 0 llv3 236.0 llas13  llas23  soclp1 80 soclp2  (LV1) at 1270 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: lla2 0 llv2 235.2 llas12  llas22  sofortll 16 hausverbrauch 0 wattbezug 0 uberschuss 0 (LV1) at 1269 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: lla1 0 llv1 236.4 llas11  llas21  mindestuberschuss 1500 abschaltuberschuss 500 lademodus 0 (LV1) at 1268 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: pv1watt 0 pv2watt  pvwatt 0 ladeleistung 0 llalt 0 nachtladen 0 nachtladen 0 minimalA 6 maximalA 14 (LV1) at 1267 loadvars loadvars.sh
2023-11-05 11:32:54: PID: 17999: speicherleistung 0 speichersoc 0 (LV1) at 1262 loadvars loadvars.sh
2023-11-05 11:32:53: PID: 18212: RET: 0 (LV2) at 16 main modules/bezug_kostalplenticoreem300haus/main.sh
2023-11-05 11:32:53: PID: 2825: legacy run server: Completed running command in 0.02s: ["bezug_kostalplenticoreem300haus.kostal_plenticore","0"]
2023-11-05 11:32:53: PID: 2825: Kostal-Plenticore: Watt: 0
2023-11-05 11:32:53: PID: 2825: Kostal-Plenticore: Kostal Plenticore Haus: 0
2023-11-05 11:32:53: PID: 2825: legacy run server: Received command ["bezug_kostalplenticoreem300haus.kostal_plenticore","0"]
2023-11-05 11:32:52: PID: 18178: BattLeistung: 0 (LV1) at 19 main modules/speicher_kostalplenticore/main.sh
2023-11-05 11:32:52: PID: 18178: RET: 0 (LV2) at 17 main modules/speicher_kostalplenticore/main.sh