I don't have access to HA after changing "configuration.yaml"

Hello
I have HA running on proxmox.
Today I wanted to install the notices via Telegram and I connected it through DUCKDNS. It didn’t work because of a problem with this lines in the configuration.yaml:

#base_url: Deprecated
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem

I have replaced it with this other one, in which http is added: (or https, I don’t remember)

http: (or https:, cannot remember nor find the source)
   ssl_certificate: /ssl/fullchain.pem
   ssl_key: /ssl/privkey.pem

I don’t think I have made any more changes. But after restart HA… it didn’t start again in http://homeassistant.local:8123, ror from the xxx-duckdns.org address, which does not work.

I don’t have a backup in proxmox (yes in HA, but I don’t have access). I have thought on editing the configuration.yaml from somewhere else, but I can’t find the file in the container.

What should I do?

A bit late now but for future, I always use “Check configuration” in Developer Tools after making a change to those files, before restarting.

I didn`t kwow you can check it BEFORE restarting. Thanks!

That is really kind of the whole point of it. Doesn’t do much good to do it after a restart breaks something. :wink:

Normally I think that currently when you select restart from the yaml page of developers tools it should automatically do the config check before restarting.

But also be aware that the config checker doesn’t always find errors. Most of the time tho it will find the serious errors that will prevent HA from running.

DuckDNS includes LetsEncrypt certificates.

So update the bookmarks/urls you use to access HA from http:// to https:// and it should work.

The “Check Configuration” in developer tools just saves you time. Home Assistant always does a check configuration automatically before a restart. If there is something wrong with your configuration, it won’t restart.

Well that’s the point isn’t it. To stop you not being able to restart HA. You check, and if it fails, you don’t use Restart until you’ve fixed it.

That was it!!!

Thanks.

1 Like