Skip to content
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] AsusRouter Integration failed to set up - IndexError: list index out of range #817

Closed
o0o-sp opened this issue Apr 24, 2024 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@o0o-sp
Copy link

o0o-sp commented Apr 24, 2024

The problem

The AsusRouter Integration failed to set up and I receive a "IndexError: list index out of range" error on setting up the asusrouter in the HA System Logs.

Your device model

GT-AXE16000

Firmware type

Merlin

Firmware version

3004.388.7_beta1_rog

Integration version with the issue

0.30.0

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

Core 2024.4.4; Supervisor 2024.04.0; Operating System 12.2; Frontend 20240404.2

Is there anything useful in the logs?

This is the full error log message:

Logger: homeassistant.config_entries
Source: config_entries.py:551
First occurred: 9:19:55 AM (1 occurrences)
Last logged: 9:19:55 AM

Error setting up entry [MY_URL] for asusrouter
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/asusrouter/__init__.py", line 27, in async_setup_entry
    await router.setup()
  File "/config/custom_components/asusrouter/router.py", line 439, in setup
    await self._init_sensor_coordinators()
  File "/config/custom_components/asusrouter/router.py", line 812, in _init_sensor_coordinators
    available_sensors = await self.bridge.async_get_available_sensors()
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/asusrouter/bridge.py", line 231, in async_get_available_sensors
    SENSORS: await self._get_sensors_modern(AsusData.SYSINFO),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/asusrouter/bridge.py", line 512, in _get_sensors_modern
    data = await self.api.async_get_data(datatype)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/asusrouter.py", line 654, in async_get_data
    processed = process(
                ^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/__init__.py", line 114, in process
    return submodule.process(data)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/asusrouter/modules/endpoint/sysinfo.py", line 65, in process
    jffs_total = safe_float(jffs_data[1])
                            ~~~~~~~~~^^^
IndexError: list index out of range

Diagnostics information

No response

Additional information

No response

@o0o-sp o0o-sp added the bug Something isn't working label Apr 24, 2024
@marceloaf
Copy link

+1. Using GT-AX6000 (router) and RT-AX86U (aimesh node). None of them worked with 388.7 beta 1

@Vaskivskyi
Copy link
Owner

Hello. Sorry for the delay. Looks like Merlin has changed sysinfo endpoint. Will be fixed as soon as possible. Similar to #818

@b2rdetor
Copy link

same issue with 3004.388.7 merlin FW.
look at changelog, may be it can help you:
3004.388.7 (26-Apr-2024)

  • NOTE: RT-AX56U is exceptionally included in this release.

  • NEW: IGD2 support for UPNP/PCP. This will allow IPv6 pinhole
    support for clients. It must be enabled on the WAN
    page. Existing pinholes will be listed on the
    System Log -> IPV6 page.

     Note that IGDv2 has compatibility issues with various
     clients that do not properly follow the standard.
    
  • UPDATED: Openvpn to 2.6.10.

  • UPDATED: TOR to 0.4.8.10.

  • UPDATED: wsdd2 to 2023-12-21 snapshot.

  • UPDATED: miniupnpd to 2.3.6.

  • UPDATED: wireguard kernel to v1.0.20220627.

  • UPDATED: wireguard tools to 2023-08-04 snapshot.

  • UPDATED: dropbear to 2024.84.

  • UPDATED: strongswan to 5.9.13 (fixes CVE-2023-41913)

  • CHANGED: Hardcoded location of the CA bundle in inadyn, so it
    no longer needs to be manually defined in custom
    configurations.

  • CHANGED: Re-designed Tools->Sysinfo page, adding graphs
    and removing useless content.

  • CHANGED: Updated free memory report on networkmap to also
    consider reclaimable memory as being free (kjbracey)

  • CHANGED: "Prevent client auto DoH" will also prevent the use of
    Apple's iCloud Private Relay.

  • CHANGED: NAT Passthrough page - removed the "Enabled + NAT
    Helper" option as the firewall no longer blocks
    traffic when set to disabled. This is back to the
    former behaviour, where this setting only controls
    whether or not to load the NAT helper. You might
    need to readjust that setting if you had previously
    changed it.

  • CHANGED: SIP, RTSP and H323 ALG (NAT helpers) are now
    disabled by default, as these legacy features tend
    to create issues with modern VoIP setups.
    This change will only apply to people doing a
    factory default reset of their router.

  • FIXED: Concurrent cronjob changes through cru could cause
    collisions, leading to missing jobs (dave14305)

  • FIXED: crond would not use the new timezone if it got changed.

  • FIXED: MiniDLNA web interface could only be accessed through an
    IP address (regression in 3004.388.6).

  • FIXED: CVE-2023-5678 & CVE-2024-0727 in openssl (backport from
    Ubuntu by RSDNTWK)

  • FIXED: Long lists on System Log -> Connections tab could result
    in a timeout (Sani Huttunen)

  • REMOVED: Temperature page (charts are now part of the redesigned
    Tools->Sysinfo page).

@Schermbecker
Copy link

+1
Same here with my GT-AX11000.
I updated to the latest firmware 3004.388.7_0_rog and discovered the upper mentioned error in HA logs.
Then I reinstalled the integration 3 times until I found this thread, LOL! Stupid me, still a rookie with HA ;-)

Waiting for an update and appreciate your work on this integration!

@GitHubGio70
Copy link

Same problem here, RT-AX88U FW Merlin 3004.388.7

Waiting for an update and appreciate your work on this integration!

@Vaskivskyi
Copy link
Owner

Hello. Release 0.31.0 (already available via HACS) should fix the issue with Merlin 388.7. Let me know if you are still experiencing any issues

@Schermbecker
Copy link

Looks good so far on my AX11000. Thank you for the fast fix!

@o0o-sp
Copy link
Author

o0o-sp commented May 1, 2024

No more errors in the HA logs and the entity parameters are all on. Thanks!

@o0o-sp o0o-sp closed this as completed May 1, 2024
@o0o-sp o0o-sp reopened this May 3, 2024
@Vaskivskyi
Copy link
Owner

Hello, @o0o-sp, you reopened the issue - does it happen again for you? If so, please, provide some more info. If you are experiencing any other problems, please, open a new issue

@o0o-sp
Copy link
Author

o0o-sp commented May 25, 2024

Hello, @o0o-sp, you reopened the issue - does it happen again for you? If so, please, provide some more info. If you are experiencing any other problems, please, open a new issue

No, sorry, I had an issue but it wasn't caused by this nice plugin, but on my ssl certificate. I'll close now my ticket. Thanks!

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

No branches or pull requests

6 participants