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.
About this post
- Posted
- Archived
- Edited
- Score
- 20 · 88% up
- Kind
- Text
- ID
- 199pp25
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"
Yup this worked for me
Thanks mate, been hanging on this issue for a while, but this worked
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 🤩
Do you happen to have a link for the community discord?
https://discord.com/invite/archlinux
Success! Thanks for the update!
Did the job
worked for me too
You made my day
U are a beast
All day looking for this, works fine. Thanks!
Works like a charm ty dude
Just came here to see if anyone was having the same problem.
checkupdateswas not working, tried updating the mirrors. Reflector failed to fetch mirrors from any country I tried. Only base invocation ofreflectorspit 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.
Agreed. I experienced pretty much the exact same behavior.
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
I don't have that problem, no. Maybe strace the invocation and see what syscall is failing and why.
I do have a problem where, right now, only 3 mirrors have 100% sync completion, and reflector defaults to requiring 100%.
Will give it a try.
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.”
Wish I had looked here before troubleshooting for a couple hours
same 😭
same. I wasted more than 2 hrs
Same issue with my desktop and archinstall script
Same issue! I thought I was going crazy lol.
Yup, same issue here. Wasn't sure if it was only on my end.
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"
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.
I just failed installing arch through archinstall because reflector got stuck waiting. That was about 30 minutes ago, but I'll try again later.
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
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.
You're right. I'm not familiar with reflector. It just didn't hang or pause indefinitely like the Archinstall did.
Yep. Strange things are afoot at the Circle K.
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.
Me 2, but so lucky my son found this thread.
Add me to the list of those who are facing broken reflector.service AND reflector-simple too.
Same here, I need to install arch today.
Yes, the same problem here. Worked on solutions all morning and now realizing it's time to move on.
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.
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.
lol, that cursed mirror I got as well.
A few days ago someone in the official forum had problems with reflector. In that case it was due to the DNS used. In my opinion, it would be worth a try in this case.
https://bbs.archlinux.org/viewtopic.php?id=291832
I switched DNS servers twice, to no avail.
Hey guys, I found the reason behind the problem.
Reflector by default requires a 100% sync completion for mirrors
If you look here https://archlinux.org/mirrors/status/#successful, you can see that only 3 mirrors right now are at 100% sync completion
Work-around:
--completion 98to 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/
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.
reflector is up and working again
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.