yum crashes and burns [Solved]

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

yum crashes and burns [Solved]

Unread post 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
Last edited by henningl on Sun Nov 05, 2006 8:14 pm, edited 1 time in total.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

yeesh thats bad, what distro are you on?
henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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
Lemonbit Internet Dedicated Server Management
henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

Unread post 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
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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
Lemonbit Internet Dedicated Server Management
henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

Unread post 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/

henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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? :)
Lemonbit Internet Dedicated Server Management
henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

Unread post 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.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post 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).
Lemonbit Internet Dedicated Server Management
henningl
Forum User
Forum User
Posts: 37
Joined: Sat Mar 18, 2006 2:04 pm

Unread post by henningl »

Ok, did that. Didn't affect anything, but at least now it's correct :)
Thanks for all your help :)
Post Reply