LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum IOError (http://www.linuxquestions.org/questions/linux-newbie-8/yum-ioerror-661716/)

Styles 08-10-2008 01:05 AM

Yum IOError
 
Hey, I have a VPS server I use for a webserver and I do yum and it saids

root@fast [~]# yum install nmap
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found


I'm getting this I tried updating the /etc/yum.repos.d/CentOS-Base.repo file but no luck.

Any ideas? I'm pretty bad with linux. I have some knowledge you know basic things but nothing advanced! I'm running the latest cPanel and wget works fine.

Thank You

billymayday 08-10-2008 01:26 AM

What distro/version are you running?

Where did this repo file come from?

Well looking at http://mirror.dulug.duke.edu/pub/yum...edhat/updates/ I'd suggest that this is a seriously old repository (RH7.1 through 9)

What repos do you have setup in /etc/yum.repos.d?

Styles 08-10-2008 02:00 AM

Theres two files.
CentOS-Base.repo

Code:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releaseverz - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

CentOS-Media.repo



I manually updated the CentOS-Base.repo but it didn't even seem like it took affect.

lazlow 08-10-2008 02:11 AM

Normally either the mirrorlist or the baseurl is comment out (starts with #). Having both active may be causing problems.

Styles 08-10-2008 02:12 AM

Quote:

Originally Posted by lazlow (Post 3242367)
Normally either the mirrorlist or the baseurl is comment out (starts with #). Having both active may be causing problems.

I Tried it without it commented first! It didn't help its still looking at the old mirrors!

lazlow 08-10-2008 02:13 AM

I THINK you HAVE to have one or the other commented out(both cannot be active in order for it to work). Could you also post the results of " yum repolist '.

Styles 08-10-2008 02:17 AM

root@fast [~]# yum list
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

Code:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releaseverz - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

That is what I have ATM and its still the same error

lazlow 08-10-2008 02:19 AM

NOT "yum list", 'yum repolist"

billymayday 08-10-2008 02:20 AM

I'd try commenting out the mirrorlist and uncommenting the baseurl, since I'd guess the mirror list is at fault

Styles 08-10-2008 02:25 AM

Quote:

Originally Posted by billymayday (Post 3242375)
I'd try commenting out the mirrorlist and uncommenting the baseurl, since I'd guess the mirror list is at fault


root@fast [~]# yum install
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
retrygrab() failed for:
http://mirror.dulug.duke.edu/pub/yum...rs/header.info
Executing failover method
failover: out of servers to try
Error getting file http://mirror.dulug.duke.edu/pub/yum...rs/header.info
[Errno 4] IOError: HTTP Error 404: Not Found


Still

I think its in the cache.. how can I upate it? rifk.

lazlow 08-10-2008 02:26 AM

yum clean all

Styles 08-10-2008 02:28 AM

Quote:

Originally Posted by lazlow (Post 3242381)
yum clean all


root@fast [~]# yum clean all
Gathering header information file(s) from server(s)
Server: Red Hat Linux 5 - i386 - Base
Error - /var/cache/yum/base/header.info cannot be found
Please run yum in non-caching mode to correct this header.

lazlow 08-10-2008 02:35 AM

I still like to see yum repolist.

Do you have any yum aliases set?

Are you short on disk space on /var ?

Styles 08-10-2008 02:44 AM

Quote:

Originally Posted by lazlow (Post 3242387)
I still like to see yum repolist.

Do you have any yum aliases set?

Are you short on disk space on /var ?

I don't think so its a 100gb drive. idk if yum alias is set haha

lazlow 08-10-2008 02:52 AM

Ok, IF some piece of hardware has a slight malfunction it can send an error to the log every second. It does not take very long to fill up a lot of space when this happens (please check /var). IF var is out of space and clean all removes header.info the space may be refilled before the new header.info can be written.

Assuming the machine is yours and you have not set an alias(from your reply), it is probably not the issue.

I would still like to see a yum repolist.


All times are GMT -5. The time now is 02:10 PM.