-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] error while get_traffic : unknown #42
Comments
Do not remove issue templates, I need information as stated in them. |
"Do not remove issue templates, I need information as stated in them." 2020-05-11 08:40:15 WARNING (SyncWorker_19) [custom_components.mikrotik_router.mikrotikapi] Mikrotik Reconnected to 192.168.88.10 |
strange to get an api error there. can you debug it? |
how to? |
add this to your configuration.yaml to get debug logs for this integration, restart homeassistant and paste the logs again when it breaks..
|
2020-05-11 17:11:42 DEBUG (SyncWorker_0) [custom_components.mikrotik_router.mikrotikapi] API query: /interface |
I will need full log from custom_components.mikrotik_router which captures whole event, not just last few messages. |
I copied from this , home-assistant.log |
yes, home-assistant.log. but just entries from custom_components.mikrotik_router are fine, I dont need data from other components |
Hi! 2020-05-14 17:02:34 DEBUG (SyncWorker_17) [custom_components.mikrotik_router.mikrotikapi] API query: /ip/dhcp-server/lease 2020-05-14 17:02:34 DEBUG (SyncWorker_5) [custom_components.mikrotik_router.mikrotikapi] API query: /ping 2020-05-14 17:02:34 DEBUG (SyncWorker_5) [custom_components.mikrotik_router.mikrotikapi] Ping host query: /ping 2020-05-14 17:02:34 DEBUG (SyncWorker_14) [custom_components.mikrotik_router.mikrotikapi] API query: /interface 2020-05-14 17:02:34 DEBUG (SyncWorker_4) [custom_components.mikrotik_router.mikrotikapi] API query: /ping 2020-05-14 17:02:39 DEBUG (SyncWorker_1) [custom_components.mikrotik_router.mikrotikapi] API query: /interface/wireless/registration-table 2020-05-14 17:02:41 DEBUG (SyncWorker_3) [custom_components.mikrotik_router.mikrotikapi] API query: /interface 2020-05-14 17:02:45 WARNING (SyncWorker_17) [custom_components.mikrotik_router.mikrotikapi] Mikrotik Reconnected to 192.168.88.1 2020-05-14 17:02:45 DEBUG (SyncWorker_12) [custom_components.mikrotik_router.mikrotikapi] API query: /ip/arp 2020-05-14 17:02:47 DEBUG (SyncWorker_0) [custom_components.mikrotik_router.mikrotikapi] API query: /ping 2020-05-14 17:02:49 DEBUG (SyncWorker_17) [custom_components.mikrotik_router.mikrotikapi] API query: /ping |
if that is all you are getting, it means your router api is not returning anything. I dont know how is that possible since login was successful. You better check your firewall rules in case you are blocking outgoing traffic from API or user you use does not have rights to access api other then login. |
I tested it for several days! I turned off all rules. unfortunately no good |
It is weird. you said it was working for a while, but in debugs you have provided, there was nothing at all, so it was not working. |
Hi! Yes. interesting because i can't determine how long it's good. 1 hour, 5 hours variable |
can you capture it in debug? the moment then it stops working, so we can still see data coming in and then stop? |
I got the same issue, it broke few minutes after startup
It just loops those logs I'll look into it,. |
Hi! update: |
I have missed this. how do you run those scripts at the same time? any detailed info that would help me reproduce this issue would help. |
can you add an old version? |
i made a new installation. |
I didnt delete any versions, you can try old version at any time. Without running any scripts? |
Hi! Anything I modify the mikrotik interface, the module crashes. The physical is true, but I will also look at the virtual. |
I tried disabling and enabling various interfaces, but everything works fine for me. I even updated to the same RouterOS version you have. |
Can you export your whole mikrotik configuration and give me detailed step by step instructions how to reproduce the issue? |
Hi! |
There were quite few changes between those versions. |
Hi. I'm also getting this issue. The Mikrotik works okay for a short period of time then stops responding. Log Details (ERROR) Mikrotik x.x.x.x error while get_traffic : unknown Happy to provide log files if it helps. |
please do, also export of your setup. just mask any private information. |
i have experianced the same issue just recently. and i think is related to upgraded version of module. current version on my installation is 1.5.8. |
there is nothing I can do unless I receive information I need for reproducing the issue from someone. |
I will gladly do what I can. Tell me what steps to do to help.
Best regards.
Bartek
wt., 23 cze 2020, 01:04 użytkownik Tomaae <[email protected]>
napisał:
… there is nothing I can do unless I receive information I need for
reproducing the issue from someone.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ42S5DH6EALK6SAXBOE5LRX7PQXANCNFSM4M5SKLTA>
.
|
I will need a configuration export to see what kind of special setup is causing this. |
here is my config |
I kept your configuration running for quite a while and problem was not reproduced. |
Strangely enough when I uninstalled the integration and installed again the
problem does not appear anymore. Or maybe enabling debug fixed the problem
for me.
pt., 26 cze 2020, 15:56 użytkownik Tomaae <[email protected]>
napisał:
… I kept your configuration running for quite a while and problem was not
reproduced.
Can you try to debug it so we know exact error you get?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJ42SZ7OIW4XCIC36IWW4TRYSSI7ANCNFSM4M5SKLTA>
.
|
thats even more strange |
ok, so i got it broken again, it looks like it breaks when i connect through vpn. |
i connected to vpn around 20:09 and disconnected a minute later. After connecting to vpn i run homeassistant application on my mobile. seen me as home, and other persons as away. I turned off one device, closed application and disconnected from vpn. |
restarting homeassistant fixes the problem. Connecting and disconnecting vpn breaks it again. It is actually the disconnecting which breaks the component. |
thanks, I can see whats happening in debugs now. |
can you test the same with master branch? |
it looks like it still does not work. Or maybe i do not know how to use master. I downloaded homeassistant-mikrotik_router-master.zip, decompressed it and copied content of mikrotik_router to my homeassistant/custom_components/mikrotik_router. I noticed two files with different length. Full log attached. |
Yeah, its not as clear with new HACS UI. This is how you switch to master: I have added debugs to get more information for this particular issue, please replace helper.py with this file and run debug again: |
new logs with new helper |
thanks, of course I excluded every type of ppp user except one you use. a copy paste woopsie :) |
success. it works now. |
No, it wont break. Each ppp connection creates a new interface of type relevant to that connection:
Here is a list of all types for each ppp:
Problem was that when it disconnected, interface was removed and when integration sent a query for that interface, mikrotik returns an error. Thanks a lot for helping with debugs, this issue was driving me nuts since I could not replicate it. |
great! happy it is resolved. Excellent job! |
fix released in v1.5.9 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi!
unfortunately, mikrotik integration always freezes
https://ibb.co/3Y1BmzB
sometimes it goes for 12 hours, sometimes only for a few hours
in which case I get an identities unavailable message
https://ibb.co/DCQRFZV
I have 2 such routers at home. each gives such a message
if i delete the integration then add it again and configure it will go (hours)
as if the mikrotik would ban it after a while.
there are no firewall rules set in the router !!
SW
Mikrotik router 1.5.6
Home Assistant 0.109.6
Mikrotik HapAC2 os ver. 6.46.5
Thank you!
The text was updated successfully, but these errors were encountered: