Автор: Каракули Шама, 1 день назад, написана на языке Plain Text.
Эта заметка будет удалена через 3 недели.
Встраивание на сайт
  1. ventus-nexus  | [2026-02-17 12:55:54,494] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481968 is handled. Duration 250 ms by bot id=7799252029
  2. ventus-nexus  | [2026-02-17 12:55:59,209] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481969 is handled. Duration 302 ms by bot id=7799252029
  3. ventus-nexus  | [2026-02-17 12:56:00,593] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481970 is handled. Duration 84 ms by bot id=7799252029
  4. ventus-nexus  | [2026-02-17 12:56:26,315] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481971 is handled. Duration 4276 ms by bot id=7799252029
  5. ventus-nexus  | [2026-02-17 12:56:30,737] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481972 is handled. Duration 1001 ms by bot id=7799252029
  6. ventus-nexus  | [2026-02-17 12:56:32,093] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481973 is not handled. Duration 1 ms by bot id=7799252029
  7. ventus-nexus  | [2026-02-17 12:56:32,093] #ERROR    dispatcher.py:315 - aiogram.event - Cause exception while process update id=301481973 by bot id=7799252029
  8. ventus-nexus  | KeyError: 'plc_s7_1'
  9. ventus-nexus  | Traceback (most recent call last):
  10. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 309, in _process_update
  11. ventus-nexus  |     response = await self.feed_update(bot, update, **kwargs)
  12. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  13. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 158, in feed_update
  14. ventus-nexus  |     response = await self.update.wrap_outer_middleware(
  15. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  16. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/middlewares/error.py", line 25, in __call__
  17. ventus-nexus  |     return await handler(event, data)
  18. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  19. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/middlewares/user_context.py", line 49, in __call__
  20. ventus-nexus  |     return await handler(event, data)
  21. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  22. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/fsm/middleware.py", line 42, in __call__
  23. ventus-nexus  |     return await handler(event, data)
  24. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  25. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/telegram.py", line 121, in trigger
  26. ventus-nexus  |     return await wrapped_inner(event, kwargs)
  27. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  28. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/handler.py", line 43, in call
  29. ventus-nexus  |     return await wrapped()
  30. ventus-nexus  |            ^^^^^^^^^^^^^^^
  31. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/dispatcher.py", line 276, in _listen_update
  32. ventus-nexus  |     return await self.propagate_event(update_type=update_type, event=event, **kwargs)
  33. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  34. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 142, in propagate_event
  35. ventus-nexus  |     return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
  36. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  37. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 137, in _wrapped
  38. ventus-nexus  |     return await self._propagate_event(
  39. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  40. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 170, in _propagate_event
  41. ventus-nexus  |     response = await router.propagate_event(update_type=update_type, event=event, **kwargs)
  42. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  43. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 142, in propagate_event
  44. ventus-nexus  |     return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs)
  45. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  46. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 137, in _wrapped
  47. ventus-nexus  |     return await self._propagate_event(
  48. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  49. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/router.py", line 162, in _propagate_event
  50. ventus-nexus  |     response = await observer.trigger(event, **kwargs)
  51. ventus-nexus  |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  52. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/telegram.py", line 121, in trigger
  53. ventus-nexus  |     return await wrapped_inner(event, kwargs)
  54. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  55. ventus-nexus  |   File "/app/middleware/activity_timeout.py", line 25, in __call__
  56. ventus-nexus  |     return await handler(event, data)
  57. ventus-nexus  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  58. ventus-nexus  |   File "/usr/local/lib/python3.12/site-packages/aiogram/dispatcher/event/handler.py", line 43, in call
  59. ventus-nexus  |     return await wrapped()
  60. ventus-nexus  |            ^^^^^^^^^^^^^^^
  61. ventus-nexus  |   File "/app/handlers/setpoints.py", line 43, in handle_setpoint_select
  62. ventus-nexus  |     plc_entry = config.plcs[reg["plc"]]
  63. ventus-nexus  |                 ~~~~~~~~~~~^^^^^^^^^^^^
  64. ventus-nexus  | KeyError: 'plc_s7_1'
  65. ventus-nexus  | [2026-02-17 12:57:00,301] #INFO     __init__.py:83 - snap7.client - creating snap7 client
  66. ventus-nexus  | [2026-02-17 12:57:00,301] #INFO     __init__.py:200 - snap7.client - connecting to 192.168.6.32:102 rack 0 slot 1
  67. ventus-nexus  | [2026-02-17 12:57:00,301] #DEBUG    __init__.py:869 - snap7.client - setting param number 2 to 102
  68. ventus-nexus  | [2026-02-17 12:57:00,507] #DEBUG    __init__.py:227 - snap7.client - db_read, db_number:17, start:130, size:4
  69. ventus-nexus  | [2026-02-17 12:57:00,527] #INFO     plc_client.py:69 - plc.plc_client - S7 Read OK (IP: 192.168.6.32, DB: 17, Offset: 130, Bit: 0, Value: 12.0)
  70. ventus-nexus  | [2026-02-17 12:57:00,527] #INFO     __init__.py:179 - snap7.client - disconnecting snap7 client
  71. ventus-nexus  | [2026-02-17 12:57:00,528] #INFO     __init__.py:97 - snap7.client - destroying snap7 client
  72. ventus-nexus  | [2026-02-17 12:57:00,528] #INFO     __init__.py:97 - snap7.client - destroying snap7 client
  73. ventus-nexus  | [2026-02-17 12:57:01,679] #INFO     dispatcher.py:172 - aiogram.event - Update id=301481974 is handled. Duration 1378 ms by bot id=7799252029