Skip to content

Mirrors timing out in docker #116

@bwrsandman

Description

@bwrsandman

Describe the bug
When running the flexo docker, no mirrors are reachable and they time out. Increasing the time out duration does nothing.
Running on two different machines (Arch Linux x86_64, TrueNAS Scale cobia x86_64) gives the same result: Locally, the mirrors are reachable, but in the docker they time out.

Starting up an arch linux docker and installing flexo from the AUR results in timeouts as well.

Running curl inside of the docker works

docker run -it --rm -e RUST_LOG=trace --entrypoint /bin/bash nroi/flexo:latest
root@d56af00b032a:/# curl https://mirror.0xem.ma/arch/extra/os/x86_64/extra.db > /tmp/extra.db

Installation method
Docker

Distribution
linux/amd64

Version
digest e9f3ba02b33a

Log
Running docker run -it --rm -e RUST_LOG=trace nroi/flexo:latest

The following settings were fetched from the TOML file or environment variables: MirrorConfig {
        cache_directory: "/var/cache/flexo/pkg",
        mirrorlist_fallback_file: "/var/cache/flexo/state/mirrorlist",
        mirrorlist_latency_test_results_file: Some(
            "/var/cache/flexo/state/latency_test_results.json",
        ),
        refresh_latency_tests_after: None,
        port: 7878,
        listen_ip_address: Some(
            "0.0.0.0",
        ),
        mirror_selection_method: Auto,
        mirrors_predefined: [],
        custom_repo: None,
        low_speed_limit: Some(
            128000,
        ),
        low_speed_limit_formatted: None,
        low_speed_time_secs: Some(
            3,
        ),
        connect_timeout: None,
        max_speed_limit: None,
        num_versions_retain: Some(
            3,
        ),
        mirrors_auto: Some(
            MirrorsAutoConfig {
                mirrors_status_json_endpoint: "https://archlinux.org/mirrors/status/json/",
                mirrors_status_json_endpoint_fallbacks: [],
                mirrors_blacklist: [],
                https_required: true,
                ipv4: true,
                ipv6: false,
                max_score: 2.5,
                num_mirrors: 8,
                mirrors_random_or_sort: Sort,
                timeout: 350,
                allowed_countries: [],
            },
        ),
    }

...

[2024-01-20T18:02:35.753Z DEBUG flexo::mirror_fetch] Remote mirror https://mirror.osbeck.com/archlinux/core/os/x86_64/core.db appears to use CloudFlare, this mirror will be ignored.
[2024-01-20T18:02:35.753Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror.osbeck.com/archlinux/: Latency test did not succeed: Error { description: "Failed writing received data to disk/application", code: 23, extra: Some("Failed writing header") }
[2024-01-20T18:02:36.103Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror.sunred.org/archlinux/ due to timeout.
[2024-01-20T18:02:36.453Z DEBUG flexo::mirror_flexo] Skip mirror https://archlinux.thaller.ws/ due to timeout.
[2024-01-20T18:02:36.705Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror.moson.org/arch/: Latency test did not succeed: Error { description: "Couldn't connect to server", code: 7, extra: Some("Failed to connect to mirror.moson.org port 443: Connection timed out") }
[2024-01-20T18:02:37.055Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror.cyberbits.eu/archlinux/ due to timeout.
[2024-01-20T18:02:37.338Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror.f4st.host/archlinux/: Latency test did not succeed: Error { description: "Couldn't connect to server", code: 7, extra: Some("Failed to connect to mirror.f4st.host port 443: Connection timed out") }
[2024-01-20T18:02:37.598Z DEBUG flexo::mirror_flexo] Skip mirror https://archlinux.mailtunnel.eu/: Latency test did not succeed: Error { description: "Couldn't connect to server", code: 7, extra: Some("Failed to connect to archlinux.mailtunnel.eu port 443: Connection timed out") }
[2024-01-20T18:02:37.949Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror2.sl-chat.ru/archlinux/ due to timeout.
[2024-01-20T18:02:38.299Z DEBUG flexo::mirror_flexo] Skip mirror https://arch.jensgutermuth.de/ due to timeout.
[2024-01-20T18:02:38.936Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror3.sl-chat.ru/archlinux/ due to timeout.
[2024-01-20T18:02:39.285Z DEBUG flexo::mirror_flexo] Skip mirror https://geo.mirror.pkgbuild.com/ due to timeout.
[2024-01-20T18:02:39.636Z DEBUG flexo::mirror_flexo] Skip mirror https://mirror1.sl-chat.ru/archlinux/ due to timeout.
[2024-01-20T18:02:39.869Z DEBUG flexo::mirror_flexo] Skip mirror https://md.mirrors.hacktegic.com/archlinux/: Latency test did not succeed: Error { description: "Couldn't connect to server", code: 7, extra: Some("Failed to connect to md.mirrors.hacktegic.com port 443: Connection timed out") }
[2024-01-20T18:02:40.178Z DEBUG flexo::mirror_flexo] Skip mirror https://de.arch.mirror.kescher.at/: Latency test did not succeed: Error { description: "Couldn't connect to server", code: 7, extra: Some("Failed to connect to de.arch.mirror.kescher.at port 443: Connection timed out") }
[2024-01-20T18:02:40.486Z DEBUG flexo::mirror_flexo] Skip mirror https://at.arch.mirror.kescher.at/: Latency test did not succeed: Error { description: "Couldn't connect to server", code: 7, extra: Some("Failed to connect to at.arch.mirror.kescher.at port 443: Connection timed out") }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions