Hassio and DuckDNS

I seem to be having so many issues with duckdns. I have managed to portforward and can access hass from my public ip with port 8123. Now when going and entering my token and url, i get this within the log

starting version 3.2.4
# INFO: Using main config file /data/workdir/config
+ Generating account key...
+ Registering account key with ACME server...
+ Done!
Tue Mar  6 21:52:02 SAST 2018: KO
# INFO: Using main config file /data/workdir/config
Processing homeauotpi.duckdns.org
 + Signing domains...
 + Creating new directory /data/letsencrypt/homeauotpi.duckdns.org ...
 + Creating chain cache directory /data/workdir/chains
 + Generating private key...
 + Generating signing request...
 + Requesting challenge for homeauotpi.duckdns.org...
KO + Responding to challenge for homeauotpi.duckdns.org...
KOUnknown hook invalid_challenge
ERROR: Challenge is invalid! (returned: invalid) (result: {
  "type": "dns-01",
  "status": "invalid",
  "error": {
    "type": "urn:acme:error:connection",
    "detail": "DNS problem: NXDOMAIN looking up TXT for _acme-challenge.homeauotpi.duckdns.org",
    "status": 400
  },
  "uri": "https://acme-v01.api.letsencrypt.org/acme/challenge/r9XEa7rLV3lxRofchCMEsw0H38aQteiqy9lOnPaL5kw/3714927490",
  "token": "e8EqleEPXKdN8QxbYgfQRLgYj-fRMGs-sQMk6jKfto_j4",
  "keyAuthorization": "e8EqleEPXKdNasdgsdgfbYQRLCYj-dRMGf-jQMk6jKfto_j4.F_BTwasdHt4zfdre5UrgT1I_P6trsquUzasdfasJXVh1sadR40Lo"
})
Tue Mar  6 21:58:24 SAST 2018: KO
Tue Mar  6 22:03:27 SAST 2018: KO
Tue Mar  6 22:08:31 SAST 2018: KO
Tue Mar  6 22:13:36 SAST 2018: KO
Tue Mar  6 22:18:38 SAST 2018: KO
Tue Mar  6 22:23:40 SAST 2018: KO
Tue Mar  6 22:28:42 SAST 2018: KO
Tue Mar  6 22:33:44 SAST 2018: KO
Tue Mar  6 22:38:47 SAST 2018: KO

Then when adding

    http:
      ssl_certificate: /ssl/fullchain.pem
      ssl_key: /ssl/privkey.pem
      base_url: xxxx.duckdns.org
      api_password: !secret api_password

Then checking the config, I get this error

Testing configuration at /config
ERROR:homeassistant.config:Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/ssl/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/ssl/privkey.pem'. (See /config/configuration.yaml, line 23). Please check the docs at https://home-assistant.io/components/http/
ERROR:homeassistant.setup:Setup failed for http: Invalid config.
ERROR:homeassistant.setup:Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for websocket_api: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of system_log. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for system_log: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of api. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for api: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of history. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for history: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api, http, system_log
ERROR:homeassistant.setup:Setup failed for frontend: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of tts. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for tts: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of logbook. Setup failed for dependencies: frontend
ERROR:homeassistant.setup:Setup failed for logbook: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of media_player. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for media_player: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of conversation. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for conversation: Could not setup all dependencies.
ERROR:homeassistant.setup:Unable to setup dependencies of config. Setup failed for dependencies: http
ERROR:homeassistant.setup:Setup failed for config: Could not setup all dependencies.
Failed config
  http: 
    api_password: xxxxxx
    base_url: xxxxxxxxx:8123
    ssl_certificate: /ssl/fullchain.pem
    ssl_key: /ssl/privkey.pem

  General Errors: 
    - Setup failed for http: Invalid config.
    - Unable to setup dependencies of websocket_api. Setup failed for dependencies: http
    - Setup failed for websocket_api: Could not setup all dependencies.
    - Unable to setup dependencies of system_log. Setup failed for dependencies: http
    - Setup failed for system_log: Could not setup all dependencies.
    - Unable to setup dependencies of api. Setup failed for dependencies: http
    - Setup failed for api: Could not setup all dependencies.
    - Unable to setup dependencies of history. Setup failed for dependencies: http
    - Setup failed for history: Could not setup all dependencies.
    - Unable to setup dependencies of frontend. Setup failed for dependencies: api, websocket_api, http, system_log
    - Setup failed for frontend: Could not setup all dependencies.
    - Unable to setup dependencies of tts. Setup failed for dependencies: http
    - Setup failed for tts: Could not setup all dependencies.
    - Unable to setup dependencies of logbook. Setup failed for dependencies: frontend
    - Setup failed for logbook: Could not setup all dependencies.
    - Unable to setup dependencies of media_player. Setup failed for dependencies: http
    - Setup failed for media_player: Could not setup all dependencies.
    - Unable to setup dependencies of conversation. Setup failed for dependencies: http
    - Setup failed for conversation: Could not setup all dependencies.
    - Unable to setup dependencies of config. Setup failed for dependencies: http
    - Setup failed for config: Could not setup all dependencies.

Successful config (partial)
  http:

What do you think would cause this and what do i do to fix this?
Thanks for future replys.

Could it be a simple as you registered homeautopi.duckdns.org but have put homeauotpi.duckdns.org in your config?

Sorry what do you mean?

Looking in your logs it says your url is homeauotpi.duckdns.org. Is that correct or do you have a typo in your duckdns config?

1 Like

That’s exactly what it will be.

Its not a typo as both in the duckdns settings i put https://homeautopi.duck.dns and it is the same within my config.yaml file with it being the same

Look at what you pasted in your first post, here’s an excerpt:

Processing homeauotpi.duckdns.org..

Also, earlier today when I first read the post, I was able to ping homeautopi.duckdns.org, I cannot get a response now. I could not ping homeauotpi.duckdns.org

Yes it is, look harder :slight_smile:

When I tried it yesterday I got the front end UI of his router, luckily he changed the password :rofl:

Oh damm okay thanks well it was my fault for leaking the url but okay so now i seem to be getting there. So now when i type the url while connected to my wifi it will take me to home assistant but when using my cell phone data it will take me to my router now would this be due to port forwarding as i have only port-forward 8123 and i still get those errors mentioned above with regards to the config.yaml and now i get this in duckdns.

starting version 3.2.4
# INFO: Using main config file /data/workdir/config
+ Account already registered!
Wed Mar  7 21:01:13 SAST 2018: KO
# INFO: Using main config file /data/workdir/config
Processing https://xxxxxx.duckdns.org
 + Signing domains...
 + Creating new directory /data/letsencrypt/https://xxxxx.duckdns.org ...
 + Generating private key...
 + Generating signing request...
end of string encountered while processing type of subject name element #1
problems making Certificate Request
Wed Mar  7 21:07:22 SAST 2018: KO