Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge πŸŒ‰, get rid of your proprietary Zigbee bridges πŸ”¨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.14k stars 1.68k forks source link

Tini warnings on container start #19830

Open ocgltd opened 11 months ago

ocgltd commented 11 months ago

What happened?

when I start the container the log reports:

Nov 23 04:22:50 lserver.mydomain.com zigbee2mqtt[3120474]: [WARN  tini (2)] Tini is not running as PID 1 and isn't registered as a child subreaper.
Nov 23 04:22:50 lserver.mydomain.com zigbee2mqtt[3120474]: Zombie processes will not be re-parented to Tini, so zombie reaping won't work.
Nov 23 04:22:50 lserver.mydomain.com zigbee2mqtt[3120474]: To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1.

What did you expect to happen?

I'm not sure what role Tini plays, but I don't expect this error. Also not sure what impact this is having.

How to reproduce it (minimal and precise)

I launched the container as follows:

docker run -d --init \
   -p 8090:8090 \
   -e TZ='America/Toronto' \
   -v /data/zigbee2mqtt/data:/app/data \
   -v /run/udev:/run/udev:ro \
   --name zigbee2mqtt \
   --device=/dev/ttyZigbee \
   docker.io/koenkk/zigbee2mqtt

In case it matters, I'm running on AlmaLinux 9 with podman (which offers command line compatibility with docker)

Zigbee2MQTT version

1.33.2

Adapter firmware version

Can't get that far

Adapter

USB ID 1a86:55d4 QinHeng Electronics SONOFF Zigbee 3.0 USB Dongle Plus V2

Debug log

Nov 23 04:22:50 lserver.mydomain.com zigbee2mqtt[3120474]: [WARN tini (2)] Tini is not running as PID 1 and isn't registered as a child subreaper. Nov 23 04:22:50 lserver.mydomain.com zigbee2mqtt[3120474]: Zombie processes will not be re-parented to Tini, so zombie reaping won't work. Nov 23 04:22:50 lserver.mydomain.com zigbee2mqtt[3120474]: To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1.

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

slamp commented 5 months ago

tini is a 'init' for containers https://github.com/krallin/tini It's invoked in your case because you use the --init option You can avoid the warning by adding -e TINI_SUBREAPER=