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
continues login crashes AsusWRT #103230
Comments
Hey there @kennedyshead, @ollo69, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) asuswrt documentation |
Working on PR #95720 that could fix this problems implementing HTTP protocol, unfortunately this is taking a lot of time. |
So the SSH connector is abandoned? At first glance, it seems like it's some missing connection close in |
I do not see any maintenance from times in ssh lbrary, but you can try to open a issue in aioasuswrt and see if someone will take it in charge. |
It looks like issue is partially there on all levels. First, AsusWRT Merlin has a misleading option "Idle timeout" under SSH server config. It actually sets nvram Second, there's connection leak in Finally, the layout of this module is not helping - explicit disconnect is available, but implemented only for Telnet mode - https://github.com/home-assistant/core/blob/dev/homeassistant/components/asuswrt/bridge.py#L164 I've been testing my theory with manual edits to |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
|
did you try to reconfigure integration selecting https protocol or this solution doesn't work for you? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
The problem
This is reopen of #75056
Out-of-the-box official integration AsusWRT, slowly but steadily crashes AsusWRT Merlin running router by opening and failing to close SSH connections, ultimately filling up the entire RAM.
On my router (which has 1GB of RAM), each such connections leaves 3704K of garbage, and last time it crashed, there were over 4500 instances of dropbear.
It appears that if there's an issue during connection, then all channels will be closed, but not the connection itself. It's also the reason why Dropbear is unable to treat those connections as inactive and auto-close them.
In this state, this official integration is effectively a router-killer. If there's no chance for quick solutions, I think there should be at least a warning added.
What version of Home Assistant Core has the issue?
core-2023.11.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
AsusWRT
Link to integration documentation on our website
https://www.home-assistant.io/integrations/asuswrt/
Diagnostics information
diag.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
AsusWRT merlin version seems to be irrelevant; however, I can confirm it's affecting 3004.388.4 on RT-AX88U Pro. Other reports on the official FW forum exist (e.g. this one)
ha.log contains logs from HA with debug logs enabled for AsusWRT
netstat.log is dump of established connections from HomeAssistant to AsusWRT, seconds after logs were obtained
router.log contains syslog from AsusWRT
From there, it's easy to track ssh connection states. For example:
conn=1
with client port 59802 and PID on router 13733conn=2
with client port 59812 and PID on router 13737conn=17
with client port 55166 and PID on router 22381Additional information
No response
The text was updated successfully, but these errors were encountered: