Skip to main content

YumRepo Error and Cannot find valid baseurl

Comments

20 comments

  • cPRex Jurassic Moderator
    Hey there! The first thing I would try would be this, since it mentions a Yum cache file in your output: yum clean all yum makecache yum update
    If that doesn't resolve the issue, you'll need to manually check the repo files in /etc/yum.repos.d to see which one may not be properly configured, but this indicates a problem with the operating system and Yum tools themselves and not an issue with the cPanel software.
    0
  • jndawson
    Hey there! The first thing I would try would be this, since it mentions a Yum cache file in your output: yum clean all yum makecache yum update
    If that doesn't resolve the issue, you'll need to manually check the repo files in /etc/yum.repos.d to see which one may not be properly configured, but this indicates a problem with the operating system and Yum tools themselves and not an issue with the cPanel software.

    I should have included everything we did, which indicates it's an issue with whatever is going on with yum. I think. [ root@cp1 ~># yum clean all Loaded plugins: fastestmirror, security, tsflags, universal-hooks Cleaning repos: EA4 cpanel-addons-production-feed cpanel-plugins base extras kernelcare mysql-connectors-community mysql-tools-community : mysql57-community updates vmware-tools Cleaning up Everything Cleaning up list of fastest mirrors [ Wed Dec 02 13:08:18 ] [ root@cp1 ~># yum makecache Loaded plugins: fastestmirror, security, tsflags, universal-hooks Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base [ Wed Dec 02 13:08:31 ] [ root@cp1 ~># yum update Loaded plugins: fastestmirror, security, tsflags, universal-hooks Setting up Update Process Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base
    0
  • cPRex Jurassic Moderator
    At this point, I'd poke your hosting provider as something with Yum and the OS isn't allowing the mirror list files to be built. There isn't going to be anything on the cPanel side that will help get this working, and you'll want to be careful to ensure no additional damage happens to the RPM database that can't be repaired. I'm used to seeing these issues on CentOS 5 systems as they changed how those update, but on CentOS 6 I would be cautious about running any unnecessary commands at this point.
    0
  • jndawson
    At this point, I'd poke your hosting provider as something with Yum and the OS isn't allowing the mirror list files to be built. There isn't going to be anything on the cPanel side that will help get this working, and you'll want to be careful to ensure no additional damage happens to the RPM database that can't be repaired. I'm used to seeing these issues on CentOS 5 systems as they changed how those update, but on CentOS 6 I would be cautious about running any unnecessary commands at this point.

    We are the hosting company, and I should have been clearer: All of our Centos 6 and Cloudlinux 7 boxes are all having the same problem with updates. All servers are set for auto-updates, and we've changed nothing.
    0
  • kandh
    Centos 6 expired on 30th November 2020 You have to edit the CentOS-Base.repo to point to vault every where or set up a proxy to change the search to the vault baseurl=
    0
  • PelicanSupport
    @jndawson - Hi, I was having the same issues on my local CentOS 6 box in the office. And was searching for similar issues and stumbled across your post. I signed up to post here. Not sure if it will help you though. CentOS 6 became EOL on the 30th November, 3 days ago. And all the repos have been archive to
    0
  • cPRex Jurassic Moderator
    So it looks like I have new information on this today :D We have released an autofixer for this as part of case CPANEL-35078 since the CentOS 6 repositories have been moved to the vault due to that OS becoming end-of-life. This should resolve the issues that you were seeing, @jndawson However, if you have CentOS 7 or CloudLinux 7 boxes with Yum issues, that would be a different issue. There were some repository issues with CloudLinux over the last 24 hours, but that should also be resolved at this point.
    0
  • jndawson
    So it looks like I have new information on this today :D We have released an autofixer for this as part of case CPANEL-35078 since the CentOS 6 repositories have been moved to the vault due to that OS becoming end-of-life. This should resolve the issues that you were seeing, @jndawson However, if you have CentOS 7 or CloudLinux 7 boxes with Yum issues, that would be a different issue. There were some repository issues with CloudLinux over the last 24 hours, but that should also be resolved at this point.

    Great - thanks for the update! Where's the autofixer? We had every server's update fail again last night.
    0
  • cPRex Jurassic Moderator
    If it didn't happen for you automatically, which it may not if there are update issues, you can run this: /scripts/autorepair centos6_base_repo_is_no_more
    Can you try that and let me know the results?
    0
  • jndawson
    If it didn't happen for you automatically, which it may not if there are update issues, you can run this: /scripts/autorepair centos6_base_repo_is_no_more
    Can you try that and let me know the results?

    Yep, that worked - thanks!
    0
  • cPRex Jurassic Moderator
    I'm glad that took care of things, and that we were able to get to the root cause of the issue!
    0
  • orphen
    I'm glad that took care of things, and that we were able to get to the root cause of the issue!

    Where can I find the autorepair ?
    0
  • cPRex Jurassic Moderator
    @orphen - you'll see it in the command I posted just a few replies ago.
    0
  • orphen
    @orphen - you'll see it in the command I posted just a few replies ago.

    thanks.
    0
  • garylee
    thanks.

    I could not find this script (/scripts/autorepair centos6_base_repo_is_no_more) anywhere. please post a link. thanks!
    0
  • garylee
    If it didn't happen for you automatically, which it may not if there are update issues, you can run this: /scripts/autorepair centos6_base_repo_is_no_more
    Can you try that and let me know the results?

    I could not find this script (/scripts/autorepair centos6_base_repo_is_no_more) anywhere. please post a link. thanks!
    0
  • cPRex Jurassic Moderator
    The script isn't something that will tab-complete on a Linux system, but should be there if you call it. Are you seeing a specific error message when you try and run that script?
    0
  • xJiiKo
    The script isn't something that will tab-complete on a Linux system, but should be there if you call it. Are you seeing a specific error message when you try and run that script?

    I probably got the same error, how can I get the autorepair script? I installed the minimal version of centos 6.5. [root@CrimsonVigilant-VM ~]# /scripts/autorepair centos6_base_repo_is_no_more -bash: /scripts/autorepair: No such file or directory [root@CrimsonVigilant-VM ~]#
    0
  • cPRex Jurassic Moderator
    Have you already installed cPanel? At this point, there's really no reason to be using CentOS 6 for anything, especially an older version like CentOS 6.5. I can't recommend creating a fresh server with anything but CentOS 7 or CloudLinux 7 at this time.
    0

Please sign in to leave a comment.