I have the nginx reverse proxy setup the same as you, and it uses 10.0.2.2 there. Did you confirm that using 10.0.2.2 in the trusted_proxies works on your setup?
I rebooted my machine and realized that homeassistant doesn’t start automatically, I have to log in as the “homeassistant” user and start it with systemctl --user start container-homeassistant.
What’s the right way to make this happen automatically at boot time?
Do you have the watchdog timer from GitHub - brianegge/home-assistant-sdnotify: systemd service for Home Assistant installed? I did this by starting without it, installing via HACS, and then changing the config. I should provide a version of the systemd unit file that is set up for not that. (Or, possibly, figure out instructions for installing it beforehand?)
Ahh, no, I didn’t install it, for now I didn’t see the need to it. That’s probably the issue then, thanks!
I’ll maybe have a look when I can get RF devices to work properly.
Seem to have problems when running podman and the HA container.
Recently switched from docker-ce to podman, and i have problem with HA dying on timeout when started from systemd.
[cont-finish.d] done.
[s6-finish] waiting for services.
[finish] process exit code 0
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
This does not happend if i do podman run, so it´s related to the service state atleast.
Just wanted to mention that now everything works fine, thanks for the initial write-up.
I just added a node-red container (I still haven’t really understood hass way to automate things) and the only thing I’d like to review is the whole networking between containers/local host/network.
If your networking equipment doesn’t offer such a service, you could look into this:
$ dnf info mdns-repeater
Last metadata expiration check: 0:00:05 ago on Wed 11 May 2022 11:55:55 AM CDT.
Available Packages
Name : mdns-repeater
Version : 1.11
Release : 5.fc35
Architecture : x86_64
Size : 24 k
Source : mdns-repeater-1.11-5.fc35.src.rpm
Repository : fedora
Summary : Multicast DNS repeater
URL : https://github.com/kennylevinsen/mdns-repeater
License : GPLv2+
Description : mdns-repeater is a Multicast DNS repeater for Linux. Multicast DNS
: uses the 224.0.0.51 address, which is "administratively scoped" and
: does not leave the subnet.
:
: This program re-broadcasts mDNS packets from one interface to other
: interfaces.
This will allow mDNS resolution (and therefore, finding Chromecasts) across VLANs.
@mattdm , the thing that lead me to this thread is trying to get zwavejs2mqtt in podman on Centos 8 Stream working.
And… I’m having no luck. zwavejs can’t open the serial port no matter what I’ve tried.
I’ve got container_use_devices turned on, I’ve even set selinux to permissive, my normal user can access the serial port as verified by stty, I’m using “–group-add keep-groups”, I’ve even set the /dev/ttyUSB0 to mode 666 and tried running the container as root, all with no luck. Inside the container stty fails with EPERM as well.
My next step is to try to turn on auditing for accesses to /dev/ttyUSB0 to see if I can get more information about what’s not happy, but if that doesn’t shed any light I’m running out of ideas.
Any thoughts about where my hangup might be?
I’m just trying on the command line right now, so no units yet. Here’s my command:
I’ve checked things a few times. --privileged finally gets access to the serial port, but the device mapping doesn’t come through as specified on the command line. For some reason /dev/ttyUSB0 comes through instead of /dev/zwave being created. I don’t get why, but this is my first foray into device passthrough.
I do see some AVCs, but I think unrelated. Looks like something in the container is trying to run iptables?
The problems I had were due to a bug in the (then) latest version of podman, not due to symlinks or group membership. Moving to an older version of podman fixed everything for me.