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

migrate2rocky.sh aborts "Failed to download metadata for repo 'PowerTools'" #157

Open
m1schmidt opened this issue Feb 9, 2022 · 10 comments

Comments

@m1schmidt
Copy link

The migration was running along fine -- is there a way to recover gracefully?

migrate2rocky.log

@pajamian
Copy link
Collaborator

pajamian commented Feb 9, 2022

Thanks for the report.

Can you show me the current output of dnf repolist all; dnf repoinfo PowerTools powertools

Thanks

@m1schmidt
Copy link
Author

dnf repolist all

repo id repo name status
PowerTools CentOS-8 - PowerTools enabled
appstream Rocky Linux 8 - AppStream enabled
appstream-debug Rocky Linux 8 - AppStream - Source disabled
appstream-source Rocky Linux 8 - AppStream - Source disabled
baseos Rocky Linux 8 - BaseOS enabled
baseos-debug Rocky Linux 8 - BaseOS - Source disabled
baseos-source Rocky Linux 8 - BaseOS - Source disabled
devel Rocky Linux 8 - Devel WARNING! FOR BUILDROOT AND KOJI USE enabled
elrepo ELRepo.org Community Enterprise Linux Repository - el8 enabled
elrepo-extras ELRepo.org Community Enterprise Linux Extras Repository - el8 disabled
elrepo-kernel ELRepo.org Community Enterprise Linux Kernel Repository - el8 disabled
elrepo-testing ELRepo.org Community Enterprise Linux Testing Repository - el8 disabled
epel Extra Packages for Enterprise Linux 8 - x86_64 enabled
epel-debuginfo Extra Packages for Enterprise Linux 8 - x86_64 - Debug disabled
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64 enabled
epel-modular-debuginfo Extra Packages for Enterprise Linux Modular 8 - x86_64 - Debug disabled
epel-modular-source Extra Packages for Enterprise Linux Modular 8 - x86_64 - Source disabled
epel-source Extra Packages for Enterprise Linux 8 - x86_64 - Source disabled
epel-testing Extra Packages for Enterprise Linux 8 - Testing - x86_64 disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Debug disabled
epel-testing-modular Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 disabled
epel-testing-modular-debuginfo Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 - Debug disabled
epel-testing-modular-source Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 - Source disabled
epel-testing-source Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Source disabled
extras Rocky Linux 8 - Extras enabled
ha Rocky Linux 8 - HighAvailability disabled
ha-debug Rocky Linux 8 - High Availability - Source disabled
ha-source Rocky Linux 8 - High Availability - Source disabled
media-appstream Rocky Linux 8 - Media - AppStream disabled
media-baseos Rocky Linux 8 - Media - BaseOS disabled
nfv Rocky Linux 8 - NFV disabled
plus Rocky Linux 8 - Plus disabled
powertools Rocky Linux 8 - PowerTools enabled
powertools-debug Rocky Linux 8 - PowerTools - Source disabled
powertools-source Rocky Linux 8 - PowerTools - Source disabled
resilient-storage Rocky Linux 8 - ResilientStorage disabled
resilient-storage-debug Rocky Linux 8 - Resilient Storage - Source disabled
resilient-storage-source Rocky Linux 8 - Resilient Storage - Source disabled
rt Rocky Linux 8 - Realtime disabled
zfs ZFS on Linux for EL8 - dkms enabled
zfs-kmod ZFS on Linux for EL8 - kmod disabled
zfs-source ZFS on Linux for EL8 - Source disabled
zfs-testing ZFS on Linux for EL8 - dkms - Testing disabled
zfs-testing-kmod ZFS on Linux for EL8 - kmod - Testing disabled
zfs-testing-source ZFS on Linux for EL8 - Testing Source disabled

dnf repoinfo PowerTools powertools

CentOS-8 - PowerTools 595 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'PowerTools': Cannot prepare internal mirrorlist: No URLs in mirrorlist

@pajamian
Copy link
Collaborator

What's the output of: grep PowerTools /etc/yum.repos.d/*.repo

@pajamian
Copy link
Collaborator

I should note that you still have PowerTools installed from CentOS somehow. RockyLinux powertools is also installed. The initial system package swap successfully removed centos-linux-repos which should have removed the PowerTools repo from CentOS, so there appears to be an errant .repo file in your yum.repos.d directory that is still trying to reference PowerTools and the goal here is to find out what it is and why it's there.

@m1schmidt
Copy link
Author

grep PowerTools /etc/yum.repos.d/*.repo

/etc/yum.repos.d/CentOS-PowerTools.repo:# CentOS-PowerTools.repo
/etc/yum.repos.d/CentOS-PowerTools.repo:[PowerTools]
/etc/yum.repos.d/CentOS-PowerTools.repo:name=CentOS-$releasever - PowerTools
/etc/yum.repos.d/CentOS-PowerTools.repo:mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
/etc/yum.repos.d/CentOS-PowerTools.repo:#baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
/etc/yum.repos.d/Rocky-Debuginfo.repo:name=Rocky Linux $releasever - PowerTools - Source
/etc/yum.repos.d/Rocky-Debuginfo.repo:mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=PowerTools-$releasever-debug
/etc/yum.repos.d/Rocky-Debuginfo.repo:#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/PowerTools/$basearch/debug/tree/
/etc/yum.repos.d/Rocky-PowerTools.repo:# Rocky-PowerTools.repo
/etc/yum.repos.d/Rocky-PowerTools.repo:name=Rocky Linux $releasever - PowerTools
/etc/yum.repos.d/Rocky-PowerTools.repo:mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=PowerTools-$releasever
/etc/yum.repos.d/Rocky-PowerTools.repo:#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/PowerTools/$basearch/os/
/etc/yum.repos.d/Rocky-Sources.repo:name=Rocky Linux $releasever - PowerTools - Source
/etc/yum.repos.d/Rocky-Sources.repo:mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=source&repo=PowerTools-$releasever-source
/etc/yum.repos.d/Rocky-Sources.repo:#baseurl=http://dl.rockylinux.org/$contentdir/$releasever/PowerTools/source/tree/

@m1schmidt
Copy link
Author

I'm fine with removing the CentOS PowerTools repo. Is it possible to continue along with the migration at this point?

@pajamian
Copy link
Collaborator

You would have to finish it manually. My recommendation is to start over if you can and:

mv /etc/yum.repos.d/CentOS-PowerTools.repo{,.DISABLED}
migrate2rocky -r
dnf config-manager --set-enabled powertools

@m1schmidt
Copy link
Author

I will likely start over, however I was thinking about running the migration manually. I've looked through the documentation and don't see a procedure outlined for a manual finish. Can you point me in the right direction?

@pajamian
Copy link
Collaborator

Just a dnf distro-sync followed by fixing up EFI boot if applicable.

@bunhin
Copy link

bunhin commented Mar 1, 2022

i got fail migration centos 8 already upgraded to 8.5.2111 before running the script for migration, fail just before converting packages, with error messages of fail to get metadata 'Base OS' or Appstream.

I already try solution from @pajamian that seem work to other user, but still no luck. Try other approach as well as discussed in rocky linux forum. Still failing.

One thing that i did may relate is may be this command that i entered when installing postgresql-12 like this
sudo dnf -q -y module disable postgresql
dnf update is ok and uptodate before migration script started.

Is anything i miss for successful migration, please help.

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

3 participants