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

Zeroconf: bad file descriptor #37791

Closed
chemelli74 opened this issue Jul 12, 2020 · 9 comments · Fixed by #37887
Closed

Zeroconf: bad file descriptor #37791

chemelli74 opened this issue Jul 12, 2020 · 9 comments · Fixed by #37887
Assignees

Comments

@chemelli74
Copy link
Contributor

The problem

Error recorded in log

Environment

  • Home Assistant Core release with the issue: 0.112.4
  • Last working Home Assistant Core release (if known): 0.112.2
  • Operating environment (OS/Container/Supervised/Core): Core
  • Integration causing this issue: zeroconf
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

-

Traceback/Error logs

2020-07-12 19:36:51 WARNING (zeroconf-Engine-140076120746784) [zeroconf] Error reading from socket -1
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/zeroconf/__init__.py", line 1358, in handle_read
    data, (addr, port, *_v6) = socket_.recvfrom(_MAX_MSG_ABSOLUTE)
OSError: [Errno 9] Bad file descriptor

Additional information

@probot-home-assistant
Copy link

Hey there @Kane610, mind taking a look at this issue as its been labeled with an integration (zeroconf) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@bdraco
Copy link
Member

bdraco commented Jul 13, 2020

Do you have ipv6 disabled?

@chemelli74
Copy link
Contributor Author

chemelli74 commented Jul 13, 2020 via email

@bdraco
Copy link
Member

bdraco commented Jul 13, 2020

Is this causing any problems or just an error in the log ?

@chemelli74
Copy link
Contributor Author

Is this causing any problems or just an error in the log ?

Seems just an error in the log.

Simone

@bdraco
Copy link
Member

bdraco commented Jul 15, 2020

@chemelli74

zeroconf:
   default_interface: true
   ipv6: false

Once #37887 is in a release you can disable ipv6

@chemelli74
Copy link
Contributor Author

@chemelli74

zeroconf:
   default_interface: true
   ipv6: false

Once #37887 is in a release you can disable ipv6

@bdraco, thx for the info.

May I ask to go with autodetect of ipv6 ? So if you find a interface with it, you use it; if not you disable.
Would make it more flexible and error prone ( someone can have 2 interfaces, one with ipv6 and one without ).

Just my 2 cents,

Simone

@bdraco
Copy link
Member

bdraco commented Jul 15, 2020

May I ask to go with autodetect of ipv6 ? So if you find a interface with it, you use it; if not you disable.

This would be something python-zeroconf would need to implement outside of Home Assistant.

Would make it more flexible and error prone ( someone can have 2 interfaces, one with ipv6 and one without ).

Just my 2 cents,

Simone

@sermayoral
Copy link
Contributor

Hi Everyone.

I had this problem after upgrading to 0.113. I solved putting

zeroconf:
   default_interface: true
   ipv6: false

The warning log disappeared, but after upgrading to 0.113.3 it seems the warning log has reappeared again :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants