添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Ich habe das Problem, dass seid dem letzten Update die WB keine Daten mehr vom EVU anzeigt.
Die Fehlermeldung im Log lautet:

Code: Alles auswählen

ModuleNotFoundError: No module named 'pymodbus.client.sync'
Ich habe dann auf die 1.9.299.3 geupdatet, hatte aber keinen Erfolg.
dann die 1.9.295 ... nix 1.9.299.4 auch nix.
Nun habe ich auch den PI zwei Versionen höher auf stretch gebracht. Gleicher Fehler.
Ich weiß nicht wirklich was das Problem ist.
Kann es sein, dass der Aufruf geändert wurde?
So hatte ich das jetzt seid 2019 laufen.

Code: Alles auswählen

 Strombezugsmessmodul (EVU-Übergabepunkt)
 MPM3PM
 /dev/ttyUSB1
 ID: 5
Ladepunkt 1 Garage
Anbindung
/dev/ttyUSB0
ID: 1
Ladeleistungmodul
/dev/ttyUSB0
ID: 6
Ladepunkt 2 Fahrradbox
Anbindung
/dev/ttyUSB1
ID: 1
Ladeleistungmodul
/dev/ttyUSB1
ID: 8
Hatte noch versucht:

Code: Alles auswählen

sudo pip3 install -U pymodbus
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pymodbus in /usr/local/lib/python3.9/dist-packages (3.2.2)
Collecting pymodbus
  Using cached https://www.piwheels.org/simple/pymodbus/pymodbus-3.2.2-py3-none-any.whl (154 kB)
  Using cached https://www.piwheels.org/simple/pymodbus/pymodbus-3.2.1-py3-none-any.whl (154 kB)
Requirement already satisfied: setuptools<66.0.0 in /usr/lib/python3/dist-packages (from pymodbus) (52.0.0)
Kann es sein, dass der 2. bzw. erste USB converter nicht korrekt gefunden wird?

Code: Alles auswählen

lsusb 
Bus 001 Device 006: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 004: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 008: ID ffff:0035 Sycreader USB Reader
Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Etwas Logging zum schluss:

Code: Alles auswählen

2023-04-20 20:46:53: PID: 26342: **** FATAL ********************************* (LV0)
2023-04-20 20:46:53: PID: 26342: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:46:53: PID: 26342: **** FATAL ********************************* (LV0)
2023-04-20 20:46:52: PID: 27383: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
26342
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, 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-04-20 20:46:47: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:46:44: PID: 26342: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:43: PID: 26342: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:34: PID: 25081: **** FATAL ********************************* (LV0)
2023-04-20 20:46:34: PID: 25081: **** FATAL Regulation loop needs 12 seconds (LV0)
2023-04-20 20:46:34: PID: 25081: **** FATAL ********************************* (LV0)
2023-04-20 20:46:32: PID: 26119: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
26110 25081
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, 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-04-20 20:46:28: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:46:24: PID: 25081: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:23: PID: 25081: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:13: PID: 23813: **** FATAL ********************************* (LV0)
2023-04-20 20:46:13: PID: 23813: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:46:13: PID: 23813: **** FATAL ********************************* (LV0)
2023-04-20 20:46:12: PID: 24924: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
23813
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, 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-04-20 20:46:08: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:46:04: PID: 23813: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:46:03: PID: 23813: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:53: PID: 22556: **** FATAL ********************************* (LV0)
2023-04-20 20:45:53: PID: 22556: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:45:53: PID: 22556: **** FATAL ********************************* (LV0)
2023-04-20 20:45:52: PID: 23301: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
22556
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, 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-04-20 20:45:49: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:45:45: PID: 22556: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:44: PID: 22556: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:33: PID: 21315: **** FATAL ********************************* (LV0)
2023-04-20 20:45:33: PID: 21315: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-20 20:45:33: PID: 21315: **** FATAL ********************************* (LV0)
2023-04-20 20:45:32: PID: 22418: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
21315
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, 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-04-20 20:45:27: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:45:24: PID: 21315: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:23: PID: 21315: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:14: PID: 19826: **** FATAL ********************************* (LV0)
2023-04-20 20:45:14: PID: 19826: **** FATAL Regulation loop needs 12 seconds (LV0)
2023-04-20 20:45:14: PID: 19826: **** FATAL ********************************* (LV0)
2023-04-20 20:45:12: PID: 20681: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
19826
ModuleNotFoundError: No module named 'pymodbus.client.sync'
from pymodbus.client.sync import ModbusSerialClient
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, 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-04-20 20:45:09: PID: 7357: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-20 20:45:07: PID: 19807: ##### cron5min.sh finished ##### (LV0)
2023-04-20 20:45:05: PID: 19826: Modbus EVSE read CP2 issue - using previous state '1' (LV0)
2023-04-20 20:45:05: PID: 20152: smart home handler not running! restarting process (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
2023-04-20 20:45:04: PID: 20152: Starting OpenWB services (LV0)
2023-04-20 20:45:03: PID: 19826: Modbus EVSE read CP1 issue - using previous state '1' (LV0)
ModuleNotFoundError: No module named 'pymodbus.client.sync'
    from pymodbus.client.sync import ModbusSerialClient
  File "/var/www/html/openWB/runs/readmodbus.py", line 3, in <module>
Traceback (most recent call last):
Du must dir pymodbus 2.5.3 installieren.
Bei Python 3.9.x(Bullseye) ist default die Version pymodbus 3.x dabei.
Die ist inkompatieble zur 2.5.3/2.4.x die bei Python 3.7 (Buster) und 3.5 (Stretch) installiert ist.
6kWp PV+Akku von RCT Power,+Tibber,+Shelly's
Skoda Citigo e-iV, openWB series2 standart+
mit openWB_lite (auf Basis der openWB 1.9.244+ Okt.2021)
Github: https://github.com/hhoefling/openWB_lite
https://github.com/hhoefling/MyOwnOWBC

Code: Alles auswählen

pip3 uninstall pymodbus

Code: Alles auswählen

sudo pip3 install -U pymodbus==2.5.3
Das hat die vorherige Fehlermeldung dann gelöst...
Aber:

Code: Alles auswählen

Traceback (most recent call last):
2023-04-21 06:39:04: PID: 25132: **** FATAL ********************************* (LV0)
2023-04-21 06:39:04: PID: 25132: **** FATAL Regulation loop needs 13 seconds (LV0)
2023-04-21 06:39:04: PID: 25132: **** FATAL ********************************* (LV0)
2023-04-21 06:39:01: PID: 25979: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
25132
AttributeError: 'ModbusIOException' object has no attribute 'registers'
voltage = resp.registers[1]
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 14, 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/bezug_mpm3pm/readmpm3pm.py", line 110, 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-04-21 06:38:58: PID: 2489: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Interessant fand ich dann das als ich den Installer nochmal drüber laufen lies.:

Code: Alles auswählen

 sudo ./openwb-installer.sh

Code: Alles auswählen

Installing collected packages: pymodbus
  Attempting uninstall: pymodbus
    Found existing installation: pymodbus 2.5.3
    Uninstalling pymodbus-2.5.3:
      Successfully uninstalled pymodbus-2.5.3
Successfully installed pymodbus-3.2.2
Also wieder 2.5.3 installiert. 
Immernoch kein Erfolg...
Nun habe ich ein neues Buster aufgesetzt und versucht das zu installieren. Keinen Erfolg gehabt.

Code: Alles auswählen

Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python3-pip
E: Package 'python-pip' has no installation candidate
Also habe ich Strech aufgesetzt und das Install-script laufen lassen.
Das klappte auch.
Nach dem zurückspielen des Backups kommt aber diesmal:

Code: Alles auswählen

2023-04-21 13:15:04: PID: 26745: **** FATAL ********************************* (LV0)
2023-04-21 13:15:04: PID: 26745: **** FATAL Regulation loop needs 13 seconds (LV0)
2023-04-21 13:15:04: PID: 26745: **** FATAL ********************************* (LV0)
2023-04-21 13:15:03: PID: 27256: ##### cron5min.sh finished ##### (LV0)
2023-04-21 13:15:02: PID: 27598: Starting OpenWB services (LV0)
2023-04-21 13:15:01: PID: 27256: ##### cron5min.sh started ##### (LV0)
2023-04-21 13:15:01: PID: 27284: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
26745
AttributeError: 'ModbusIOException' object has no attribute 'registers'
voltage = resp.registers[1]
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 14, 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/bezug_mpm3pm/readmpm3pm.py", line 110, 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-04-21 13:14:59: PID: 2934: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmll/readmpm3pm.py", line 33, in <module>
Traceback (most recent call last):
2023-04-21 13:14:55: PID: 26745: Modbus EVSE read CP2 issue - using previous state '' (LV0)
loadvars.sh: line 199: /var/www/html/openWB/ramdisk/evseplugstatelp2: No such file or directory
2023-04-21 13:14:54: PID: 26745: Modbus EVSE read CP1 issue - using previous state '' (LV0)
loadvars.sh: line 123: /var/www/html/openWB/ramdisk/evseplugstate: No such file or directory
Nach einem reboot kommt:

Code: Alles auswählen

2023-04-21 13:18:47: at_reboot: led...
2023-04-21 13:18:47: at_reboot: 2023-04-21 13:18:47: PID: 2524: upgradeChargeLogs: upgrading charge logs done
2023-04-21 13:18:47: at_reboot: 2023-04-21 13:18:47: PID: 2524: upgradeChargeLogs: upgrading charge logs with a price of 0.39 per kWh
2023-04-21 13:18:46: at_reboot: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-VLtqUS/evdev/
2023-04-21 13:18:46: at_reboot: ----------------------------------------
2023-04-21 13:18:46: at_reboot: 
2023-04-21 13:18:46: at_reboot: SyntaxError: invalid syntax
2023-04-21 13:18:46: at_reboot: ^
2023-04-21 13:18:46: at_reboot: cmd = [sys.executable, 'evdev/genecodes.py', *headers]
2023-04-21 13:18:46: at_reboot: File "/tmp/pip-build-VLtqUS/evdev/setup.py", line 103
2023-04-21 13:18:46: at_reboot: File "<string>", line 1, in <module>
2023-04-21 13:18:46: at_reboot: Traceback (most recent call last):
2023-04-21 13:18:46: at_reboot: Complete output from command python setup.py egg_info:
2023-04-21 13:18:44: at_reboot: Using cached https://files.pythonhosted.org/packages/05/50/629b011a7f61cb2fca754ea8631575784bf8605a1ec4d6970a010bc54e2b/evdev-1.6.1.tar.gz
2023-04-21 13:18:41: at_reboot: Collecting evdev

Code: Alles auswählen

2023-04-21 13:20:20: PID: 3852: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
loadvars.sh: line 1872: ramdisk/mqttslavemode: No such file or directory
AttributeError: 'ModbusIOException' object has no attribute 'registers'
voltage = resp.registers[1]
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 14, 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/bezug_mpm3pm/readmpm3pm.py", line 110, 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-04-21 13:20:19: PID: 2971: legacy run server: Unhandled exception
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8
2023-04-21 13:20:04: at_reboot: 2023-04-21 13:20:04: boot done :-)
Ich bin ein wenig ratlos...
Ich habe nochmals alles weggeworfen und neu aufgesetzt.
Nach einem reboot läuft es nun manchmal, manchmal nicht...
Es sind allerdings noch folgende Fehler im Log.
Besonder DUo2/dev/ttyUSB1idadd8 sagt mir nix...

Code: Alles auswählen

DUo2/dev/ttyUSB1idadd8
2023-04-21 15:03:29: PID: 10104: **** WARNING **** Regulation loop needs 8 seconds (LV0)
voltage3238.0
voltage2237.9
voltage1238.9
DUo2/dev/ttyUSB1idadd8
2023-04-21 15:03:20: PID: 8827: **** FATAL ********************************* (LV0)
2023-04-21 15:03:20: PID: 8827: **** FATAL Regulation loop needs 9 seconds (LV0)
2023-04-21 15:03:20: PID: 8827: **** FATAL ********************************* (LV0)
AttributeError: 'ModbusIOException' object has no attribute 'registers'
voltage = resp.registers[1]
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 14, 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/bezug_mpm3pm/readmpm3pm.py", line 110, 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-04-21 15:03:16: PID: 3423: legacy run server: Unhandled exception
voltage3238.4
voltage2238.2
voltage1239.0
DUo2/dev/ttyUSB1idadd8
2023-04-21 15:03:09: PID: 7618: **** WARNING **** Regulation loop needs 8 seconds (LV0)
voltage3238.5
voltage2238.2
voltage1239.1
DUo2/dev/ttyUSB1idadd8
2023-04-21 15:02:53: PID: 6215: **** FATAL ********************************* (LV0)
2023-04-21 15:02:53: PID: 6215: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-21 15:02:53: PID: 6215: **** FATAL ********************************* (LV0)
2023-04-21 15:02:51: PID: 7464: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
voltage3238.2
voltage2237.9
voltage1238.9
DUo2/dev/ttyUSB1idadd8
2023-04-21 15:02:39: PID: 4907: **** WARNING **** Regulation loop needs 8 seconds (LV0)
voltage3238.3
voltage2237.9
voltage1239.0
DUo2/dev/ttyUSB1idadd8
2023-04-21 15:02:31: PID: 3710: **** FATAL ********************************* (LV0)
2023-04-21 15:02:31: PID: 3710: **** FATAL Regulation loop needs 20 seconds (LV0)
2023-04-21 15:02:31: PID: 3710: **** FATAL ********************************* (LV0)
tail: cannot open '/var/www/html/openWB/ramdisk/soc1-live.graph' for reading: No such file or directory
2023-04-21 15:02:21: PID: 4238: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
loadvars.sh: line 1872: ramdisk/mqttslavemode: No such file or directory
modules/soc_myrenault/main.sh: line 42: /var/www/html/openWB/ramdisk/zoereply8lp1: No such file or directory
AttributeError: 'ModbusIOException' object has no attribute 'registers'
    value1 = resp.registers[0]
  File "/var/www/html/openWB/modules/mpm3pmlls1/readmpm3pm.py", line 16, in <module>
Traceback (most recent call last):
DUo2/dev/ttyUSB1idadd8

Code: Alles auswählen

DUo2/dev/ttyUSB1idadd8
2023-04-21 15:05:20: PID: 24653: **** FATAL ********************************* (LV0)
2023-04-21 15:05:20: PID: 24653: **** FATAL Regulation loop needs 10 seconds (LV0)
2023-04-21 15:05:20: PID: 24653: **** FATAL ********************************* (LV0)
2023-04-21 15:05:20: PID: 25750: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
24653
AttributeError: 'ModbusIOException' object has no attribute 'registers'
value1 = resp.registers[0]
File "/var/www/html/openWB/modules/bezug_mpm3pm/readmpm3pm.py", line 100, 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/bezug_mpm3pm/readmpm3pm.py", line 110, 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):
Immer wiederholend:

Code: Alles auswählen

2023-04-21 15:13:00: PID: 11743: **** FATAL ********************************* (LV0)
2023-04-21 15:13:00: PID: 11743: **** FATAL Regulation loop needs 9 seconds (LV0)
2023-04-21 15:13:00: PID: 11743: **** FATAL ********************************* (LV0)
voltage3237.6
voltage2238.0
voltage1238.5
DUo2/dev/ttyUSB1idadd8
2023-04-21 15:12:42: PID: 10172: **** FATAL ********************************* (LV0)
2023-04-21 15:12:42: PID: 10172: **** FATAL Regulation loop needs 11 seconds (LV0)
2023-04-21 15:12:42: PID: 10172: **** FATAL ********************************* (LV0)
2023-04-21 15:12:41: PID: 11180: Previous regulation loop still running. Skipping. (LV0) at 35 main /var/www/html/openWB/regel.sh
10172
voltage3237.2
voltage2237.7
voltage1238.5
DUo2/dev/ttyUSB1idadd8
Um einen Hardwaredefekt auszuschließen, kommt die Tage mal ein neuer RS485 Converter rein. Allerdings war vermutlich das Update mein Problem.

Code: Alles auswählen

DUo2/dev/ttyUSB1idadd8
Sieht aus als ob das ein "/dev/ttyUSB1" sein soll.
Configfile kaputt?
6kWp PV+Akku von RCT Power,+Tibber,+Shelly's
Skoda Citigo e-iV, openWB series2 standart+
mit openWB_lite (auf Basis der openWB 1.9.244+ Okt.2021)
Github: https://github.com/hhoefling/openWB_lite
https://github.com/hhoefling/MyOwnOWBC
Wenn ich nach ttyUSB1idadd8 oder auch nur dadd8 im Coigfile (/var/www/html/openWB/openwb.conf) suche findet es nix.
ttyUSB1 finde ich, wo ich sie vermutet hätte.
6kWp PV+Akku von RCT Power,+Tibber,+Shelly's
Skoda Citigo e-iV, openWB series2 standart+
mit openWB_lite (auf Basis der openWB 1.9.244+ Okt.2021)
Github: https://github.com/hhoefling/openWB_lite
https://github.com/hhoefling/MyOwnOWBC
Danke, gibt aber nur das:

Code: Alles auswählen

$ sudo grep -rni '/var/www/html/openWB/' -e '__pycache__'
/var/www/html/openWB/.gitignore:19:__pycache__
Ich denke das wirds nicht sein?
6kWp PV+Akku von RCT Power,+Tibber,+Shelly's
Skoda Citigo e-iV, openWB series2 standart+
mit openWB_lite (auf Basis der openWB 1.9.244+ Okt.2021)
Github: https://github.com/hhoefling/openWB_lite
https://github.com/hhoefling/MyOwnOWBC