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

Now that CentOS 8 Stream is EOL script fails to download dependencies #215

Open
TheFiZi opened this issue Jun 15, 2024 · 5 comments
Open

Comments

@TheFiZi
Copy link

TheFiZi commented Jun 15, 2024

[root@localhost temp]# ./migrate2rocky.sh -r

migrate2rocky - Begin logging at Sat 15 Jun 2024 12:52:23 PM PDT.


Removing dnf cache
Preparing to migrate CentOS Stream 8 to Rocky Linux 8.

Determining repository names for CentOS Stream 8.Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Failed to fetch info for package apr-util-ldap.x86_64.

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

Swapping out the repos to use vault.centos.org solves the problem (Note: Following code edited by Peter Ajamian to use Rocky Linux vault.)

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=https://dl.rockylinux.org/vault|g' /etc/yum.repos.d/CentOS-*

Not sure if this is something you want to address in the script or not but posting here to potentially save someone else some digging.

I was able to migrate from an EOL CentOS 8 Stream to Rocky 8.10 without any problems.

@TheFiZi TheFiZi changed the title Now that CentOS 8 Stream is EOL script fails to download depenancies Now that CentOS 8 Stream is EOL script fails to download dependencies Jun 15, 2024
@pajamian
Copy link
Collaborator

pajamian commented Jun 16, 2024

Indeed this is a known issue and you've found the current workaround, although I would ask that you use the copy of the stream-8 vault repos at https://dl.rockylinux.org/vault/centos/8-stream/ so that we don't hammer the limited CentOS Vault infrastructure with our migrations.

That said, I do have it very high on my todo list to fix this in migrate2rocky itself, I'm just short on free cycles to do it at the moment. Note that there is already a similar fix in migrate2rocky for CentOS Linux 8 migrations.

I'll leave this issue open for now until it gets fixed.

UPDATE: I've edited your code above to use the Rocky Linux vault instead of the original CentOS vault.

@JensTimmerman
Copy link
Contributor

I've proposed a fix in #216 seems to work on my systems

@pajamian
Copy link
Collaborator

pajamian commented Jul 5, 2024

I've proposed a fix in #216 seems to work on my systems

Thank you @JensTimmerman for the PR!

Can someone else test this before I approve it?
https://raw.githubusercontent.com/rocky-linux/rocky-tools/10bd9942ba9b9794d0aab87a00d31d2f7ebf912a/migrate2rocky/migrate2rocky.sh

@scottchiefbaker
Copy link

I just ran this updated script on an old CentOS 8 Stream server and it worked fine.

@pajamian
Copy link
Collaborator

pajamian commented Jul 7, 2024

Approved PR #216 which fixes this issue.

Going to leave this issue open a bit longer because we still need updated text to replace the outdated text shown at completion of Stream migrations.

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

No branches or pull requests

4 participants