yum crashes and burns [Solved]
yum crashes and burns [Solved]
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
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
Last edited by henningl on Sun Nov 05, 2006 8:14 pm, edited 1 time in total.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Do you have only one version of yum installed?
Did you verify your yum install?
Code: Select all
# rpm -q yum
Code: Select all
# rpm -V yum
Lemonbit Internet Dedicated Server Management
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
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
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:
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
Lemonbit Internet Dedicated Server Management
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:
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/
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.
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.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
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?
By the way, I was wondering about the "distroverpkg=fedora-release" line in your yum.conf. You said it's a CentOS box, right?

Lemonbit Internet Dedicated Server Management
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
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).
Lemonbit Internet Dedicated Server Management