Page 1 of 1

yum crashes and burns [Solved]

Posted: Tue Oct 31, 2006 10:09 am
by henningl
Not exactly, but I think i did a stupid thing.. "yum update yum".

After this yum gets as far as to "Reading repository metadata in from local files", then just hangs, eats 100 MB of RAM every 5 seconds, and brings the server to a crawl in 60 seconds.

My best bet is that there's something wrong with yum's local files, I've tried "yum clean all", wich works fine, but doesnt solve anything.

Any suggestions?
Yum v.2.4.3

Posted: Fri Nov 03, 2006 9:45 am
by scott
yeesh thats bad, what distro are you on?

Posted: Sat Nov 04, 2006 10:34 pm
by henningl
CentOS 4.3.. Origially it was Fedora Core 2, but a year ago I hired Steve at rack911.com to update to CentOS 4.1 and since yum has updated further.

Posted: Sun Nov 05, 2006 8:25 am
by breun
Do you have only one version of yum installed?

Code: Select all

# rpm -q yum
Did you verify your yum install?

Code: Select all

# rpm -V yum

Posted: Sun Nov 05, 2006 10:26 am
by henningl

Code: Select all

[root@xxx~]# rpm -q yum
yum-2.4.3-1.c4

Code: Select all

[root@xxx ~]# rpm -V yum
S.5....T  c /etc/yum.conf
..?.....    /usr/lib/python2.3/site-packages/repomd/__init__.py

Posted: Sun Nov 05, 2006 11:03 am
by breun
I don't know what that ? means on the spot of the MD5 checksum field, but you might want to check out that __init__.py file. On a CentOS 4.4 system I have right here that file is empty by the way.

You could also try reinstalling the yum package to see if that helps:

Code: Select all

rpm -Uvh --force http://archive.cs.uu.nl/mirror/Linux/centos/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm

Posted: Sun Nov 05, 2006 7:25 pm
by henningl
No idea what the "?" means either, but the __init__.py file is empty, noe idea if it's supposed to be.

Tried reinstalling yum like you said, but still the same problem, hangs after "Reading repository metadata in from local files".

Here's my /etc/yum.cnf in case there's some obvious error:

Code: Select all

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=fedora-release
tolerant=1
exactarch=0
exclude=kernel*
# Added this because some mirrors go down and then retying takes forever.
retries=1

# THIS CHANNEL CONTAINS MY PSA COMPATIBLE RPMS (php, mysql, qmail-scanner, etc)
[atomic]
name=Atomic Rocket Turtle - 4ES - Atomic PSA-Compatible RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/art/4ES/
enabled=1

[atomic-app-vault]
name=Atomic Rocket Turtle - 4ES- Atomic PSA App Vault RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/app-vault/
enabled=0

#[psa-7.5]
name=Atomic Rocket Turtle - 4ES- SW-Soft PSA 7.5 RPMS
baseurl=http://3es.atomicrocketturtle.com/atomic/psa-7.5/4ES/
enabled=0

[base]
name=Atomic Rocket Turtle - 4ES- Base OS RPMS mirror
baseurl=http://3es.atomicrocketturtle.com/3rd-party/base/4ES/
enabled=1

[updates]
name=Atomic Rocket Turtle - 4ES- OS Update RPMS mirror
baseurl=http://3es.atomicrocketturtle.com/3rd-party/updates/4ES/
enabled=1

# Atomic RPMS
#yum atomic http://3es.atomicrocketturtle.com/atomic/art/CHANGEME/

# SW-Soft PSA 7.5.x RPMS
#yum atomic-psa75 http://3es.atomicrocketturtle.com/atomic/psa75/4ES/


Posted: Sun Nov 05, 2006 8:13 pm
by henningl
Solved!

Thanks to this thread: http://www.centos.org/modules/newbb/vie ... mpost16946

I noticed in my yum.log that sqlite had been updatet together with yum on the last succesfull update. Installing python-sqlite did the trick.

Posted: Mon Nov 06, 2006 4:26 am
by breun
Nice. Strange it didn't get installed, because according to 'rpm -q --requires yum' python-sqlite is a dependency.

By the way, I was wondering about the "distroverpkg=fedora-release" line in your yum.conf. You said it's a CentOS box, right? :)

Posted: Mon Nov 06, 2006 9:12 pm
by henningl
Yeah.. I've wondered about that too, but since it doesnt seem to cause any troubles I haven't touched it.

As explained in the first post, to box was originally a Fedora Core 2 box, and then was migrated to CentOS 4. There are probably some leftovers lurking arround.

Posted: Tue Nov 07, 2006 6:24 am
by breun
I assume there's a centos-release package on your system. I would change it to distroverpkg=centos-release (and remove any fedora-release packages left).

Posted: Tue Nov 07, 2006 12:28 pm
by henningl
Ok, did that. Didn't affect anything, but at least now it's correct :)
Thanks for all your help :)