Connectivity Issues - duckdns


#1

Hi Guys

Suddenly started having issues today, my duckdns (inc letsencrypt) setup has been working fine since last September.

All of a sudden today I’m unable to connect to my HA on the duckdns when on the internal network. Was advised it could be a nat loopback issue but nothing has changed on my modem or router, no firmware updates etc.

For some reason now I can access it via internal IP address on my wired desktop PC, but if I try and connect on my iPhone, the only way I can get it to work is to disable WiFi and connect via the duckdns address but over 4G.

I’ve looked in the log files and can see the below:

ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
2018-06-29 16:42:56 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x731d9cd0>: SSL handshake failed
Traceback (most recent call last):
File “uvloop/sslproto.pyx”, line 592, in uvloop.loop.SSLProtocol._on_handshake_complete
File “uvloop/sslproto.pyx”, line 171, in uvloop.loop._SSLPipe.feed_ssldata
File “/usr/lib/python3.6/ssl.py”, line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
2018-06-29 16:42:56 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x731d9cd0>: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
File “uvloop/sslproto.pyx”, line 496, 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/lib/python3.6/ssl.py”, line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
2018-06-29 16:43:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-06-29 16:43:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-06-29 16:43:01 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!

I’m on 0.72.1 and there’s no errors I can see in the DuckDNS add-on log.

Any help would be massively appreciated, thanks!


SSL error -
Log Error: SSL handshake failed
Hass.io Add-On: letsdnsocloud - Custom Domain SSL & DDNS
#2

I started to get these errors too when I updated to 0.72.0
These errors do not seem functionality. They occur with “Task was destroyed but it is pending!”
I can still access hassio from WiFi or 4G using the same DuckDNS URL.
To get this working I had to install DNSmasq add-on since I don’t have NAT loopback on my router.


#3

And without me doing anything…it’s started working again as it should do this morning…confused haha!


#4

I’m also getting these errors, it doesn’t seem to effect access to home assistant but it’s constantly spamming my log.

2018-07-03 10:00:28 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x734fcbf0>: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 592, in uvloop.loop.SSLProtocol._on_handshake_complete
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
2018-07-03 10:00:28 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x734fcbf0>: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 496, 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/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
2018-07-03 10:00:29 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!

Does anyone have a solution?


#5

Hi everyone!

I actually have the same problem - no access to HomeAssist through “duckdns”. Though from local net there is the access. Here is the text i receive in module DuckDNS:
" end of string encountered while processing type of subject name element #1
problems making Certificate Request".
The access through DuckDNS has worked successfully for a year. The problem appeared a few days ago.

Did anyone find the solution? Any piece of advise?

Thanks.


#6

I’ve got the same errors as you.
I don’t have access through duckdns and the only way i can connect is through my local network.

I hope there is a solution for this problem!


#7

After working fine for another few days, it has stopped working again today.

Getting these errors in the log files whenever I try and access via duckdns:

2018-07-04 00:24:57 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x7396a6f0>: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 496, 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/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)

#8

Tried uninstalling and re-installing the duckdns add-on, but from what I can tell in the log it’s all setup and working perfectly. But still no access via duckdns address internally, but it does work if I switch wifi off on my phone and use 4G. Does everybody elses duckdns work when accessing outside of your network??

Duckdns add-on logs (edited)

> # INFO: Using main config file /data/workdir/config
> + Generating account key...
> + Registering account key with ACME server...
> + Done!
> Wed Jul  4 09:00:38 BST 2018: OK
> 1.2.3.4
> NOCHANGE
> # INFO: Using main config file /data/workdir/config
>  + Creating chain cache directory /data/workdir/chains
> Processing mydomain.duckdns.org
>  + Creating new directory /data/letsencrypt/mydomain.duckdns.org ...
>  + Signing domains...
>  + Generating private key...
>  + Generating signing request...
>  + Requesting new certificate order from CA...
>  + Received 1 authorizations URLs from the CA
>  + Handling authorization for mydomain.duckdns.org
>  + 1 pending challenge(s)
>  + Deploying challenge tokens...
> OK + Responding to challenge for mydomain.duckdns.org authorization...
>  + Challenge is valid!
>  + Cleaning challenge tokens...
> OK + Requesting certificate...
>  + Checking certificate...
>  + Done!
>  + Creating fullchain.pem...
>  + Done!
> Wed Jul  4 09:06:33 BST 2018: OK
> 1.2.3.4
> NOCHANGE

#9

I’m using cludflare as ssl. But I’m also getting

2018-07-04 09:06:02 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x70308a90>: SSL handshake failed
    Traceback (most recent call last):
      File "uvloop/sslproto.pyx", line 592, in uvloop.loop.SSLProtocol._on_handshake_complete
      File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
      File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
        self._sslobj.do_handshake()
    ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
    2018-07-04 09:06:02 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x70308a90>: SSL error errno:1 reason: HTTP_REQUEST
    Traceback (most recent call last):
      File "uvloop/sslproto.pyx", line 496, 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/lib/python3.6/ssl.py", line 689, in do_handshake
        self._sslobj.do_handshake()
    ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)

#10

My problem was that my certificate expired. The problem was that i used both the Let’s Encrypt and the DuckDNS add-on. I deinstalled both and only reinstalled the DuckDNS add-on. After i changed “accept_terms”: from false to true, my certificated got renewed.

But that did not fixed my errors in the logs. After enabling the logger component i saw in the logs that the Sabnzb debug info was the error. So i added Sabnzb at the Discovery Ignore list, after a restart the errors didn’t appear any more in the logs.


#11
2018-07-04 22:15:46 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=28 from 2018-07-04 20:01:14.196630)
2018-07-04 22:16:07 WARNING (MainThread) [homeassistant.setup] Setup of config is taking over 10 seconds.
2018-07-04 22:17:02 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x728ad930>: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 592, in uvloop.loop.SSLProtocol._on_handshake_complete
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)
2018-07-04 22:17:02 ERROR (MainThread) [homeassistant.core] Error doing job: <uvloop.loop.SSLProtocol object at 0x728ad930>: SSL error errno:1 reason: HTTP_REQUEST
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 496, 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/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
```
Got the same issue. Not able to access HA at all. This is a brand new installation of the duckdns add-on.

#12

Having the same error, started a week or two ago:

Error doing job: SSL error errno:1 reason: UNKNOWN_PROTOCOL


#13

I don’t use HASS.io, but I faced same issue with normal docker installation at version 0.73.1.
Home Assistant stop responding after while. If I restart Home Assistant everything will work and can be accessible via DuckDNS uri.
Log give me these:

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)

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)


#14

Mine has been working fine for about a week (it just started working without me doing anything), an again this morning it has stopped again, perfectly on 7am as well according to the logs:

2018-07-12 07:00:00 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 593, in uvloop.loop.SSLProtocol._on_handshake_complete
  File "uvloop/sslproto.pyx", line 171, in uvloop.loop._SSLPipe.feed_ssldata
  File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: HTTP_REQUEST] http request (_ssl.c:777)

#16

I see the same issue. Did you solved it?


#17

Been seeing this as well, all of a sudden it’ll just stop loading. I get the password prompt but then it fails to connect. If I load on the local ip address then I can load the interface if I add exceptions for the SSL cert. The only thing I’ve found that gets me back up and running is to do a completely fresh install and then restore from a backup from before the problem started happening.

However I’ve done three reinstalls tonight and so far each one has resulted in the same problem when restoring from the backup.


#18

Also I sometimes get an error from the browser of the following form:

Corrupted Content Error

The site at https://hostname:port/ has experienced a network protocol violation that cannot be repaired.

#19

I’ve got no idea on this one. Mine has had the issues about 3 or 4 times, but it will seemingly fix itself and work for days at a time with no problem whatsoever.


#20

Mine’s been 100% reliable for many months and has literally just stopped working, no errors in the log. Might have been with the 73.1 update but can’t be sure.


#21

same here, did a full restore of HA without DuckDNS, errors gone.
After installing DuckDNS and get the new cetificate the errors are back.
It’s working fine from outside but I don’t like the errors.

Error doing job: SSL error errno:1 reason: HTTP_REQUEST
Error doing job: SSL handshake failed
Error doing job: Task was destroyed but it is pending!

The log is full with those errors