Assistance required: Duckdns addon not working with Hassio

Hi Community,

I am new to Home Assistant and would appreciate any advice to fix my Home Assistant access.

I installed duckdns addon a couple of days ago and i lost complete access to Home Assistant. I thought i followed the Juantech video but it still does not work. For the life of me, i cannot work it out.

I have lost HTTP and HTTPS (Never had HTTPS). I am running hassio on a mac mini with a Linux 18.04 OS and a docker container. I have access to linux via ssh, so i can access the necessary files.

I have checked my Home-Assistant log and it provides an error:
“2019-12-09 22:15:51 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: expected ‘’, but found ‘’
in “/config/automations.yaml”, line 3, column 1”

My configuration.yaml file looks like:

So it looks like my “base_url: https://#######.duckdns.org:8123” is the issue but i don’t understand why. I have created my duckdns domain.

My router port forwarding looks like this:

Can anyone provide any insight or guidance on getting access to Home-Assistant via the web interface?

Regards
Ben

If you have it like this in your code, then it is wrong. Indentation is important in YAML. It needs to look like this:

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

@Burningstone Sorry, it does look like that, the cut and pasting screwed up the indentation.

Copy your code, paste it here, mark the code, then press the </> button, voila formatted code :wink:

Can you try putting the https://xxx.duckdns.org:8123 in quotes?

And you get this error with this configuration.yaml file?

Your lack of using the proper formatting for the forums screwed it up.

@flamingm0e my apologies, i am a newbie and will take more care in future posts.

@Burningstone Thank you for the tip! but i don’t know what </> button is.

Do you mean like this?

http:
  base_url: "https://#####.duckdns.org:8123"
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
I still received the following error:
2019-12-09 22:15:51 ERROR (MainThread) [homeassistant.bootstrap] Error loading /config/configuration.yaml: expected '<document start>', but found '<block mapping start>'
  in "/config/automations.yaml", line 3, column 1

Why is it mentioning “/config/automations.yaml”? This file is empty.

When you post here, this button is on the top

image

Are you sure that automations.yaml is empty? Just to make sure, delete the file. Create a new one and test again. If it doesn’t work add
[]
To the automations.yaml file and try again.

1 Like

@Burningstone thank you for your paitence!

I understand the formatting now.

Yes, i deleted the automations.yaml and rebooted the computer. However, i am pretty sure your advice regarding the quotes for the duckdns did the trick.

I tested the https login and it was successful :slight_smile: I tried it in the android app and it was successful.

I just want to say thank you! Your assistance and patience has been very appreciated.

Kind regards
Ben

1 Like