DuckDNS add-on makes HA GUI crash

I’m trying to make HA accessible remotely.

I followed this guide, which led to this one and this one.

This latter says that you just have to use the DuckDNS add-on, which I installed. I created a DuckDNS account which works perfectly as I forwarded 2 ports and only 8123 does not work. I entered my token and domains as per the documentation, everything is pretty straightforward.

To this point, port 8123 is returning a 312 error (ERR_UNSAFE_PORT) but everything else works fine.

Next step is to enter this portion in configuration.yaml:

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem

This is where everything goes wrong. The whole GUI crashes and I can no longer browse HA. The command line still works though.

Here are the relevant lines of /usr/share/hassio/homeassistant/home-assistant.log:

2021-03-30 19:48:10 ERROR (SyncWorker_2) [homeassistant.components.command_line] Command failed: du -b  /usr/share/hassio/homeassistant/home-assistant_v2.db --block-size=1M
2021-03-30 19:49:10 ERROR (SyncWorker_1) [homeassistant.components.command_line] Command failed: du -b  /usr/share/hassio/homeassistant/home-assistant_v2.db --block-size=1M
2021-03-30 19:50:10 ERROR (SyncWorker_1) [homeassistant.components.command_line] Command failed: du -b  /usr/share/hassio/homeassistant/home-assistant_v2.db --block-size=1M
2021-03-30 19:51:10 ERROR (SyncWorker_5) [homeassistant.components.command_line] Command failed: du -b  /usr/share/hassio/homeassistant/home-assistant_v2.db --block-size=1M
2021-03-30 19:52:10 ERROR (SyncWorker_5) [homeassistant.components.command_line] Command failed: du -b  /usr/share/hassio/homeassistant/home-assistant_v2.db --block-size=1M

Along with my database, I have now a home-assistant_v2.db.corrupt.[my_timestamp] file.

I didn’t have much data in this database so I didn’t mind wasting it. After removing the http part of the YAML using nano, I ran these line and got my HA installation back:

sudo mv /usr/share/hassio/homeassistant/home-assistant_v2.db /usr/share/hassio/homeassistant/home-assistant_v2.db.bak
sudo systemctl restart [email protected]
sudo ha core restart

I installed the Let’s Encrypt add-on as well, it did not work either.

Does anybody have an idea what I am doing wrong?

Thanks for the help!

What does the duckdns log say?

Thanks, I didn’t even think of looking at it.

However, it is not very informative to me:

[18:55:01] INFO: OK
91.169.15.240
NOCHANGE
[19:00:05] INFO: <html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
</body>
</html>
[19:05:13] INFO: OK
91.169.15.240
NOCHANGE

19:00 was the time of my above-mentioned try.

Let's Encrypt add-on log was empty. I’m not sure I should keep them both though.

Something interesting I read on Let's Encrypt documentation is about port 80 being available from the internet for an http challenge. Could it be related?