yum can't update base/primary_db [Error 4] and [Error 256]

Issues related to software problems.
Post Reply
gpaul
Posts: 3
Joined: 2010/06/28 15:25:08

yum can't update base/primary_db [Error 4] and [Error 256]

Post by gpaul » 2010/06/28 15:52:32

Hello everyone,

I have been having problems trying to get yum to operate correctly. This is on a new server that I am trying to build. I have tried install CentOS 5.5 from downloaded ios images and I have even tried installing 5.0 and then using yum to upgrade and it still gives me the same error..

At this point this is where I stand. I did a fresh install of CentOS 5.0 and then ran yum to upgrade to 5.5. yum was able to run and did a full upgrade of the server.

[root@web01 ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)

I have disabled SELinux just in case this was causing the problem.

[root@web01 ~]# sestatus
SELinux status: disabled

I have version 3.2.22 of yum installed on the server.

[root@web01 ~]# yum --version
3.2.22
Installed: rpm-4.4.2.3-18.el5.i386 at 2010-06-28 13:38
Built : [] at 2009-09-04 00:26
Committed: Panu Matilainen at 2009-07-24 22:00

Installed: yum-3.2.22-26.el5.centos.noarch at 2010-06-28 13:38
Built : [] at 2010-04-04 19:48
Committed: Karanbir Singh at 2010-04-04 22:00

Installed: yum-metadata-parser-1.1.2-3.el5.centos.i386 at 2010-06-28 13:36
Built : [] at 2009-08-27 16:20
Committed: James Antill at 2009-04-06 22:00

I have tried cleaning yum sever times and I am still getting the same error every time that I try to use yum. I have search the forums but I am not able to find any solutions.


Bellow is the output I receive when ever I try to run yum:

Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
* addons: mirrors.bluehost.com
* base: styx.biochem.wfubmc.edu
* extras: mirror.spro.net
* updates: mirror.cogentco.com
addons | 951 B 00:00
addons/primary | 202 B 00:00
base | 2.1 kB 00:00
base/primary_db | 816 kB 00:33
http://styx.biochem.wfubmc.edu/mirror/CentOS/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://centos.mirror.nac.net/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://centos.corenetworks.net/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirror.5ninesolutions.com/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirror.icpl.org/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://ftp.osuosl.org/pub/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirror.ubiquityservers.com/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirrors.finalasp.com/CentOS/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirrors.kernel.org/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
ftp://mirror.nyi.net/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:34
http://styx.biochem.wfubmc.edu/mirror/CentOS/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://centos.mirror.nac.net/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://centos.corenetworks.net/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirror.5ninesolutions.com/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirror.icpl.org/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://ftp.osuosl.org/pub/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirror.ubiquityservers.com/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirrors.finalasp.com/CentOS/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
http://mirrors.kernel.org/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
base/primary_db | 816 kB 00:32
ftp://mirror.nyi.net/centos/5.5/os/i386/repodata/primary.sqlite.bz2: [Errno 4] Socket Error: timed out
Trying other mirror.
Error: failure: repodata/primary.sqlite.bz2 from base: [Errno 256] No more mirrors to try.


Any and all help will be appriciated.

Thanks,
paul

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum can't update base/primary_db [Error 4] and [Error 256]

Post by TrevorH » 2010/06/29 11:21:43

Looks like it either cannot resolve any hostnames (check /etc/resolv.conf) or your network is not working.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

yum can't update base/primary_db [Error 4] and [Error 256]

Post by pschaff » 2010/06/29 14:48:34

Is there a proxy server in your network?
http://wiki.centos.org/PackageManagement/Yum/FastestMirror
http://wiki.centos.org/TipsAndTricks/YumAndRPM

gpaul
Posts: 3
Joined: 2010/06/28 15:25:08

Re: yum can't update base/primary_db [Error 4] and [Error 256]

Post by gpaul » 2010/06/30 14:07:45

Thanks,

I do have the correct DNS entries in /etc/resolv.conf. I am looking at my router configuration to see if I am blocking it. The thinkg that I think is strange is that 816KB of the file gets downloaded before the time out.

gpaul
Posts: 3
Joined: 2010/06/28 15:25:08

Re: yum can't update base/primary_db [Error 4] and [Error 256]

Post by gpaul » 2010/06/30 14:11:28

Thanks,

Yes, I proxy server running. It is running in passive mode and does not require any configuration on the PC or server. I will get a look at the links that you have provided.

I will make sure that the firewall and proxy server are disabled on this subnet and re test.

Paul

Post Reply