Try to use DuckDNS, now Home Assistant doesn't startup anymore

Help,

I tried to use DuckDNS. Created a subdomain name on the DuckDNS website.

I then added :

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

to my configuration.yaml file. And now I can’t reach my home automation dashboard any more

left screen is locally and right screen is via duckDNS website

I also tried to access locally with https

https://192.168.0.114:8123

use the local IP with https:// in front of it.

just edited my first post :slight_smile:
did that and same problem…

so what does your log tell you?

How do I access the log, if I can’t get into the dashboard anymore?

I just restarted the RPi by taking of the voltage and restarted, with no luck.
Pinging the IP address gives me a reply tho

The log file located in the configuration directory.

Do you actually have an SSL cert and key at /ssl/fullchain.pem and /ssl/privkey.pem? And is port 8123 on your router forwarded to your HA instance?

Had a similar issue. Clearing the browser cache fixed it for me.

Clearing the cache didn’t work for me.
I had to login with SSH and change the configuration.yaml file. I commented out the lines :slight_smile:

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

How do I add an SSL cert. and key at /ssl/fullchain.pem and /ssl/privkey.pem ?

port 8123 is forwarded in my router

oh, this is my log :

2019-02-27 20:12:01 ERROR (MainThread) [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 97). Please check the docs at HTTP - Home Assistant
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: http
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, websocket_api, http, system_log, auth, onboarding
2019-02-27 20:12:01 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2019-02-27 20:12:02 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2019-02-27 20:12:02 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of conversation. Setup failed for dependencies: http
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for conversation: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of panel_iframe. Setup failed for dependencies: frontend
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for panel_iframe: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: Could not set up all dependencies.
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_player. Setup failed for dependencies: http
2019-02-27 20:12:03 ERROR (MainThread) [homeassistant.setup] Setup failed for media_player: Could not set up all dependencies.
2019-02-27 20:12:04 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of hassio. Setup failed for dependencies: http
2019-02-27 20:12:04 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Could not set up all dependencies.

you should use the </> to format your code so we know it’s formatted in your config, its right next to the " in this little editor

according to your error you have an invalid config, did you read here? Duck DNS - Home Assistant

duckdns:
  domain: YOUR_SUBDOMAIN
  access_token: YOUR_ACCESS_TOKEN

i haven’t setup duckdns yet, but i would start with the duck dns components

Also should be formatted like so:

http:
  base_url: [https://tientjesstraat.duckdns.org:8123](https://tientjesstraat.duckdns.org:8123/)
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

This is my log file :

# INFO: Using main config file /data/workdir/config
  • Account already registered!
    Mon Mar 4 19:26:19 CET 2019: KO

INFO: Using main config file /data/workdir/config

Processing tienjesstraat.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 tienjesstraat.duckdns.org
  • 1 pending challenge(s)
  • Deploying challenge tokens…
    KO + Responding to challenge for tienjesstraat.duckdns.org authorization…
  • Cleaning challenge tokens…
    KO + Challenge validation has failed :frowning:
    ERROR: Challenge is invalid! (returned: invalid) (result: {
    “type”: “dns-01”,
    “status”: “invalid”,
    “error”: {
    “type”: “urn:ietf:params:acme:error:dns”,
    “detail”: “DNS problem: NXDOMAIN looking up TXT for _acme-challenge.tienjesstraat.duckdns.org”,
    “status”: 400
    },
    “url”: “https://acme-v02.api.letsencrypt.org/acme/challenge/swhF9AvSV59uQonaabKl3AhT0lPpvqyuoBzyQXxSHPw/13239824435”,
    “token”: “69bBkF4f5P3dXi_wBRVeZXCIjQKjBj16RHvMpfbqUZA”
    })
    Mon Mar 4 19:32:22 CET 2019: KO
    Mon Mar 4 19:37:23 CET 2019: KO

you should probably remove your token and your domain name…

but, based on the error:

It seems to not be registering with the correct hostname in duckdns