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

Failed to to call /ingress/validate_session ERROR with update to 2021.8.x #54434

Closed
gribouk opened this issue Aug 10, 2021 · 9 comments · Fixed by #54604
Closed

Failed to to call /ingress/validate_session ERROR with update to 2021.8.x #54434

gribouk opened this issue Aug 10, 2021 · 9 comments · Fixed by #54604
Assignees

Comments

@gribouk
Copy link

gribouk commented Aug 10, 2021

The problem

After an update to 2021.8.x I have noticed in my logs that error.

It often comes along with following warning (not sure if these are related):

Logger: zeroconf
Source: /usr/local/lib/python3.9/site-packages/zeroconf/_logger.py:74
First occurred: 10 августа 2021 г., 20:22:35 (1 occurrences)
Last logged: 10 августа 2021 г., 20:22:35

Error with socket 37 (('fe80::52a:b6ff:624c:7d4d', 5353, 0, 4))): [Errno 101] Network unreachable
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable

Last time when I was getting such error with ingress validation, file editor stoped saving changes to the files. Though nothing of that kind was observed yet this time, I decided to report it before it did some any harm...

What is version of Home Assistant Core has the issue?

2021.8.5

What was the last working version of Home Assistant Core?

2021.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:109
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 10 августа 2021 г., 23:44:37 (1 occurrences)
Last logged: 10 августа 2021 г., 23:44:37

Failed to to call /ingress/validate_session -

2021-08-10 23:44:37 ERROR (MainThread) [homeassistant.components.hassio.handler] /ingress/validate_session return code 401
2021-08-10 23:44:37 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /ingress/validate_session -

Logger: zeroconf
Source: /usr/local/lib/python3.9/site-packages/zeroconf/_logger.py:74
First occurred: 10 августа 2021 г., 20:22:35 (1 occurrences)
Last logged: 10 августа 2021 г., 20:22:35

Error with socket 37 (('fe80::52a:b6ff:624c:7d4d', 5353, 0, 4))): [Errno 101] Network unreachable
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable

Additional information

No response

@marcantoinegodde
Copy link

I'm experiencing exactly the same problem, I'm on HA Core 2021.8.5.

Here is my log:

2021-08-11 02:27:25 WARNING (MainThread) [zeroconf] Error with socket 16 (('fe80::6d92:1f3a:a37c:f651', 5353, 0, 2))): [Errno 101] Network is unreachable
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/selector_events.py", line 1048, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network is unreachable

The problem appears to be linked to IPV6. Indeed, fe80::6d92:1f3a:a37c:f651 is the IPV6 address of my eth0 interface. Disabling IPV6 and rebooting HA actually solves the problem.

@RogerSelwyn
Copy link
Contributor

RogerSelwyn commented Aug 11, 2021

Also get this error, I believe it started at 2021.8.5:

2021-08-11 08:53:10 WARNING (MainThread) [zeroconf] Error with socket 30 (('fe80::6333:d591:60db:f340', 5353, 0, 2))): [Errno 101] Network unreachable
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable

@rob1303-hub
Copy link

Also getting this issue - since 2021.8.5 (if I roll back to 2021.8.4 issue goes away).

There is also a thread on Home Assistant Forum with other with the same issue:
https://community.home-assistant.io/t/latest-update-with-new-error/328719/4

Appears to be on multiple different configurations based on comments.

@gulli1986
Copy link

I have the exact same issue running 2021.8.6.

Logger: zeroconf
Source: /usr/local/lib/python3.9/site-packages/zeroconf/_logger.py:74
First occurred: 7:28:44 PM (1 occurrences)
Last logged: 7:28:44 PM

Error with socket 32 (('fe80::fae4:3b62:e891:8c7d', 5353, 0, 3))): [Errno 101] Network unreachable
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable

@kimvognsen
Copy link

Same here

Logger: zeroconf
Source: /usr/local/lib/python3.9/site-packages/zeroconf/_logger.py:74
First occurred: 22:54:55 (1 occurrences)
Last logged: 22:54:55

Error with socket 55 (('fd19:a129:777e:1:8a95:ee10:c359:ee61', 5353, 0, 0))): [Errno 101] Network unreachable
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/selector_events.py", line 1056, in sendto
self._sock.sendto(data, addr)
OSError: [Errno 101] Network unreachable

@ncwhale
Copy link

ncwhale commented Aug 13, 2021

Got the same problem, after hass start every time.

2021-08-13 05:24:04 WARNING (MainThread) [homeassistant.config_entries] Config entry '***' for upnp integration not ready yet: None; Retrying in background
2021-08-13 05:24:04 WARNING (MainThread) [homeassistant.config_entries] Config entry '***' for upnp integration not ready yet: None; Retrying in background
2021-08-13 05:24:10 WARNING (MainThread) [zeroconf] Error with socket 20 (('240d:1a:8f2:3800:78e4:f7ff:fee7:b4cd', 5353, 0, 0))): [Errno 101] Network is unreachable
Traceback (most recent call last):
  File "/usr/lib/python3.8/asyncio/selector_events.py", line 1048, in sendto
    self._sock.sendto(data, addr)
OSError: [Errno 101] Network is unreachable

@probot-home-assistant
Copy link

zeroconf documentation
zeroconf source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (zeroconf) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@bdraco
Copy link
Member

bdraco commented Aug 13, 2021

Can you try installing this PR?

python-zeroconf/python-zeroconf#952

bdraco added a commit to bdraco/home-assistant that referenced this issue Aug 13, 2021
@bdraco bdraco mentioned this issue Aug 13, 2021
21 tasks
balloob pushed a commit that referenced this issue Aug 14, 2021
balloob pushed a commit that referenced this issue Aug 16, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants