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
71.08k stars 29.74k forks source link

websocket_api: Did not receive auth message within 10 seconds #34711

Closed fedebruni84 closed 4 years ago

fedebruni84 commented 4 years ago

The problem

After some time, when opening iOS mobile app, home assistant is disconnected and the log gives the warning: “Disconnected: Did not receive auth message within 10 seconds“. It takes several seconds to reconnect again.

Environment

Problem-relevant configuration.yaml

Traceback/Error logs


2020-04-26 10:20:03 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.xxxxxxxxxxxxxxx] Disconnected: Did not receive auth message within 10 seconds

Additional information

a575606 commented 4 years ago

I concur. My log file looks like this. I'm not sure when exactly it started, but it's persisted at least through the last 3 updates. I can't seem to track it down. If I could even turn off the log entries, it would help, as it's pretty annoying trying to find anything in the log

2020-04-28 22:49:47 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263211516368] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:50:07 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263209206672] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:50:31 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262990675600] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:50:51 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263083423312] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:51:15 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263047757008] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:51:37 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263032565008] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:51:58 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263208850448] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:52:22 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263082938960] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:52:41 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263214134608] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:53:04 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262952740496] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:53:25 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263083383248] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:53:43 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263092670608] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:54:07 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263211468688] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:54:27 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263209177424] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:54:49 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262994753168] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:55:08 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262993292816] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:55:29 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263092672592] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:55:48 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263208283664] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:56:09 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263092670992] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:56:33 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263208283536] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:56:55 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263029313936] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:57:17 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262952739152] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:57:38 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262998247824] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:57:58 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263032565008] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:58:20 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262992728464] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:58:39 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263209732560] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:59:00 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262992717200] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:59:22 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263120815952] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 22:59:45 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140263209512464] Disconnected: Did not receive auth message within 10 seconds 2020-04-28 23:00:07 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.140262994096208] Disconnected: Did not receive auth message within 10 seconds

wretanhewe commented 4 years ago

Im noticing this too, while trying to fix OTHER things that are in the log. I'm not having any issues in using Homeassistant, but sorting through this massive logfile is getting bothersome.

stale[bot] commented 4 years ago

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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

tenkaibr commented 2 years ago

Same problem here.

Home Assistant OS 2022.3.0 Versão do Frontend: 20220301.0 - latest

[1642530776] Disconnected: Did not receive auth message within 10 seconds 4 de março de 2022 22:20:38 – (ALERTA) Home Assistant WebSocket API - a mensagem ocorreu pela primeira às 3 de março de 2022 22:16:59 e apareceu 1188 vezes

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:254
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 3 de março de 2022 22:16:59 (1188 occurrences)
Last logged: 4 de março de 2022 22:20:38

[1642530776] Disconnected: Did not receive auth message within 10 seconds
[1712684000] Disconnected: Did not receive auth message within 10 seconds
[1712711400] Disconnected: Did not receive auth message within 10 seconds
[1914156920] Disconnected: Did not receive auth message within 10 seconds
[1712681432] Disconnected: Did not receive auth message within 10 seconds
Ramyras commented 2 years ago

I see exact the same messages on my log files too Home Assistant 2022.3.1

mikey60 commented 2 years ago

I log these messages at a rate of about 30 per day. I am using Home Assistant supervised container version 2022.3.2

Jannski117 commented 2 years ago

Same here.

Version core-2022.4.1
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.9
Operating System Family Linux
Operating System Version 5.10.103-v8
ErwinMikkkers commented 2 years ago

I also have this issue. I started with a fresh install yesterday (switched from raspberry to a NUC). Currently 4071 occurences.

Running version 2022.5.3

sygys commented 2 years ago

mine start popping up after updating to 2022.6.2 dont use appdeamon like others say is the problem

TrueCyberAxe commented 1 year ago

Having the same issue with the latest docker image

mat4444 commented 1 year ago

Same problem for me, a few 1000s per day...

sygys commented 1 year ago

It's time they start fixing all the errors instead of adding new stuff which then cause even more issues

RedNo7 commented 1 year ago

same here. I am on 2023.7.3, but it references 2023.4..

[547300399440] from 127.0.0.1 (Home Assistant/2023.4 (io.robbie.HomeAssistant; build:2023.460; iOS 16.6.0)): Disconnected: Did not receive auth message within 10 seconds
[547270845264] from 127.0.0.1 (Home Assistant/2023.4 (io.robbie.HomeAssistant; build:2023.460; iOS 16.6.0)): Disconnected: Did not receive auth message within 10 seconds
[547138817424] from 127.0.0.1 (Home Assistant/2023.4 (io.robbie.HomeAssistant; build:2023.460; iOS 16.6.0)): Disconnected: Did not receive auth message within 10 seconds
dmiales commented 1 year ago

same

iSenne commented 8 months ago

Same here

[33m2024-01-03 10:32:29.054 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [140610826130880] from 10.244.0.1 (Home Assistant/2023.7 (io.robbie.HomeAssistant; build:2023.471; iOS 17.2.1)): Disconnected: Did not receive auth message within 10 seconds
[33m2024-01-03 10:21:21.040 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [140610857753664] from 10.244.0.1 (Home Assistant/2023.7 (io.robbie.HomeAssistant; build:2023.471; iOS 17.2.1)): Disconnected: Did not receive auth message within 10 seconds