-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avahi-daemon not startable #148
Comments
Does this Problem also persist with an up to date Image: ghcr.io/fhem/fhem-minimal-docker:3-bullseye |
I´m afraid of that, its the same. I made fresh compilation: FROM ghcr.io/fhem/fhem-minimal-docker:3-bullseye ENV AWS_CONFIG_FILE /run/secrets/aws_fhem_config ENV AWS_SHARED_CREDENTIALS_FILE /run/secrets/aws_fhem_credentials WORKDIR /tmp RUN apt-get update -y && \ apt-get upgrade -y && \ apt-get install -y nano cron awscli \ libmatch-simple-perl \ avahi-utils avahi-daemon libnss-mdns systemd && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* root@fhem:/tmp# /etc/init.d/avahi-daemon status Avahi mDNS/DNS-SD Daemon is not running root@fhem:/tmp# ls -ail /run/dbus/pid ls: cannot access '/run/dbus/pid': No such file or directory root@fhem:/tmp# root@fhem:/tmp# root@fhem:/tmp# dbus-daemon --system root@fhem:/tmp# /etc/init.d/avahi-daemon start Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. root@fhem:/tmp# root@fhem:/tmp# /etc/init.d/avahi-daemon status Avahi mDNS/DNS-SD Daemon is running |
Can you explain the reason, why you need avahi inside FHEM container and why you are not using it seperate? Overall i think the service ist not told to be started automatic ( systemctl ). |
Hi, set myTTS tts [192.168.10.102] Hier kommt ein Test! I dont want to change the play.sh script because it should be automaticly installed by fhem dockerfile from github Maybe its possible to add custom start script? |
I am not familar with avahi, but i think best is to run this deamon in a seperate container and use network communication, because running it inside the fhem container will not detect if the deamon isn't running. But to run a custom start command for this deamon inside the FHEM omage you can use following options: Option 1If something needs to be done only once during the first start of a fresh container you just created, like after upgrading to a new version of the FHEM Docker Image, the *-init.sh scripts are the right place:
I think it is enough to run a Option 2If something needs to be done every time you (re)start your container, the *-start.sh scripts are the right place:
This script will be run every time the container starts, even before the FHEM Docker image's own startup preparations. FHEM will not yet be running at this point in time. As an alternative to the first approach, you can run your init script manually from here: One last note to your "apt upgrade" command. This will upgrade installed packages, but not overwrite the packages already installed in the |
Hi,
i need avahi-browse inside of Fhem Docker.
So i need to install those packets:
apt-get install -y avahi-utils avahi-daemon libnss-mdns systemd
My Dockerfile:
My docker compose file:
After starting the docker the daemon didn´t start:
So I have to do the following steps for a proper working inside of docker:
Its a problem inside of the fhem docker why dbus is not startable?
If not, how can i add a custom startscript to execute the needed steps after each container start?
The text was updated successfully, but these errors were encountered: