MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Joe on 2014-04-18, 21:52:58

Title: Error: Cannot find a valid baseurl for repo: base
Post by: Joe on 2014-04-18, 21:52:58
When running 'yum update' I get this error. I tried 'yum clean all' and 'yum clean metadata'.

Error: Cannot find a valid baseurl for repo: base
Title: Re: Error: Cannot find a valid baseurl for repo: base
Post by: MRatWork on 2014-04-18, 22:20:44
It's about Centos problem. All Kloxo-MR identify with prefix 'mratwork'.
Title: Re: Error: Cannot find a valid baseurl for repo: base
Post by: Joe on 2014-04-18, 23:37:33
Did that error usually just mean a Centos mirror is down?
Title: Re: Error: Cannot find a valid baseurl for repo: base
Post by: Joe on 2014-04-19, 01:58:17
Definitely not a Kloxo MR problem. It happened on another server without Kloxo installed after running yum clean all.  Oh well..will wait and see if it's a Centos mirrors problem.
Title: Re: Error: Cannot find a valid baseurl for repo: base
Post by: Joe on 2014-04-19, 02:44:15
Resolved by editing /etc/yum.repos.d/CentOS-Base.repo

Uncommented all lines with baseurl.
Title: Re: Error: Cannot find a valid baseurl for repo: base
Post by: postcd on 2021-02-08, 15:24:31
I think this issue i fixed by renaming repo file:
cd /etc/yum.repos.d;mv CentOS-Base.repo CentOS-Base.repo_
vi CentOS-Base.repo
"a" or "i" key
paste:
Quote
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

#released updates
[updates]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/6.10/centosplus/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
gpgcheck=1

(replace 6.10 by your version returned by "cat /etc/red*" command)
then "yum clean all;yum update"

then i have seen errors:
Quote
# yum update
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrors.iuscommunity.org/mirrorlist?repo=ius-centos6-archive&arch=i386&protocol=http error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.iuscommunity.org'"
Could not retrieve mirrorlist http://mirrors.iuscommunity.org/mirrorlist/?repo=ius-centos6&arch=i386&protocol=http error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.iuscommunity.org'"
 * mratwork-epel: ftp-stud.hs-esslingen.de
 * mratwork-release-neutral-noarch: rpms.potissima.com
 * mratwork-release-version-arch: rpms.potissima.com
 * mratwork-webtatic: uk.repo.webtatic.com
http://repo.varnish-cache.org/redhat/varnish-3.0/el6/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'repo.varnish-cache.org'"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mratwork-varnish-3.0. Please verify its path and try again

What is the replacement mirrors repo for ius and varnish-cache (https://github.com/iusrepo/infrastructure/issues/21)?

In the meantime i have opened /etc/yum.repos.d/mratwork.repo and prefixed the "mirrorlist=" lines with IUS repo by "#" character disabling these And set the varnish repo from enabled 1 to 0 and "yum update" now works, but i would rather replace old mirrors by new one not to break future updates.

UPDATE: maybe i should use "archive" repo URLs from files at https://github.com/iusrepo/ius-release ?