Skip to content

serving databases (core.db, extra.db, community.db, ...) #82

@bernhard-da

Description

@bernhard-da

hi @nroi , first off, thx a lot for providing flexo. it is a really great and very useful piece of software!

i have however experienced one issue; I am working on a fully updated arch-system with the following flexo.toml in which I changed the path of the cache-directory to /storage/...

flexo.toml

cache_directory = "/storage/flexo/pkg"
low_speed_time_secs = 3
connect_timeout = 3000
mirrorlist_fallback_file = "/storage/flexo/state/mirrorlist"
mirrorlist_latency_test_results_file = "/storage/flexo/state/latency_test_results.json"
listen_ip_address = "0.0.0.0"
port = 7878
mirror_selection_method = "auto"
mirrors_predefined = []
num_versions_retain = 1
[mirrors_auto]
    mirrors_status_json_endpoint_fallbacks = [
        "https://raw.githubusercontent.com/nroi/archlinux-mirrors-status-fallback/main/mirrorlist.json",
    ]
    mirrors_blacklist = [ ]
    https_required = true
    ipv4 = true
    ipv6 = false
    max_score = 2.5
    num_mirrors = 8
    mirrors_random_or_sort = "sort"
    timeout = 350
    refresh_latency_tests_after = "8 days"
    allowed_countries = ["DE", "AT", "NL", "CZ"]

flexo is serving cached packages for all clients in my lan works flawlessly. however, i see the following entries in the server-log for all enabled repos when I do a pacman -Syu on a client.

log

{timestamp} {server} flexo[8289]: [{timestamp} INFO  flexo] Request served [CACHE MISS]: "core/os/x86_64/core.db"
{timestamp} {server} flexo[8289]: [{timestamp} INFO  flexo] core/os/x86_64/core.db.sig is not available at https://mirror.f4st.host/archlinux/
{timestamp} {server} flexo[8289]: [{timestamp} INFO  flexo] core/os/x86_64/core.db.sig was unavailable at all remote mirrors.
{timestamp} {server} flexo[8289]: [{timestamp} INFO  flexo] Request served [NO PAYLOAD]: "core/os/x86_64/core.db.sig"

i have tried with different mirrors but I cannot manage that also the databases are provided from flexo. As I have quite a large number of internal clients the traffic (e.g from community.db) adds up over time. Do I have to set a specific config-setting to make this work or do you have an idea where I could start looking?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeature-draftdetailed and structured description about a planned feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions