sdr-enthusiasts / docker-planefinder

PlaneFinder pfclient, multi-architecture (x86_64, arm32v7, arm64)
18 stars 5 forks source link

[pfclient_daemon] The futex facility returned an unexpected error code. #52

Open bslatyer opened 4 months ago

bslatyer commented 4 months ago

Hey team,

I've just set up a fresh installation of the feeder containers from the GitBook on a Raspberry Pi 4 8GB.

There is an issue with Ubuntu 24.04 and the ability to run the Planefinder container in Docker.

It keeps crashing/looping while giving me this error on the latest versions.

[pfclient_daemon] The futex facility returned an unexpected error code.

Logs are below

05/23/2024 09:38:25 AM 2024-05-22 23:38:25.359760 [-] pfclient (5.0.161 armhf) started with the following options:
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360209 [-]   connection_type = 1
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360231 [-]   tcp_address = ultrafeeder
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360247 [-]   tcp_port = 30005
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360264 [-]   data_format = 1
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360279 [-]   aircraft_timeout = 30
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360295 [-]   select_timeout = 10
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360310 [-]   web_server_port = 30053
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360333 [-]   user_latitude = xxxxxxxxx
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.360352 [-]   user_longitude = xxxxxxxxx
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.361155 [V] Performing NTP sync (1.planefinder.pool.ntp.org)...
05/23/2024 09:38:25 AM 2024-05-22 23:38:25.407853 [-] Processing shutdown request...
05/23/2024 09:38:25 AM [pfclient_daemon] The futex facility returned an unexpected error code.
05/23/2024 09:38:25 AM [pfclient_daemon] The futex facility returned an unexpected error code.
05/23/2024 09:38:25 AM [pfclient_daemon] The futex facility returned an unexpected error code.

Output of os-release

PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Output of uname -a

Linux acadia 6.8.0-1004-raspi #4-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 02:29:55 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Output of docker inspect pfclient

[
    {
        "Id": "61900cd44232b0543b022cddef824af2dbc90ec302ab6cd1700da1404fae7b1b",
        "Created": "2024-05-22T23:33:29.942218053Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 2130,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2024-05-22T23:33:52.612049483Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Health": {
                "Status": "starting",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2024-05-23T09:43:52.666649977+10:00",
                        "End": "2024-05-23T09:43:55.436954669+10:00",
                        "ExitCode": 1,
                        "Output": "TCP4 connection between ANY:ANY and 172.18.0.12:30005 not established: FAIL\n"
                    },
                    {
                        "Start": "2024-05-23T09:53:55.444429011+10:00",
                        "End": "2024-05-23T09:54:01.870417011+10:00",
                        "ExitCode": 1,
                        "Output": "TCP4 connection between ANY:ANY and 172.18.0.12:30005 not established: FAIL\nNo increase in bytes sent to master server. From  to . FAIL\n"
                    }
                ]
            }
        },
        "Image": "sha256:3aecbef4f089789ab26628319adc2c2d04b853699db67451a6d6dd99b8a673cc",
        "ResolvConfPath": "/var/lib/docker/containers/61900cd44232b0543b022cddef824af2dbc90ec302ab6cd1700da1404fae7b1b/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/61900cd44232b0543b022cddef824af2dbc90ec302ab6cd1700da1404fae7b1b/hostname",
        "HostsPath": "/var/lib/docker/containers/61900cd44232b0543b022cddef824af2dbc90ec302ab6cd1700da1404fae7b1b/hosts",
        "LogPath": "",
        "Name": "/pfclient",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "local",
                "Config": {
                    "max-file": "3",
                    "max-size": "10m"
                }
            },
            "NetworkMode": "adsb_default",
            "PortBindings": {
                "30053/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "30053"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "Tmpfs": {
                "/run": "exec,size=64M",
                "/var/log/pfclient": ""
            },
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 50000,
            "CpuQuota": 7500,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "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",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/6aa511f7f92355da2c12cfada5ce31e0d1598b4e578e8850fb6c2915d774ff3a-init/diff:/var/lib/docker/overlay2/8edd2d1f1f5919d6b817aaf3984f0abde3cfeb47dc25f53028a51e441b54baa5/diff:/var/lib/docker/overlay2/8caf0f5e4813ac1b8c5d6ad574d9d4c0d015c302b0d1d0243e90e8b2d0dcf90a/diff:/var/lib/docker/overlay2/c04ff33e69bf2a81f619aebb9b95f634a353732f82a69b8a1f091f3290221190/diff:/var/lib/docker/overlay2/ad43785dacd097b34738d4c1d4b536fbeca5775900fec418d0afea08e9af00aa/diff:/var/lib/docker/overlay2/5a76b2eda7fbe35d623c6aea246d7dfd8177387fe848c453a886995637ce0a89/diff",
                "MergedDir": "/var/lib/docker/overlay2/6aa511f7f92355da2c12cfada5ce31e0d1598b4e578e8850fb6c2915d774ff3a/merged",
                "UpperDir": "/var/lib/docker/overlay2/6aa511f7f92355da2c12cfada5ce31e0d1598b4e578e8850fb6c2915d774ff3a/diff",
                "WorkDir": "/var/lib/docker/overlay2/6aa511f7f92355da2c12cfada5ce31e0d1598b4e578e8850fb6c2915d774ff3a/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "61900cd44232",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "30053/tcp": {},
                "30054/tcp": {}
            },
            "Tty": true,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "LONG= xxxxxxxxx",
                "SHARECODE=xxxxxxxxx",
                "S6_KILL_GRACETIME=1000",
                "TZ= xxxxxxxxx",
                "BEASTHOST=ultrafeeder",
                "LAT= xxxxxxxxx",
                "PATH=/command:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "S6_BEHAVIOUR_IF_STAGE2_FAILS=2",
                "S6OVERLAY_VERSION=v3.1.6.2",
                "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
                "BEASTPORT=30005"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/scripts/healthcheck.sh"
                ],
                "Interval": 600000000000,
                "StartPeriod": 3600000000000
            },
            "Image": "ghcr.io/sdr-enthusiasts/docker-planefinder:latest",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "f35b649246c363368ec656b379e8ed043ce5eeeee1fd89b83acc2941d79e4b30",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:3aecbef4f089789ab26628319adc2c2d04b853699db67451a6d6dd99b8a673cc",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "adsb",
                "com.docker.compose.project.config_files": "/opt/adsb/docker-compose.yml",
                "com.docker.compose.project.working_dir": "/opt/adsb",
                "com.docker.compose.service": "pfclient",
                "com.docker.compose.version": "2.27.0",
                "org.opencontainers.image.created": "2024-05-21T10:53:10.625Z",
                "org.opencontainers.image.description": "PlaneFinder pfclient, multi-architecture (x86_64, arm32v7, arm64)",
                "org.opencontainers.image.licenses": "",
                "org.opencontainers.image.revision": "aa198f86f6b08c5d9ced3065e7498c3a05a2e6f2",
                "org.opencontainers.image.source": "https://github.com/sdr-enthusiasts/docker-planefinder",
                "org.opencontainers.image.title": "docker-planefinder",
                "org.opencontainers.image.url": "https://github.com/sdr-enthusiasts/docker-planefinder",
                "org.opencontainers.image.version": "main"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "6afa99d082109909ad6a2db6008256d0e241019fd91ad4f01740174c516f0f7d",
            "SandboxKey": "/var/run/docker/netns/6afa99d08210",
            "Ports": {
                "30053/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "30053"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "30053"
                    }
                ],
                "30054/tcp": null
            },
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "adsb_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "pfclient",
                        "pfclient"
                    ],
                    "MacAddress": "02:42:ac:12:00:02",
                    "NetworkID": "a272d053c0b76e8127ebf6a46aa5fd38bcbb54972ed11b97f4ecaf4690a361d3",
                    "EndpointID": "b439b38af81dc893f3cd7d5da48176eb95d600461935a1c99f8f314d5e4a00c8",
                    "Gateway": "172.18.0.1",
                    "IPAddress": "172.18.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": [
                        "pfclient",
                        "61900cd44232"
                    ]
                }
            }
        }
    }
]
fredclausen commented 4 months ago

Out of curiosity, does changing the image to ghcr.io/sdr-enthusiasts/docker-planefinder:latest-build-364 (or earlier, you can change the last numbers of that image) help things?

bslatyer commented 4 months ago

Hey Fred,

No, it's been an ongoing issue.

I tried to troubleshoot with wiedehopf in the past two months - no luck

wiedehopf commented 1 week ago

Try the current build, just out of curiosity.