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
AttributeError: 'SshConnection' object has no attribute '_client' #27783
AttributeError: 'SshConnection' object has no attribute '_client' #27783
Comments
Hey there @kennedyshead, mind taking a look at this issue as its been labeled with a integration ( |
Hi All, I started having the same error last night for presence and sensors.
Here is my config, I am not using SSH key. asuswrt:
host: 192.168.1.1
username: !secret asus_user
password: !secret asus_password
sensors:
- upload
- download
- upload_speed
- download_speed
device_tracker:
- platform: asuswrt
host: 192.168.1.1
username: !secret asus_user
password: !secret asus_password
interval_seconds: 12
consider_home: 30
new_device_defaults:
track_new_devices: true
hide_if_away: false Running 0.100.2 but I updated a few days ago and only just now started having problem. Cheers |
Tried rolling back to 0.99.3 and still has same problem. I have also tried SSH into router with same credentials and am able to get access. I also tried removing the setup from the Config file restarting, adding config back in. This helped as the status has been updating sometimes but therefore the status is not accurate and presence detection keeps flicking between away and home every 7 minutes or so and then eventually stops responding. |
I just noticed this myself, working on a fix. |
I'm surprised no one else has commented saying they have the same problem. I thought this was a popular implementation, have others not suffered the same problem? is there some other work around? |
I have tried using SSH key and this produces the same error. I have also tried using telnet and this doesn't have the same error but the error is a connection time out but I am able to telnet into the router using the same settings. Host timeout. |
@Tekno-man , do you use the Merlin version 384.13_1? |
@ticapix I have stock firmware Current Version : 3.0.0.4.384_45149-g467037b. Not sure what Merlin is. |
SshConnection' object has no attribute '_client' BINGO!! Have the same issue .. latest 101.3 Hassio intel nuc ubuntu docker install I got this error after adding the sensor !
This might be related to the sensor in asuwrt component On top of this i get device_tracker issues. Suddenly the device tracker stops working ... my system turns on my alarmsystem.. lights off and stuff :P .. not really funny. if someone opens a door or window .. bingo!!! alarm siren fired nicely .. I have the feeling the device tracker has a bug since 101.x |
@tiagofreire-pt I use 384.13_0 on asus RTac68U |
@kennedyshead, do you have news about the route cause of this issue? |
after having disabled the Asus: integration for a long time, today thought it might be a good time to re-enable on 102.2/3. no such luck, this error is still there unfortunately. Is anyone aware of any dev / code-owner taking this at heart? |
I am having the same issue for several days/weeks... I also just moved to using aimesh yesterday. I will see if I am able to assist with tracking down the issue. Fingers crossed! |
So at first glance, there is no issue with the router or the code. It is failing to connect on my production server, yet it is working on my development server. I am wondering if something else in the background is causing the problem... like another component, a python module of a different version, etc. UPDATE: I've added some debug logs, we will see if it sheds any light on the problem. Currently it is now working again on my production server. |
Any news on this one? I'm on 0.104.3 and the issue is still present :/ |
Same problem here in 0.105.3! |
I can confirm there are literally thousands of log entries with 0.105.3.
Then I can see a lot of dropbear spawns with established connections on port 22 at router side while HA side still has only one open connection as if all these connections were not properly closed. Also not sure if this is related but if I restart HA these errors usually start occurring again near 00:00 or 01:00. |
I have not seen this since 100.x in my system... thought I fixed it. Sorry :/ There might be a problem if there is a temporary "glitch" in connection |
Same issue. 0.105.3 |
same issue 0.107.7 |
Same issue. 0.107.7 Edit: Also with 0.108.5. |
Also with 0.108.5. |
Also with 0.108.4 |
Stupid of me, I just found the bug! I'll prepare a new release of aioasuswrt |
Still in 0.108.9 |
It should be in 0.109. |
Sorry, I thought the fix was in an earlier release. Thanks! |
Still getting errors in 0.109
|
Same here. 0.109.6 |
I am pretty sure in earlier version maybe 0.8x ,no such issue. |
Will this ever be fixed? Still not working in Home Assistant 0.114.4 |
Stop digging up old unrelated issues, the last stacktrace is a completely new one and would have got sorted if there was a new issue with all info provided. |
Wow. And yes this issue is closed, but for me not resolved. |
Im not doing more than to say that the reason for missing this is that its unrelated to this issue. I'm not flaming and am not irritated or anything like <3 |
@djiest which asus router do you have? I'm running ac5300 with 384.18, soon to be 384.19. Try other firmware versions if you haven't tried already. It could also be an issue specific to your router model. That's all I have to offer |
@djiest I'm 100% sure that your hass can't access the router. Why that is I have no clue. Firewall? Wrong ip (silly thing but could be). Du you have ssh turned on? |
I'm using my router (previous AC66U, now RT-AX92U) for presence detection. That worked perfectly up to HA 0.108, after that I never got it working again. That's why I state that my issue isn't fixed. I've seen some threads about multirouter systems on the HA Forum so I will dive into that. As far as I'm concerned, new insights will I be posting in new issues. |
👍 |
Home Assistant release with the issue:
0.100.2
Last working Home Assistant release (if known):
N/K
Operating environment (Hass.io/Docker/Windows/etc.):
Hassio
Integration:
AsusWRT
Description of problem:
Integration crashes and cause problems with device tracking.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: