Skip to content

Reflector broken?

Hello all. Today I noticed in all my various Arch installations (both VM and bare metal) that running my usual Reflector command with the same switches I’ve been using for several years is now failing with “Errno 101” and/or “network unavailable.” However, my network connection is working just fine and I can manually assign mirrors downloaded from archlinux.org to my mirrorlist, which have no problem syncing.

Anyone else seeing weirdness when running Reflector? This seems to have started with the most recent kernel updates.

Edited 18 Jan 2024. We only hold this version.

20 points42 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
20 · 88% up
Kind
Text
ID
199pp25

Author

4
posts
112
comments
0
media
View profile

46 comments

A guy from the Arch Linux Community discord server provided the following fix. Worked like a charm.

run "sudo pacman -Sy"
run "archinstall"
when installing and hangs on reflector
ctrl alt F2
login as root
run "systemctl stop reflector"
ctrl alt F1 back to install
reboot after install
Run "sudo pacman-key --refresh-keys"

21 points

This worked somehow for me too. Somehow because I haven’t rebooted the machine. After the last command I directly launched archinstall. It just worked. Thank you 🤩

2 points

Just came here to see if anyone was having the same problem. checkupdates was not working, tried updating the mirrors. Reflector failed to fetch mirrors from any country I tried. Only base invocation of reflector spit out 3 mirrors, who were unresponsive / 404.

Copied the mirrorlist from my laptop (reflector not working there too), was able to update after disabling some third party repos from Arcolinux.

All in all, reflector seems to be down for now due to some reason.

9 points

the same and found a way i made a fish function add it to your config(work with bash and zsh also )

function update_mirrorlist

Backup the old mirrorlist

sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak

Fetch the new mirrorlist and write it to the file

sudo curl -s "https://archlinux.org/mirrorlist/?country=FR&country=GB&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 10 - | sudo tee /etc/pacman.d/mirrorlist

end

2 points

I was trying to reinstall arch linux in my notebook using the archinstall script and it froze at: “Waiting for automatic mirror selection (reflector) to complete.”

4 points

Yup, same issue here. Wasn't sure if it was only on my end.

2 points

workaround from the guy in the other comment:

run "sudo pacman -Sy"
run "archinstall"
when installing and hangs on reflector
ctrl alt F2
login as root
run "systemctl stop reflector"
ctrl alt F1 back to install
reboot after install
Run "sudo pacman-key --refresh-keys"

2 points

Same issue setting up a VM. Noticed that the reflector service was failing to start when booting the iso. Haven't found a root cause yet but looking.

2 points

I just failed installing arch through archinstall because reflector got stuck waiting. That was about 30 minutes ago, but I'll try again later.

4 points

I am unable to install arch today.  It's stuck at the reflector update in the install process using archinstall.

Oddly seems ok running reflector manually,  that does not help the install though.   Even when specifying custom mirrors or manually editing mirrors.conf it gets stuck at reflector still

3 points

It's not ok by running reflector manually. Are you sure?
Base list just contains those 3 100% complete servers.
Most filtering reduces to 0 matches.

2 points
SmokedMusselsDeleted · saved before deletion

You're right.  I'm not familiar with reflector.   It just didn't hang or pause indefinitely like the Archinstall did.

1 points

Have been working on this for hours today.. Glad to see it's not me causing the problem for once. Will definitely be looking out for updates in this thread.

3 points

Yes, the same problem here. Worked on solutions all morning and now realizing it's time to move on.

3 points

Turned on my PC today to find my mirrorlist only contained 1 mirror that didn't work. Could be related, since I also have reflector set up.

2 points

That is what I said earlier: only 3 mirrors have 100% completion right now, and reflector requires 100% completion by default

It's not a reflector problem at the root, though you could change your invocation to allow lower completion percentages.

As for if or what the mirrors' problems are, I don't know.

2 points
Hefty-Selection8529Removed · saved before deletion

Hey guys, I found the reason behind the problem.

Work-around:

  • add --completion 98 to your reflector command, this will allow reflector to consider all mirrors above 98% sync rate. If this problem ever happens again in the future, you can adjust the completion rate to whatever you need. Currently, 400+ mirrors have above 98% completion, so it was enough for me.

For future reference, this is the url that reflector gets mirror information from: https://archlinux.org/mirrors/status/json/

2 points

yeah it's unsuable now, they say mirrors are out of sync or whatever idk, probably not reflectors Fault per say, but right now you can't use Archinstall for instance since it uses reflector and reflector just hangs.

2 points

Aha, so I am not the only one having trouble with reflector.

reflector failed everytime on me, because I use specific mirrors from certain countries. If only gave me ONE of a 3-digit mirrorlist, which was from Thailand. and that one was 404, so pacman -Syu broke.

solved it by CURL the mirrorlist, replace the #'s and "rankmirror" it back to pacman. saved that as a .sh . disabled reflector for now.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.