Bonjour à tous:
Ce matin le démon mymodbus est mort et depuis je n’arrive pas à le réveiller. Voici l’erreur qui apparaît :
[2024-03-02 10:22:45][INFO] : Lancement du démon mymodbus : nice -n 19 /usr/bin/python3 /var/www/html/plugins/mymodbus/ressources/mymodbus_demond.py --host=192.168.1.35 --port=502 --unid=1 --polling=2 --keepopen=0 --protocol=tcpip --eqid=607 --irs=0,3,4,37,71,33,51,36,46,72,57
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/var/www/html/plugins/mymodbus/ressources/mymodbus_demond.py", line 203, in polling_thread
rr = client.read_input_registers(int(ir_start),i,unit=args.unid)
File "/usr/local/lib/python3.7/dist-packages/pymodbus/client/common.py", line 125, in read_input_registers
return self.execute(request)
File "/usr/local/lib/python3.7/dist-packages/pymodbus/client/sync.py", line 107, in execute
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.1.35:502)]
Version de python ok
Traceback (most recent call last):
File "/var/www/html/plugins/mymodbus/ressources/mymodbus_demond.py", line 270, in <module>
raise ParameterException('Thread en défaut')
NameError: name 'ParameterException' is not defined