Half of garuda and chaotic mirrors fails in Russia

Every time time, I update the system, I get

error: failed retrieving file 'garuda.db' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function

Same with e.g. paru -S chaotic-aur/chatgpt-desktop-bin:

error: failed retrieving file 'chatgpt-desktop-bin-1.1.0-1-x86_64.pkg.tar.zst' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chatgpt-desktop-bin-1.1.0-1-x86_64.pkg.tar.zst' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chatgpt-desktop-bin-1.1.0-1-x86_64.pkg.tar.zst' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chatgpt-desktop-bin-1.1.0-1-x86_64.pkg.tar.zst' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chatgpt-desktop-bin-1.1.0-1-x86_64.pkg.tar.zst' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chatgpt-desktop-bin-1.1.0-1-x86_64.pkg.tar.zst' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function

And paru -Fy:

error: failed retrieving file 'garuda.files' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.files' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.files' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.files' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.files' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.files' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.files' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.files' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.files' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.files' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.files' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.files' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function

I tried searching about the issue but in all similar cases the problem was that the mirror was gone.
Typing these addresses in browser redirects to aur.chaotic.cx
Previously the error was Connection reset by peer instead but I don’t remember how long ago it started and how many mirrors were affected.

garuda-inxi:

System:
  Kernel: 6.8.7-zen1-2-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=8c339628-d502-4c8c-9df8-dc66760880f0 rw rootflags=subvol=@
    rd.luks.uuid=22e89d50-f56a-48cc-b41d-0e1e31f84fff
    rd.luks.uuid=6346fda9-0e4a-4bc9-8a12-cca8d7c5f073
    resume=/dev/mapper/luks-6346fda9-0e4a-4bc9-8a12-cca8d7c5f073 ibt=on
    sysrq_always_enabled=1 audit=1
    lsm=landlock,lockdown,yama,integrity,apparmor,bpf
  Desktop: Sway v: 0.3.2 with: waybar tools: swayidle avail: swaylock
    lm: greetd Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: CHUWI Innovation And (ShenZhen) product: GemiBook Pro
    v: JS131_V0.15.17 serial: <superuser required>
  Mobo: JS131 model: N/A serial: <superuser required>
    uuid: <superuser required> UEFI: American Megatrends LLC. v: JS131_V0.15.17
    date: 03/16/2022
Battery:
  ID-1: BAT0 charge: 17.5 Wh (46.1%) condition: 38.0/38.0 Wh (100.0%)
    power: 11.1 W volts: 7.6 min: N/A model: Intel SR 1 SR Real Battery
    type: Unknown serial: <filter> status: charging
CPU:
  Info: model: Intel Celeron N5100 bits: 64 type: MCP arch: Alder Lake
    level: v2 built: 2021+ process: Intel 7 (10nm ESF) family: 6
    model-id: 0x9C (156) stepping: 0 microcode: 0x24000026
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1.5 MiB desc: 1x1.5 MiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 796 high: 800 min/max: 800/2800 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 793 4: 794
    bogomips: 8908
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel JasperLake [UHD Graphics] driver: i915 v: kernel
    arch: Gen-11 process: Intel 10nm built: 2019-21 ports: active: eDP-1
    empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:4e61
    class-ID: 0300
  Device-2: Microdia USB 2.0 Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-6:2 chip-ID: 0c45:636b
    class-ID: 0e02 serial: <filter>
  Display: wayland server: Xwayland v: 23.2.6 compositor: Sway v: 0.3.2
    driver: gpu: i915 display-ID: 1
  Monitor-1: eDP-1 model: BOE Display 0x0893 built: 2019 res: 2160x1440
    hz: 60 dpi: 185 gamma: 1.2 scale: 1.5 size: 296x197mm (11.65x7.76")
    diag: 356mm (14") ratio: 3:2 modes: 2160x1440
  API: Vulkan v: 1.3.279 layers: 12 device: 0 type: integrated-gpu
    name: Intel UHD Graphics (JSL) driver: mesa intel v: 24.0.6-arch1.2
    device-ID: 8086:4e61 surfaces: xcb,xlib,wayland device: 1 type: cpu
    name: llvmpipe (LLVM 17.0.6 128 bits) driver: mesa llvmpipe
    v: 24.0.6-arch1.2 (LLVM 17.0.6) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel Jasper Lake HD Audio vendor: Emdoor Digital
    driver: sof-audio-pci-intel-icl
    alternate: snd_hda_intel,snd_sof_pci_intel_icl bus-ID: 00:1f.3
    chip-ID: 8086:4dc8 class-ID: 0401
  API: ALSA v: k6.8.7-zen1-2-zen status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wi-Fi 6 AX201 160MHz driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:4df0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
  IF-ID-2: virbr1 state: down mac: <filter>
  IF-ID-3: virbr2 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-8:3 chip-ID: 8087:0026
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.2
    lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 238.47 GiB used: 159.5 GiB (66.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Netac model: SSD 256GB
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 8A0 scheme: GPT
Partition:
  ID-1: / raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 159.5 GiB (69.5%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-22e89d50-f56a-48cc-b41d-0e1e31f84fff
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 728 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 159.5 GiB (69.5%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-22e89d50-f56a-48cc-b41d-0e1e31f84fff
  ID-4: /var/log raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 159.5 GiB (69.5%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-22e89d50-f56a-48cc-b41d-0e1e31f84fff
  ID-5: /var/tmp raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 159.5 GiB (69.5%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-22e89d50-f56a-48cc-b41d-0e1e31f84fff
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-6346fda9-0e4a-4bc9-8a12-cca8d7c5f073
  ID-2: swap-2 type: zram size: 7.5 GiB used: 1.51 GiB (20.1%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 8 GiB available: 7.5 GiB used: 2.92 GiB (39.0%)
  Processes: 243 Power: uptime: 2h 31m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 2.98 GiB services: power-profiles-daemon,
    thermald, upowerd Init: systemd v: 255 default: graphical tool: systemctl
  Packages: 2416 pm: pacman pkgs: 2404 libs: 616 tools: pamac,paru
    pm: flatpak pkgs: 12 Compilers: clang: 17.0.6 gcc: 13.2.1 Shell: garuda-inxi
    default: Bash v: 5.2.26 running-in: kitty inxi: 3.3.34
Garuda (2.6.26-1):
  System install date:     2023-08-05
  Last full system update: 2024-04-29 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:

Also, I, unfortunately, live in ruzzia, which may be the cause of the issue.
I use zapret to circumvent the censorship and it works.
sudo systemctl stop zapret.service doesn’t fix the issue, so I guess, zapret doesn’t cause it.

I can only say upd work fine here.

Try changing your DNS server.

2 Likes

I don’t fully understand.

upd prints the same errors twice (after syncronizing databases and before refreshing mirrorlists, then after second syncronizing).

paru and upd does update successfully at the end with these errors, I just want to figure out why half of the mirrors don’t work.

Use

sudo reflector --country Germany --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && bat /etc/pacman.d/mirrorlist && sudo pacman -Syu

Use the country you like.

I changed from cloudfalare to google, restarted the service, checked it said google in systemctl status, but it didn’t fix the issue.

Btw, I use dnscrypt-proxy, maybe I should have mentioned it. Here is my /etc/dnscrypt-proxy/dnscrypt-proxy.toml (I removed all comments and most of the default entries, because the default config file is very long):

# server_names = ['cloudflare', 'cloudflare-ipv6']
server_names = ['google', 'google-ipv6']

# listen_addresses = ['127.0.0.1:53']
listen_addresses = ['127.0.0.1:53', '[::1]:53']

ipv4_servers = true
ipv6_servers = false
dnscrypt_servers = false
doh_servers = true
odoh_servers = false
require_dnssec = true
require_nolog = true
require_nofilter = false
disabled_server_names = []

force_tcp = false
http3 = false

timeout = 5000
keepalive = 30

log_file = '/var/log/dnscrypt-proxy/dnscrypt-proxy.log'
use_syslog = true

cert_refresh_delay = 240

bootstrap_resolvers = ['9.9.9.11:53', '8.8.8.8:53']

ignore_system_dns = true

netprobe_timeout = 60
netprobe_address = '9.9.9.9:53'

[local_doh]

listen_addresses = ['127.0.0.1:3000']
path = '/dns-query'

cert_file = "/var/lib/dnscrypt-proxy/localhost+2.pem"
cert_key_file = "/var/lib/dnscrypt-proxy/localhost+2-key.pem"

The problem is the garuda/chaotic-aur mirrors in /etc/pacman.d/chaotic-mirrorlist, not the arch mirrors in /etc/pacman.d/mirrorlist (although I encountered many mirrors in other countries that time out in reflector before):

$ sudo reflector --country Germany --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist && bat /etc/pacman.d/mirrorlist && sudo pacman -Syu
[2024-04-29 18:22:20] WARNING: failed to rate http(s) download (https://archlinux.thaller.ws/extra/os/x86_64/extra.db): Download timed out after 5 second(s).
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────
       β”‚ File: /etc/pacman.d/mirrorlist
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────
   1   β”‚ ################################################################################
   2   β”‚ ################# Arch Linux mirrorlist generated by Reflector #################
   3   β”‚ ################################################################################
   4   β”‚ 
   5   β”‚ # With:       reflector --country Germany --latest 5 --age 2 --fastest 5 --protocol https --sort rat
       β”‚ e --save /etc/pacman.d/mirrorlist
   6   β”‚ # When:       2024-04-29 15:22:26 UTC
   7   β”‚ # From:       https://archlinux.org/mirrors/status/json/
   8   β”‚ # Retrieved:  2024-04-29 15:22:09 UTC
   9   β”‚ # Last Check: 2024-04-29 15:08:36 UTC
  10   β”‚ 
  11   β”‚ Server = https://mirror.moson.org/arch/$repo/os/$arch
  12   β”‚ Server = https://mirror.sunred.org/archlinux/$repo/os/$arch
  13   β”‚ Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
  14   β”‚ Server = https://mirror.pseudoform.org/$repo/os/$arch
  15   β”‚ Server = https://archlinux.thaller.ws/$repo/os/$arch
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────
:: Synchronizing package databases...
 garuda is up to date
 core is up to date
 extra                                  7.8 MiB  1898 KiB/s 00:04 [------------------------------------] 100%
 multilib is up to date
 chaotic-aur                         1757.3 KiB   952 KiB/s 00:02 [------------------------------------] 100%
 archlinuxcn is up to date
error: failed retrieving file 'garuda.db' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from cdn-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from geo-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from br-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from bg-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from ca-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'garuda.db' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
error: failed retrieving file 'chaotic-aur.db' from cl-mirror.chaotic.cx : URL rejected: Malformed input to a URL function
:: Starting full system upgrade...
 there is nothing to do

Maybe I could just comment out the faulty mirrors in /etc/pacman.d/chaotic-mirrorlist, but I want to figure out the problem that is causing them to fail.

upd is just an alias for garuda-update in config.fish, like update.

For all new user we wrote garuda-update to avoid confusion with
pacman -Syu if we only write use update in terminal :slight_smile:

I appologize, I figured out the probrem, while commenting out the mirrors in chaotic-mirrorlist to see which mirrors work and which don’t.
Turns out, some time ago, I commented out these mirrors in the chaotic-mirrorlist because of the either Connection reset by peer or Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds errors, but added the hint commented out by me at the end. Later I commented them in, but forgot to remove the hints at the end, which was causing the errors.

Now no errors during syncronizing, just 1 error during download:

error: failed retrieving file 'waydroid-image-gapps-18.1_20240427-2-x86_64.pkg.tar.zst' from cdn-mirror.chaotic.cx : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds

But I think that’s ok, just bad connection to that mirror.

I will delete the topic shortly.

1 Like

Don’t delete the topic. Keeping it around will be fine if someone else is in the same situation :upside_down_face:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.