home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.68k stars 30.43k forks source link

Sonos not working. No TTS. Persistent invalid authentication from sonoszp.lan #119305

Closed TonyMontuna closed 2 months ago

TonyMontuna commented 4 months ago

The problem

My text to speech stopped working a few updates ago and I'm trying to breakfix it, but have had no success.

I keep getting two persistent errors

`Logger: homeassistant.components.sonos Source: components/sonos/init.py:383 integration: Sonos (documentation, issues) First occurred: 10:27:32 AM (2 occurrences) Last logged: 10:27:38 AM

Failed to add SonosSpeaker using <SoCo object at ip 192.168.86.108>: HTTPConnectionPool(host='192.168.86.108', port=1400): Max retries exceeded with url: /xml/device_description.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbef84d2990>: Failed to establish a new connection: [Errno 113] Host is unreachable')) Failed to add SonosSpeaker using <SoCo object at ip 192.168.86.108>: HTTPConnectionPool(host='192.168.86.108', port=1400): Max retries exceeded with url: /xml/device_description.xml (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbef8884b30>: Failed to establish a new connection: [Errno 113] Host is unreachable'))`

and

`Logger: homeassistant.components.http.ban Source: components/http/ban.py:135 integration: HTTP (documentation, issues) First occurred: 10:27:34 AM (2 occurrences) Last logged: 10:35:53 AM

Login attempt or request with invalid authentication from sonoszp.lan (192.168.86.100). Requested URL: '/media/local/NJDGoal.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI5OTk0OWU2MTI4OTE0NmQyYjc5YTg3ZDIyNTgxZTI3NiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvTkpER29hbC5tcDMiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTY4NTQzNzUsImV4cCI6MTcxNjk0MDc3NX0.qZcy7veCi2YBOhgu4oTbCsH1blVu2jQWo2mDLkcH9qw'. (Linux UPnP/1.0 Sonos/79.1-53290 (ZPS39)) Login attempt or request with invalid authentication from anthony.lan (192.168.86.97). Requested URL: '/auth/login_flow/c89388120b6f82936ac82dbc31c6edef'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36)`

I've tried restarting the devices. Unplugging and replugging devices. Disabling and re-enabling. Deleting integration and resetup integration.

What version of Home Assistant Core has the issue?

System Information version | core-2024.6.1 -- | -- installation_type | Home Assistant OS dev | false hassio | true docker | true user | root virtualenv | false python_version | 3.12.2 os_name | Linux os_version | 6.6.29-haos arch | x86_64 timezone | America/New_York config_dir | /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1395 Downloaded Repositories | 105 HACS Data | ok
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | December 2, 2024 at 7:00 PM relayer_connected | true relayer_region | us-east-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | false remote_server | us-east-1-5.ui.nabu.casa certificate_status | ready instance_id | ffba72365ac8454c8a0ef1e0b464ffc1 can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.3 -- | -- update_channel | stable supervisor_version | supervisor-2024.06.0 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 116.7 GB disk_used | 29.5 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Mosquitto broker (6.4.1), Home Assistant Google Drive Backup (0.112.1), AirCast (4.2.1), Hey Ada! (1.2.0), ESPHome (2024.5.5), Terminal & SSH (9.14.0), RTSPtoWebRTC (1.0.1), RTSPtoWeb - WebRTC (1.4.0), Ring-MQTT with Video Streaming (5.6.4), Zigbee2MQTT (1.38.0-1), Samba share (12.3.1), Tor (5.0.1), Genie (3.0.0), Matter Server (6.1.0), Silicon Labs Flasher (0.2.3), Whisper (2.1.0), Z-Wave JS (0.5.0), Duck DNS (1.17.0), AdGuard Home (5.1.1), Studio Code Server (5.15.0), Advanced SSH & Web Terminal (18.0.0), MariaDB (2.7.1), File editor (5.8.0), AirSonos (4.2.1)
Dashboards dashboards | 8 -- | -- resources | 61 views | 52 mode | storage
Recorder oldest_recorder_run | June 4, 2024 at 5:19 PM -- | -- current_recorder_run | June 10, 2024 at 10:27 AM estimated_db_size | 1116.54 MiB database_engine | sqlite database_version | 3.44.2
Spotify api_endpoint_reachable | ok -- | --

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

sonos

Link to integration documentation on our website

https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sonos%22

Diagnostics information

home-assistant_sonos_2024-06-10T14-55-22.450Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

TonyMontuna commented 4 months ago

Got a new error after a restart now

Falling back to polling, functionality may be limited.

Sonos device at 192.168.86.103 cannot reach Home Assistant at 192.168.86.53:1400.
home-assistant[bot] commented 2 months ago

Hey there @jjlawren, @peterager, mind taking a look at this issue as it has been labeled with an integration (sonos) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `sonos` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign sonos` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


sonos documentation sonos source (message by IssueLinks)

PeteRager commented 2 months ago

This is a duplicate of #110654, please see that issue for remediation.

You speaker has been ip banned from HA, you need to disable ip ban or follow some of the other steps.

PeteRager commented 2 months ago

@home-assistant close