Unable to open HA - DuckDNS - xxx.duckdns.org

Hello I am beginner and I have a problem with connection to HA. I instaled DuckDNS:

log from DuckDNS:

# INFO: Using main config file /data/workdir/config
+ Generating account key...
+ Registering account key with ACME server...
+ Fetching account ID...
+ Done!
[20:55:39] INFO: OK
xx.xx.xxx.xx
NOCHANGE
# INFO: Using main config file /data/workdir/config
 + Creating chain cache directory /data/workdir/chains
Processing xxx.duckdns.org
 + Creating new directory /data/letsencrypt/xxx.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 xxx.duckdns.org
 + 1 pending challenge(s)
 + Deploying challenge tokens...
OK + Responding to challenge for xxx.duckdns.org authorization...
 + Challenge is valid!
 + Cleaning challenge tokens...
OK + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
 + Done!

Config of DuckDNS add-on:

lets_encrypt:
  accept_terms: true
  certfile: fullchain.pem
  keyfile: privkey.pem
token: 96a033e0-5c2e-YYYY-YYYY-151a40d9ddXX
domains:
  - xxx.duckdns.org
seconds: 300

I changed my Configuration.yaml

http:
  base_url: https://xxx.duckdns.org:8123
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

I made port forwarding:
port:8123 to port:8123 IP: IP of HA protocol: TCP

I used web browser:
https://xxx.duckdns.org:8123
But the page does not respond.

and HA is not available local:
xxx.xxx.xxx.xxx:8123 did not response
I have to comment http configuration and after restart is HA available on local network.

Any idea what is wrong?

I have same exact problem. did you had any luck fixing this

My problem was non-public IP adress. I am using Nabu-Casa cloud and now it works without DDNS :grinning:

Hi,

try “accept_terms: false”.

lets_encrypt:
accept_terms: false
certfile: fullchain.pem
keyfile: privkey.pem
token: 12332345-2345234-123-1235-123123123
domains:

Best regards
Florian

If you use ‘accept_tems : false’, no certificates are issued.

I did however forward both tcp and udp

image

Hello,
I have the same problem using hassio on a raspberry Pi.

I can’t reach home assistant via my duckdns-URL. However it works using the IP-Address.
I think this is due to a deprecated certificate in the folder /ssl, that I can access using ssh.
When I connect to my home-assistant using the IP-address, I can see that the certificate is deprecated since November, 7th. But Duckdns says it is still valid until january 7.

To me it looks as Duckdns is checking for the certificate in the wrong folder for its validity.
So it doesn’t renew it.
Even if I rename the cert-files in the folder “/ssl”, DuckDNS delivers the same log-content.
But I can’t find this certificate. Can it be located in a container?
Or other question - how can I locate the actual store-path of the certificate?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
# INFO: Using main config file /data/workdir/config
+ Account already registered!
[19:37:21] INFO: OK
195.192.71.90
NOCHANGE
[19:37:21] INFO: Renew certificate for domains: <host>.duckdns.org and aliases: 
# INFO: Using main config file /data/workdir/config
Processing <host>.duckdns.org
 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Jan  7 10:29:03 2022 GMT (Longer than 30 days). Skipping renew!
[19:47:28] INFO: OK
<external IP>
NOCHANGE

Hi! I have the same problem. Any news?

Hi from yesterday I have similar problem. I can not conncet to HA by DuckDNS and not working TTS with my google nest mni.
I found this in my log:

2022-10-19 09:12:55.840 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration spotcast which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:12:55.844 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ical which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:12:55.846 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration salus which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:12:55.847 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration livebox which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:12:55.849 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:12:55.851 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:12:55.852 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-10-19 09:13:17.819 WARNING (MainThread) [homeassistant.components.media_player] Setup of media_player platform dlna_dmr is taking over 10 seconds.
2022-10-19 09:13:41.296 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform ipp is taking over 10 seconds.
2022-10-19 09:13:41.300 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Mi Air Purifier 3/3H' for xiaomi_miio integration not ready yet; Retrying in background
2022-10-19 09:13:41.309 ERROR (MainThread) [pyit600] Timeout while connecting to gateway:
2022-10-19 09:13:41.331 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.1.103' for yamaha_musiccast integration not ready yet; Retrying in background
2022-10-19 09:13:42.084 WARNING (MainThread) [homeassistant.components.vacuum] Setup of vacuum platform xiaomi_miio is taking over 10 seconds.
2022-10-19 09:13:47.687 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses deprecated `async_get_registry` to access device registry, use async_get instead. Please report issue to the custom integration author for salus using this method at custom_components/salus/__init__.py, line 68: device_registry = await dr.async_get_registry(hass)
2022-10-19 09:14:11.205 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sensor.ical, esphome
2022-10-19 09:14:12.104 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for bluetooth-monitor-2 @ 192.168.1.105: Error connecting to ('192.168.1.105', 6053): [Errno 111] Connect call failed ('192.168.1.105', 6053)
2022-10-19 09:14:33.548 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 71, in _async_start
await gather_with_concurrency(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 199, in gather_with_concurrency
return await gather(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 197, in sem_task
return await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 225, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data, init_done)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/yamaha_musiccast/config_flow.py", line 89, in async_step_ssdp
if not await MusicCastDevice.check_yamaha_ssdp(
File "/usr/local/lib/python3.10/site-packages/aiomusiccast/musiccast_device.py", line 87, in check_yamaha_ssdp
res = await client.get(location)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 898, in start
message, payload = await protocol.read() # type: ignore[union-attr]
File "/usr/local/lib/python3.10/site-packages/aiohttp/streams.py", line 616, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
2022-10-19 09:14:42.572 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500
2022-10-19 09:15:07.982 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1191, in _sendfile_fallback
read = await self.run_in_executor(None, file.readinto, view)
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 514, in start
resp, reset = await task
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 460, in _handle_request
reset = await self.finish_response(request, resp, start_time)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 613, in finish_response
await prepare_meth(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_fileresponse.py", line 286, in prepare
return await self._sendfile(request, fobj, offset, count)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_fileresponse.py", line 99, in _sendfile
await loop.sendfile(transport, fobj, offset, count)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1170, in sendfile
return await self._sendfile_fallback(transport, file,
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1200, in _sendfile_fallback
await proto.restore()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 268, in restore
self._transport.resume_reading()
File "/usr/local/lib/python3.10/asyncio/sslproto.py", line 343, in resume_reading
self._ssl_protocol._transport.resume_reading()
AttributeError: 'NoneType' object has no attribute 'resume_reading'
2022-10-19 09:16:25.263 WARNING (SyncWorker_3) [pychromecast.controllers] Quick Play failed for https://xxxxxxxx.duckdns.org:8123/api/tts_proxy/c162b098c66c439ee14764538040ac4b63c9978d_pl_-_google_translate.mp3:audio/mpeg({})
2022-10-19 09:16:25.274 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall media_player.play_media (c:01GFQHK5REWD813GJHB5JA9BFG): entity_id=['media_player.nest_google'], announce=True, extra=, media_type=music, media_id=media-source://tts/google_translate?message=Cze%C5%9B%C4%87,+drzwi+wej%C5%9Bciowe+nie+s%C4%85+zamkni%C4%99te+na+zamek.+Zamknij+je+na+klucz.>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1756, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1775, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 207, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 931, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/cast/media_player.py", line 749, in async_play_media
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/pychromecast/quick_play.py", line 77, in quick_play
controller.quick_play(**data)
File "/usr/local/lib/python3.10/site-packages/pychromecast/controllers/media.py", line 547, in quick_play
raise PyChromecastError()
pychromecast.error.PyChromecastError

I’m in the middle of installation, added the http directive in configurarion.yaml and lost connection to my dashboard after restarting.

Ends up that now I need to use https:// instead of http://
<facepalm>

Hi,

I’m facing the same problem. The strange thing is that it have been working well. I didn’t nothing special…

So:

  1. already tried http:// and https://
  2. already checked the log and no errors detected
  3. i have my RPi connectet to a switch->mesh router->net supplier router. But i think that it isn’t related, because it was configured this way before this blocking.

Any ideas?
Thanks

Solved,

Needed to update the IP of the port forwarding in my net supplier router.