Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Cannot setup integration #876

Open
magicus opened this issue Sep 30, 2024 · 4 comments
Open

[Bug] Cannot setup integration #876

magicus opened this issue Sep 30, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@magicus
Copy link

magicus commented Sep 30, 2024

The problem

This is kind of a duplicate of #847, but that bug report seems to conflate many different problems. This is a single, clear problem, that occurs as soon as you try to install the AsusRouter integration.

I created a brand new fresh HassOS installation, and just installed HACS and then AsusRouter. I still get the same problem.

The problem is that I cannot even add the integration. At the add integration dialog, I get "Unknown error" whatever combination of SSL and explicit or default (0) ports I try. Without SSL the error arrives immediately. If I chose SSL it takes a longer time for the attempt to time out, but the end result is the same.

The logs show:

2024-09-30 14:49:50.548 ERROR (MainThread) [custom_components.asusrouter.config_flow] Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to `192.168.7.1`: ('Cannot connect to `192.168.7.1` on port `80`. Failed in `_send_request` with error: `Server disconnected`', None)

or

2024-09-30 14:53:59.007 ERROR (MainThread) [custom_components.asusrouter.config_flow] Unknown error of type '<class 'asusrouter.error.AsusRouterTimeoutError'>' during connection to `192.168.7.1`: ('Reached maximum allowed timeout for a single connection attempt: 425.0. The last error: ("Cannot connect to `192.168.7.1` on port `8443`. Failed in `_send_request` with error: `Cannot connect to host 192.168.7.1:8443 ssl:False [Connect call failed (\'192.168.7.1\', 8443)]`", None)', None)

depending on if I'm trying with or without SSL. FWIW, I'm using a self-signed certificate by Asus.

Your device model

AC86U

Firmware type

Merlin

Firmware version

386.14

Integration version with the issue

0.34.0

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

Core 2024.9.3, Superviser 2024.09.1

Is there anything useful in the logs?

No response

Diagnostics information

No response

Additional information

No response

@magicus magicus added the bug Something isn't working label Sep 30, 2024
@github-project-automation github-project-automation bot moved this to Incoming in AsusRouter/HA Sep 30, 2024
@carefulcomputer
Copy link

same issue.

@hiltctn
Copy link

hiltctn commented Jan 22, 2025

Same issue

My main instance of HA ( 2025.1.2 ) runs in a Docker container on a Synology NAS. Straightforward setup i.e. no fudgery or container tweaks. I have the ASUSWRT integration installed and it works fine. I’d now like to switch to AsusRouter instead to make use of one of the entities it provides that ASUSWRT does not. When trying to install AsusRouter, I get an identical error in the logs

Before I put any integrations into my main instance of HA, I always fiddle with them in a test HA instance which is a VM on a Mac. If I try install AsusRouter in the test instance of HA, it works a treat. I can have ASUSWRT running there too at the same time without issue

Any idea what the issue could be with the main instance and AsusRouter ? It connects to the router fine via IP address. But it’s as if it doesn’t even try to authenticate and just stops ( I’ve tried both SSL and non-SSL connection types )

@magicus
Copy link
Author

magicus commented Jan 22, 2025

Good question. I've similar experience, with AsusRouter working fine on a test instance on my mac, but failing on my HassOS main machine.

At any rate, my understanding so far as I have been able to dig into this, is that it is the underlying https://github.com/Vaskivskyi/asusrouter python library that is problematic. I guess that the next step would be to make a simple test program using that library and see what happens. I just have not had time to do any more debugging on this. :-(

@andbergers
Copy link

Problem still persists:

Your device model
AC86U

Firmware version
3.0.0.4.386_51925

Integration version with the issue
0.34.1

Method of the integration installation
HACS

What version and type of Home Assistant installation do you use
Core 2024.12.3, Supervisor 2025.02.0

Is there anything useful in the logs?
Logger: custom_components.asusrouter.config_flow
Source: custom_components/asusrouter/config_flow.py:269
integration: AsusRouter (documentation, issues)
First occurred: 23:05:58 (4 occurrences)
Last logged: 23:17:15

Unknown error of type '<class 'asusrouter.error.AsusRouterConnectionError'>' during connection to XX.XX.XX.XX : ('Cannot connect to XX.XX.XX.XX on port 80. Failed in _send_request with error: Server disconnected', None)

Additional information
Tested configuring integration with default port number 0 as well as explicitly set to 80. SSL disabled.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Status: Incoming
Development

No branches or pull requests

5 participants