Closed mwhrtin closed 1 day ago
I need to improve this error log, but it indicates that the app could not connect to home assistant.
Please verify if home assistant can be reached from the container.
Thank you! The issue was that I couldn’t authenticate from the container.
I was able to ping Home Assistant from the container, but accessing GET /api/
resulted in a 403 Forbidden error. The access token was correct, and I could verify this by authenticating from another machine, but it still failed from the container.
It turns out that the IP address of the container had been added to Home Assistant's IP ban list. What complicated things was that I had already cleared the ip_bans.yaml
file, so it was empty, but I had never restarted the Home Assistant core after clearing it.
Once I restarted Home Assistant, the container could authenticate, and the Matter Hub launched successfully.
I'm not sure what I'm doing wrong, since the Docker image seems to be working for everyone else. When I start the matter hub using the Docker image, it exits after a couple of seconds with exit code 1, and nothing else is logged.
I've tried both the latest version and a few earlier ones, but the result is the same. It doesn't matter whether I start the container using Docker Compose or Docker directly.
This is the full log:
If I omit the Home Assistant URL variable or provide an invalid URL, it will throw a syntax error and print a stack trace in the log. But when I pass all the required variables it will just exit with a
1
.