core: SSL handshake Fail
Home Assistant release with the issue:
0.80.3 on Raspberrypi3
Last working Home Assistant release (if known):
Operating environment (Hass.io/Docker/Windows/etc.):
HassOs 1.10
Component/platform:
SSL Handshake fail & SSL Error using DuckDNS/Let’s Encrypt Addon
Description of problem: the following error repeats in the log every 1 second…
2018-10-20 11:29:11 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
File "uvloop/handles/stream.pyx", line 609, in uvloop.loop.UVStream._on_eof
File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)
2018-10-20 11:29:11 ERROR (MainThread) [homeassistant.core] Error doing job: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
File "uvloop/sslproto.pyx", line 504, in uvloop.loop.SSLProtocol.data_received
File "uvloop/sslproto.pyx", line 204, in uvloop.loop._SSLPipe.feed_ssldata
File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
File "/usr/local/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:841)
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Traceback (if applicable):
Additional information:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 84
- Comments: 47 (4 by maintainers)
@conklech I’m sorry but this issue is rather important for devs that use HA extensively. It effectively renders loggers unusable, which would otherwise show you real problems. Now, given the amount of logs that should not be there you just ignore it completely being unable to sniff other real issues.
If it wasn’t important you wouldn’t see it being the most bumped Home Assistant issue and so many people chiming in.
I was seeing the SSL: HTTP_REQUEST error that this issue is directed to. I had recently enabled SSL, and had a browser tab open somewhere to http://localhost:8123/ that was trying to reconnect. As soon as I closed that tab, the errors went away.
I agree with @namadori: The real issue here is that failed client connections should not show up in the log as scary six-line “ERROR” messages. Home Assistant isn’t doing anything wrong; it’s correctly failing/rejecting an improper connection attempt. I’d like to filter this error or downgrade it to DEBUG.
I have the same issue.
0.81 on RPi3, HassIO.
Notes:
Ok, same here - for the second time around. Why do bugs like this stay open for over 6 months while not being solved in later releases?
I had this error but resolved it by
Give NginX SSL Proxy a try if you are stuck on this issue.
THANK YOU! This was messing with my log (and head) badly. I thought I made a mistake along my journey of migrating from my RPi3 to my Qnap NAS Docker installation. I closed the non-SSL tab and the errors went POOF! 🙂
I still agree with @namadori that this should not be recorded in the logs as it is in the current way.
Just a “me too” to bump the issue. Same configuration as anyone on Hassio with DuckDNS add-on and standard configuration.
My 2 cents: if this is simply “stuff” (plugins, random people on the net, hackers…) trying to connect to HA in HTTP and not HTTPS, the “handshake failed” error is not really an error, but only a refused connection… can’t HA simply stop logging it?
Just FYI, rather than write multiple comments I think it make sense to put a 👍 reaction to the initial comment/summary.
@jeffehobbs @sirs2k There are over a thousand open issues. This one only results in log spam. Such comments are not constructive.
That said, there are three paths to resolution, as I outlined earlier in this thread:
Had the same issue and resolved by:
I don’t think that adding multiple issues for the same issue is an option as these would simply be closed as duplicate. Bumping the issue with reaction seems like a reasonable option. The issue that has most 👍 so far has only 11 of them so eventually we can bring this to attention. I agree that this issue is really troublesome.