tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
301 stars 50 forks source link

Update to 2.1.1 mikrotik logfile full of api connect/disconnect messages started [Bug] #239

Closed BluThunder2k closed 2 years ago

BluThunder2k commented 2 years ago

Describe the issue

I updated to the latest of the HACS Mikrotik add on 2.1.1 and now my router log is flooded with API user logged in and logged out messages every time it polls the router.

How to reproduce the issue

Watch logfile on device being monitored by the add on. Tried adding a switch as well, same behaviour.

Expected behavior

Previous behavior of just one connection per starting of HA. Capture

Screenshots

Software versions

Diagnostics data

Traceback/Error logs

Additional context

tomaae commented 2 years ago

look into ha log to see why it is happening

BluThunder2k commented 2 years ago

Ah ha.

This error originated from a custom integration.

Logger: custom_components.mikrotik_router.mikrotikapi Source: custom_components/mikrotik_router/mikrotikapi.py:299 Integration: Mikrotik Router (documentation, issues) First occurred: 4:55:00 PM (153 occurrences) Last logged: 5:02:51 PM

Mikrotik 192.168.0.2 error while execute : not enough permissions (9)

Sent from my iPhone. Sorry for any typos!

On Aug 21, 2022, at 5:08 PM, Tomaae @.***> wrote:



look into ha log to see why it is happening

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftomaae%2Fhomeassistant-mikrotik_router%2Fissues%2F239%23issuecomment-1221621201&data=05%7C01%7Cdave%40fab-corp.com%7C0bcf59ecdb084d198a0708da83b946d7%7Cb75acf3d935f476a87dd17a19a72ffd6%7C0%7C0%7C637967129047320031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=i4rV068NGBMdm36UrQLqWXV0swysiu13ByBEXEUOP5c%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAY3SPI36OVW3VXAIRMQAV2DV2KLEJANCNFSM57FRU3GA&data=05%7C01%7Cdave%40fab-corp.com%7C0bcf59ecdb084d198a0708da83b946d7%7Cb75acf3d935f476a87dd17a19a72ffd6%7C0%7C0%7C637967129047320031%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=aLJ3sUb7XiQ0LjCAZXWVnsENCao0l5LujM%2FGGeS8d7o%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

tomaae commented 2 years ago

ok, you dont have sufficient access rights for the user you are using. if it is a mistake, fix it based on docu. in case you want to have lower access right and dont mind limited functionality, you can install master.