homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.57k stars 241 forks source link

The periodic UPnP announcements using HOST #431

Closed casperse closed 2 years ago

casperse commented 2 years ago

Describe Your Problem: After moving to Docker Unraid solution, I keep getting errors using the SONOS plugin ZP Getting periodic UPnP announcements for the HOST IP?! I think its related to the docker and the Host IP?

Followed the guide here to install the Homebridge as a Docker on Unraid https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-Unraid

Troubleshooting with author of ZP plugin: https://github.com/ebaauw/homebridge-zp/issues/195

Logs: 4/19/2022, 9:00:01 AM] [Sonos] upnp: listening on 0.0.0.0:1900 [4/19/2022, 9:00:21 AM] [Sonos] upnp: RINCON_542A1BE254D901400 is alive at 192.168.0.6 [4/19/2022, 9:00:21 AM] [Sonos] upnp: RINCON_542A1BE24C0001400 is alive at 192.168.0.6 [4/19/2022, 9:01:48 AM] [Sonos] upnp: RINCON_542A1B7368F001400 is alive at 192.168.0.6 [4/19/2022, 9:01:48 AM] [Sonos] upnp: RINCON_542A1B7368F001400 is alive at 192.168.0.6

`` Docker container logs here

image

Network : Host image

docker inspect


`docker inspect homebridge
[
    {
        "Id": "04a66d76debc19f4394523ed60dd2565d324de6834a3779b93ccdeec367178ab",
        "Created": "2022-04-15T21:13:45.832273559Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 1007,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2022-04-18T04:14:07.702173632Z",
            "FinishedAt": "2022-04-18T00:33:30.67732612Z"
        },
        "Image": "sha256:61870db3960a1a5f89fa8b81de161ff73f1b15cac0a082c608aa07fa8e8fff01",
        "ResolvConfPath": "/var/lib/docker/containers/04a66d76debc19f4394523ed60dd2565d324de6834a3779b93ccdeec367178ab/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/04a66d76debc19f4394523ed60dd2565d324de6834a3779b93ccdeec367178ab/hostname",
        "HostsPath": "/var/lib/docker/containers/04a66d76debc19f4394523ed60dd2565d324de6834a3779b93ccdeec367178ab/hosts",
        "LogPath": "/var/lib/docker/containers/04a66d76debc19f4394523ed60dd2565d324de6834a3779b93ccdeec367178ab/04a66d76debc19f4394523ed60dd2565d324de6834a3779b93ccdeec367178ab-json.log",
        "Name": "/homebridge",
        "RestartCount": 0,
        "Driver": "btrfs",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": [
            "5e7f75a18f1181b006030f795ab24f34c2fa7ee9ff2909f7f2d790243e52c57c"
        ],
        "HostConfig": {
            "Binds": [
                "/mnt/cache/appdata/homebridge:/homebridge:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {
                    "max-file": "1",
                    "max-size": "1g"
                }
            },
            "NetworkMode": "host",
            "PortBindings": {},
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "host",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": null,
            "Name": "btrfs"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/mnt/cache/appdata/homebridge",
                "Destination": "/homebridge",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "PLEXZONE",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PGID=100",
                "TZ=Europe/Paris",
                "HOST_OS=Unraid",
                "HOST_HOSTNAME=PLEXZONE",
                "HOST_CONTAINERNAME=homebridge",
                "HOMEBRIDGE_CONFIG_UI=1",
                "HOMEBRIDGE_CONFIG_UI_PORT=8581",
                "PUID=99",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/homebridge/node_modules/.bin",
                "QEMU_ARCH=x86_64",
                "S6_KEEP_ENV=1",
                "NODE_VERSION=16.14.2",
                "HOMEBRIDGE_VERSION=1.4.0",
                "CONFIG_UI_VERSION=4.43.0",
                "ENABLE_AVAHI=1"
            ],
            "Cmd": null,
            "Image": "oznu/homebridge:ubuntu",
            "Volumes": {
                "/homebridge": {}
            },
            "WorkingDir": "/homebridge",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "net.unraid.docker.icon": "https://raw.githubusercontent.com/homebridge/branding/master/logos/homebridge-color-round-stylized.png",
                "net.unraid.docker.managed": "dockerman",
                "net.unraid.docker.webui": "http://[IP]:[PORT:8581]/"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "2f575e9816e795932403d467addeec2da0cd6128463f43f2b8ee31d68853e4e5",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {},
            "SandboxKey": "/var/run/docker/netns/default",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "host": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "1d9c807d520c530324e7c34518cec713146c198a68c3fe1d2994e0c7b123fd4b",
                    "EndpointID": "b145d05b604d561fcf805adb2a6de66af4951c7857a6a8bc4275405c97f9e9ee",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "",
                    "DriverOpts": null
                }
            }
        }
    }
]`

**Environment:
* **Host Operating System**: Unraid Docker
* **Docker Version**:  oznu/homebridge:ubuntu latest
* **Image Tag / Type**: ubuntu
github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.