YumRepo Error and Cannot find valid baseurl
After updates ran last night, we got this error message:
and
Ran /scripts/rpmup:
Ran yum update:
Ran yum repolist:
Any idea what's going on and how to fix it?
Maintenance ended; however, it did not exit cleanly (256). The following events were logged: "scripts/rpmup". Review the update logs to determine why the update failed.and
[2020-12-02 02:44:21 -0800] E [/usr/local/cpanel/scripts/rpmup] The "/usr/local/cpanel/scripts/rpmup" command (process 27258) reported error number 1 when it ended. Ran /scripts/rpmup:
[ root@cp1 ~># /scripts/rpmup
checkyum version 22.3 (excludes: bind-chroot ruby)
info [rpmup] Starting yum execution "--assumeyes --config /etc/yum.conf update"
Loaded plugins: fastestmirror, security, tsflags, universal-hooks
Setting up Update Process
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: base
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
info [rpmup] Completed yum execution "--assumeyes --config /etc/yum.conf update"
(XID mf5ups) "/usr/bin/yum"1"
Ran yum update:
[ 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
Ran yum repolist:
[ root@cp1 ~># yum repolist
Loaded plugins: fastestmirror, security, tsflags, universal-hooks
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
EA4 | 2.9 kB 00:00 ...
cpanel-addons-production-feed | 2.9 kB 00:00 ...
cpanel-plugins | 2.9 kB 00:00 ...
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/extras/mirrorlist.txt
kernelcare | 2.6 kB 00:00
mysql-connectors-community | 2.6 kB 00:00
mysql-tools-community | 2.6 kB 00:00
mysql57-community | 2.6 kB 00:00
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/updates/mirrorlist.txt
vmware-tools | 951 B 00:00
repo id repo name status
EA4 EA4 ( EasyApache 4 ) 4,515
cpanel-addons-production-feed cPanel Addons Production Feed 47
cpanel-plugins cPanel Plugins project 40
base CentOS-6 - Base 6,713
extras CentOS-6 - Extras 47
kernelcare kernelcare 104
mysql-connectors-community MySQL Connectors Community 145
mysql-tools-community MySQL Tools Community 96
mysql57-community MySQL 5.7 Community Server 432
updates CentOS-6 - Updates 1,193
vmware-tools VMware Tools for Red Hat Enterprise Linux 6 . x86_64 38
repolist: 13,370
Any idea what's going on and how to fix it?
-
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 -
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: base0 -
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 -
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 -
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 -
@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 -
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 -
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 -
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 -
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 -
I'm glad that took care of things, and that we were able to get to the root cause of the issue! 0 -
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 -
@orphen - you'll see it in the command I posted just a few replies ago. 0 -
@orphen - you'll see it in the command I posted just a few replies ago.
thanks.0 -
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=: [Errno 14] PYCURL ERROR 7 - "Failed to connect to 2600:1f16:c1:5e03:a992:8ee1:99d2:6f8: Network is unreachable" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again could you help with this?
0 -
thanks.
I could not find this script (/scripts/autorepair centos6_base_repo_is_no_more) anywhere. please post a link. thanks!0 -
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 -
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 -
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 -
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.
Comments
20 comments