Skip to main content

cPanel & WHM update failure in upcp script

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! I see that you mention running AlmaLinux, but the output you've provided certainly looks like the system thinks it is running CentOS, which is no longer supported and would explain those errors:
    0
  • JohnATK
    Hey there! I see that you mention running AlmaLinux, but the output you've provided certainly looks like the system thinks it is running CentOS, which is no longer supported and would explain those errors: cPanel's guide to convert from CentOS to AlmaLinux, and followed the same steps. When I LS /etc/yum.repos.d, here is what I get: almalinux-ha.repo almalinux.repo CentOS-Base.repo cpanel-plugins.repo epel-playground.repo epel-testing.repo almalinux-plus.repo almalinux-resilientstorage.repo CentOS-Linux-PowerTools.repo.rpmsave EA4.repo epel.repo kernelcare.repo almalinux-powertools.repo CentOS-AppStream.repo cPAddons.repo
    Which ones should I delete? and do I do it using the rm command, or I need to do something else/extra?
    0
  • cPRex Jurassic Moderator
    I wouldn't *delete* any of them, but I would move some out of the way for testing. I'd do this to move the files out of the way, update the Yum cache, and test an update, and see if that works well: mkdir /root/old_repos mv /etc/yum.repos.d/CentOS-Base.repo /root/old_repos/CentOS-Base.repo yum clean all yum update
    That way if something does go wrong you can still move it back.
    0
  • JohnATK
    That's probably the wisest to do, I agree. So I did this, and for the following after yum update: EA4 ( EasyApache 4 ) 1.8 MB/s | 2.7 MB 00:01 cPanel Addons Production Feed 17 kB/s | 8.9 kB 00:00 cPanel Plugins project 395 kB/s | 423 kB 00:01 CentOS-8 - AppStream 77 kB/s | 282 B 00:00 Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
    It's also worth mentioning that "yum clean all" resulted in "0 files removed". What are we missing? to move the AppStream now too?
    0
  • cPRex Jurassic Moderator
    I would look inside the specific repo file to see the path it's using. But yes, that one likely needs to get moved as well.
    0
  • JohnATK
    I moved CentOS-AppStream.repo and now it's updating with no issues. Thanks a lot :)
    0
  • cPRex Jurassic Moderator
    You're very welcome! It sounds like something happened during the transition to AlmaLinux that kept some of the CentOS 8 data in there, causing confusion for the updates.
    0

Please sign in to leave a comment.