Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirrors keep failing at create-arch-bootstrap.sh #136

Closed
dashfader opened this issue Jul 6, 2024 · 5 comments
Closed

Mirrors keep failing at create-arch-bootstrap.sh #136

dashfader opened this issue Jul 6, 2024 · 5 comments

Comments

@dashfader
Copy link

dashfader commented Jul 6, 2024

I was using Github Actions to build Conty with the Conty AutoRelease CI workflow

Sometimes the build process went well, but sometimes it also fails complaining that the request URL is not found like this one :

error: failed retrieving file 'nvidia-utils-555.58-2-x86_64.pkg.tar.zst' from mirror.osbeck.com : The requested URL returned error: 404
 nvidia-utils-555.58-2-x86_64 downloading...
error: failed retrieving file 'nvidia-utils-555.58-2-x86_64.pkg.tar.zst.sig' from us.mirrors.cicku.me : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)

Is there a way you can make it to use mirrors based on the highest speed? Make use of rankmirrors command from package pacman-contrib

@Kron4ek
Copy link
Owner

Kron4ek commented Jul 6, 2024

Unfortunately yes, this happens sometimes.

Is there a way you can make it to use mirrors based on the highest speed?

create-arch-bootstrap.sh already does this by using reflector before installing packages.

reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 7 --sort rate --save /etc/pacman.d/mirrorlist
@dashfader
Copy link
Author

create-arch-bootstrap.sh already does this by using reflector before installing packages.

reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 7 --sort rate --save /etc/pacman.d/mirrorlist

Ah, seems like i didn't catch that one when i was checking the script, my bad

I just noticed that the script might be using mirrors from the generate_mirrorlist function instead of reflector, which contains both mirror.osbeck.com and us.mirrors.cicku.me

Maybe it's better to use the worldwide mirrors as primary?

@dashfader
Copy link
Author

Using these mirrors seemed to have fixed it. I used the worldwide mirrorlist to make sure the speed are good and up to date, maybe you can add it with some of the US mirrors for Github Actions

generate_mirrorlist () {
	cat <<EOF > mirrorlist
Server = https://geo.mirror.pkgbuild.com/\$repo/os/\$arch
Server = https://mirror.rackspace.com/archlinux/\$repo/os/\$arch
EOF
}
Kron4ek added a commit that referenced this issue Jul 7, 2024
@Kron4ek
Copy link
Owner

Kron4ek commented Jul 7, 2024

It was my stupid mistake, i forgot to sync mirrors after using reflector. The issue should be fixed now.

@dashfader
Copy link
Author

Glad you found the fix, just gave it a shot and it does work now. Thank you so much!

Closing this issue now then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants