Eos-rankmirrors still failing

I have internet connection from the machine. I can go to any website, ping any domain, etc.
Nevertheless, even with extended timeout, eos-rankmirrors (as well as eos-welcome) keeps failing while reflector has no issue.

sudo eos-rankmirrors —verbose —sort rate

error detected at function Main, line 696: internet connection not available!

As a result

yay -Syu

fails.

What is eos-rankmirrors doing that reflector is not to assume there’s no internet connection?
How can I solve this issue?

I have no issue running this command on my system in my location. :thinking:

I agree that this is specific. I do not assume it doesn’t work for you.

My question is where the issue might come from? What can I do to have yay recognizing that the system has indeed internet connection.

Reflector populates my mirror list and I can successfully ping the mirrors from the same cli where eos-rankmirrors and yay fail.

How can I fix that?

Can you post the output of the commands?

ex: yay

https://raw.githubusercontent.com/endeavouros-team/eos-bash-shared/main/eos-connection-checker

Here you go:

:: Synchronizing package databases…
endeavouros.db failed to download
core is up to date
extra 7.8 MiB 49.9 MiB/s 00:00 [------------------------------------------------------------------------------------------------------------------------------------------------] 100%
multilib is up to date
error: failed retrieving file ‘endeavouros.db’ from mirror.dal10.us.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from america.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from arch.mirror.constant.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirror.lty.me : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from geo.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirror.theo546.fr : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from de.arch.mirror.kescher.at : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from pkg.fef.moe : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirrors.niyawe.de : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from archlinux.uk.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from europe.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirror.fra10.de.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from arch.phinau.de : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from md.mirrors.hacktegic.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirror.juniorjpdj.pl : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from archlinux.za.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirror.ubrco.de : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from seoul.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from sydney.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from in-mirror.garudalinux.org : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from london.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file ‘endeavouros.db’ from mirrors.neusoft.edu.cn : Failed to connect to mirrors.neusoft.edu.cn port 443 after 545 ms: Couldn’t connect to server
error: failed retrieving file ‘endeavouros.db’ from mirror.telepoint.bg : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)
→ error refreshing databases - exit status 1

and

sudo reflector --protocol https --verbose --latest 25 --sort rate --save /etc/pacman.d/endeavouros-mirrorlist

gives:

[2024-05-29 17:09:43] INFO: rating 25 mirror(s) by download speed
[2024-05-29 17:09:43] INFO: Server Rate Time
[2024-05-29 17:09:44] INFO: https://mirror.f4st.host/archlinux/ 8904.54 KiB/s 0.90 s
[2024-05-29 17:09:46] INFO: https://mirror.ubrco.de/archlinux/ 5696.86 KiB/s 1.41 s
[2024-05-29 17:09:48] INFO: https://md.mirrors.hacktegic.com/archlinux/ 4888.42 KiB/s 1.64 s
[2024-05-29 17:09:51] INFO: https://archlinux.thaller.ws/ 3629.72 KiB/s 2.21 s
[2024-05-29 17:09:51] WARNING: failed to rate http(s) download (https://mirrors.neusoft.edu.cn/archlinux/extra/os/x86_64/extra.db): <urlopen error [Errno 101] Network is unreachable>
[2024-05-29 17:09:51] INFO: https://mirrors.neusoft.edu.cn/archlinux/ 0.00 KiB/s 0.00 s
[2024-05-29 17:09:53] INFO: https://archlinux.uk.mirror.allworldit.com/archlinux/ 6640.36 KiB/s 1.21 s
[2024-05-29 17:09:54] INFO: https://mirror.theo546.fr/archlinux/ 10476.17 KiB/s 0.77 s
[2024-05-29 17:09:54] INFO: https://america.mirror.pkgbuild.com/ 18048.15 KiB/s 0.44 s
[2024-05-29 17:09:56] INFO: https://europe.mirror.pkgbuild.com/ 5461.16 KiB/s 1.47 s
[2024-05-29 17:09:57] INFO: https://geo.mirror.pkgbuild.com/ 16422.56 KiB/s 0.49 s
[2024-05-29 17:09:58] INFO: https://london.mirror.pkgbuild.com/ 9400.36 KiB/s 0.85 s
[2024-05-29 17:10:02] INFO: https://seoul.mirror.pkgbuild.com/ 2840.86 KiB/s 2.82 s
[2024-05-29 17:10:05] INFO: https://sydney.mirror.pkgbuild.com/ 3243.44 KiB/s 2.47 s
[2024-05-29 17:10:11] WARNING: failed to rate http(s) download (https://mirror.telepoint.bg/archlinux/extra/os/x86_64/extra.db): Download timed out after 5 second(s).
[2024-05-29 17:10:11] INFO: https://mirror.telepoint.bg/archlinux/ 0.00 KiB/s 0.00 s
[2024-05-29 17:10:12] INFO: https://mirror.lty.me/archlinux/ 12807.00 KiB/s 0.63 s
[2024-05-29 17:10:12] INFO: https://mirror.osbeck.com/archlinux/ 56855.17 KiB/s 0.14 s
[2024-05-29 17:10:13] INFO: https://arch.mirror.constant.com/ 6062.62 KiB/s 1.32 s
[2024-05-29 17:10:15] INFO: https://archlinux.mailtunnel.eu/ 6871.82 KiB/s 1.17 s
[2024-05-29 17:10:16] INFO: https://mirror.pseudoform.org/ 7200.43 KiB/s 1.11 s
[2024-05-29 17:10:20] INFO: https://archlinux.za.mirror.allworldit.com/archlinux/ 3936.90 KiB/s 2.04 s
[2024-05-29 17:10:21] INFO: https://arch.phinau.de/ 6975.65 KiB/s 1.15 s
[2024-05-29 17:10:22] INFO: https://de.arch.mirror.kescher.at/ 8992.12 KiB/s 0.89 s
[2024-05-29 17:10:24] INFO: https://mirrors.niyawe.de/archlinux/ 7648.43 KiB/s 1.05 s
[2024-05-29 17:10:27] INFO: https://mirrors.ustc.edu.cn/archlinux/ 3654.87 KiB/s 2.20 s
[2024-05-29 17:10:29] INFO: https://arch.jensgutermuth.de/ 6098.50 KiB/s 1.32 s

@Loungagna
I don’t really know what the issue is on your end but i can tell you i can access all links.

reflector is not capable of generating EnOS’ mirrorlist.

It is for Arch’s mirrorlist:

sudo reflector --protocol https --verbose --latest 25 --sort rate --save /etc/pacman.d/mirrorlist

For endeavouros-mirrorlist, use this for now:

Comment out the servers you don’t want to use.

Using a VPN and/or some form of anti-tracking (DNS blacklists), can trip these things up.

Thank you for the suggestion.

I’m not using a DNS Blocked list or a VPN in thag instance.

eos-connection-checker is telling eos that the system has no internet connection while it does have (ping is successful).

So what does eos-connection-checker checks?

➜ ~ ping archlinux.thaller.ws
PING archlinux.thaller.ws (162.55.244.107) 56(84) bytes of data.
64 bytes from static.107.244.55.162.clients.your-server.de (162.55.244.107): icmp_seq=1 ttl=54 time=108 ms
64 bytes from static.107.244.55.162.clients.your-server.de (162.55.244.107): icmp_seq=2 ttl=54 time=107 ms
^C
— archlinux.thaller.ws ping statistics —
3 packets transmitted, 2 received, 33.3333% packet loss, time 2002ms
rtt min/avg/max/mdev = 107.184/107.620/108.057/0.436 ms
➜ ~ eos-connection-checker || echo internet connection is not available
internet connection is not available
➜ ~

Are you able to try connecting via another means? Disconnecting completely from the current network and hot-spotting / tethering a phone for example?

What do commands

pacman -Q eos-rankmirrors
/bin/curl --silent --fail --connect-timeout 8 https://forum.endeavouros.com/faq >/dev/null && echo OK || echo FAIL
eos-rankmirrors --verbose -n

show?

Maybe the OP 's mirror lists are messed up for EOS?

Necessarily it is as they have used reflector to overwrite /etc/pacman.d/endeavouros-mirrorlist: Eos-rankmirrors still failing - #9 by pebcak

1 Like

I have wired and wifi. It fails on both. Let me try the phone hotspot to check. Thanks for the suggestion.

sudo pacman -Q eos-rankmirrors
eos-rankmirrors 24.4-1
/bin/curl --silent --fail --connect-timeout 8 https://forum.endeavouros.com/faq >/dev/null && echo OK || echo FAIL
OK
eos-rankmirrors --verbose -n
==> eos-rankmirrors: error: error detected at function Main, line 696:
internet connection not available!

Same result when using only the phone’s hotspot

Please post the url

cat /etc/pacman.d/endeavouros-mirrorlist | eos-sendlog