Skip to content

Docker container causing 100% CPU core load with default config when IPv6 not available #10

@jgroman

Description

@jgroman

I tried running openwebrx and later just codecsesrver latest Docker image on my x86_64 box running Ubuntu server 20.04. Codecserver running in both those containers would cause 100% CPU core load and following console output:

# docker run -v codecserver-config:/etc/codecserver -p 1073:1073 jketterl/codecserver:latest
Hello, I'm the codecserver.
now scanning for modules...
registering new driver: "ambe3k"
loading devices from configuration...
auto-detecing devices...
scanning for "ambe3k" devices...
device scan complete.
socket error: Address family not supported by protocol

After looking info configuration I found out that the issue is probably related to unavailability of IPv6. My server has IPv6 disabled in GRUB configuration /etc/default/grub like this:

GRUB_CMDLINE_LINUX="ipv6.disable=1"
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

After modifying codecserver server type to tcp4 everything worked as expected. May I suggest for codecserver to have some kind of tcp6 to tcp4 fallback in case tcp6 is not available and server type is set to tcp?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions