Автор: Надежный Панда, 1 день назад, написана на языке Plain Text.
Эта заметка будет удалена через 3 недели.
Встраивание на сайт
  1. ventus-nexus  | [2026-02-16 18:23:33,313] #INFO     logo.py:41 - snap7.logo - creating snap7 client
  2. ventus-nexus  | [2026-02-16 18:23:33,313] #INFO     logo.py:80 - snap7.logo - connecting to 192.168.6.21:102 tsap_snap7 512 tsap_logo 768
  3. ventus-nexus  | [2026-02-16 18:23:33,313] #DEBUG    logo.py:316 - snap7.logo - setting param number 2 to 102
  4. ventus-nexus  | [2026-02-16 18:23:33,422] #DEBUG    logo.py:104 - snap7.logo - read, vm_address:VW2
  5. ventus-nexus  | [2026-02-16 18:23:33,423] #INFO     logo.py:121 - snap7.logo - Word address: VW2
  6. ventus-nexus  | [2026-02-16 18:23:33,423] #DEBUG    logo.py:136 - snap7.logo - start:2, wordlen:Word=4, data-length:1
  7. ventus-nexus  | [2026-02-16 18:23:33,424] #INFO     plc_client.py:213 - plc.plc_client - LOGO! Read OK (IP: 192.168.6.21, Address: VW2, Value: 5000)
  8. ventus-nexus  | [2026-02-16 18:23:33,424] #INFO     logo.py:61 - snap7.logo - disconnecting snap7 client
  9. ventus-nexus  | [2026-02-16 18:23:33,424] #INFO     logo.py:52 - snap7.logo - destroying snap7 client
  10. ventus-nexus  | [2026-02-16 18:23:33,424] #INFO     logo.py:52 - snap7.logo - destroying snap7 client
  11. ventus-nexus  | [2026-02-16 18:23:41,491] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481921 is handled. Duration 8180 ms by bot id=7799252029
  12. ventus-nexus  | [2026-02-16 18:23:51,523] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481923 is handled. Duration 1035 ms by bot id=7799252029
  13. ventus-nexus  | [2026-02-16 18:23:53,602] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481924 is handled. Duration 724 ms by bot id=7799252029
  14. ventus-nexus  | [2026-02-16 18:23:55,185] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481925 is not handled. Duration 1 ms by bot id=7799252029
  15. ventus-nexus  | [2026-02-16 18:23:55,185] #ERROR    dispatcher.py:315 - aiogram.event - Cause exception while process update id=301481925 by bot id=7799252029
  16. ventus-nexus  | KeyError: 'plc_s7_1'
  17. ventus-nexus  | Traceback (most recent call last):
  18. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 309, in _process_update
  19. ventus-nexus  |     response = await self.feed_update(bot, update, **kwargs)
  20. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  21. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 158, in feed_update
  22. ventus-nexus  |     response = await self.update.wrap_outer_middleware(
  23. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  24. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/middlewares/error.py", line 25, in __call__
  25. ventus-nexus  |     return await handler(event, data)
  26. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  27. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/middlewares/user_context.py", line 49, in __call__
  28. ventus-nexus  |     return await handler(event, data)
  29. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  30. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/fsm/middleware.py", line 42, in __call__
  31. ventus-nexus  |     return await handler(event, data)
  32. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  33. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/telegram.py", line 121, in trigger
  34. ventus-nexus  |     return await wrapped_inner(event, kwargs)
  35. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  36. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/handler.py", line 43, in call
  37. ventus-nexus  |     return await wrapped()
  38. ventus-nexus  |            ^^^^^^^^^^^^^^^
  39. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 276, in _listen_update
  40. ventus-nexus  |     return await self.propagate_event(update_type=update_type, event=event, **kwargs)
  41. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  42. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 142, in propagate_event
  43. ventus-nexus  |     return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
  44. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 137, in _wrapped
  46. ventus-nexus  |     return await self._propagate_event(
  47. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 170, in _propagate_event
  49. ventus-nexus  |     response = await router.propagate_event(update_type=update_type, event=event, **kwargs)
  50. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 142, in propagate_event
  52. ventus-nexus  |     return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
  53. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  54. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 137, in _wrapped
  55. ventus-nexus  |     return await self._propagate_event(
  56. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  57. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 162, in _propagate_event
  58. ventus-nexus  |     response = await observer.trigger(event, **kwargs)
  59. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  60. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/telegram.py", line 121, in trigger
  61. ventus-nexus  |     return await wrapped_inner(event, kwargs)
  62. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  63. ventus-nexus  |   File "/app/middleware/activity_timeout.py", line 25, in __call__
  64. ventus-nexus  |     return await handler(event, data)
  65. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  66. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/handler.py", line 43, in call
  67. ventus-nexus  |     return await wrapped()
  68. ventus-nexus  |            ^^^^^^^^^^^^^^^
  69. ventus-nexus  |   File "/app/handlers/setpoints.py", line 43, in handle_setpoint_select
  70. ventus-nexus  |     plc_entry = config.plcs[reg["plc"]]
  71. ventus-nexus  |                 ~~~~~~~~~~~^^^^^^^^^^^^
  72. ventus-nexus  | KeyError: 'plc_s7_1'
  73.