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!