Re: I think I broke yum

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lonni J Friedman wrote:
> On 1/15/07, A Booth <bootha@xxxxxxxxxxx> wrote:
>> Michael Yep <myep <at> remotelink.com> writes:
>>
>> >
>> > After starting yum it was doing a 300+ pkg update, and it never
>> > finished.  Now I cannot run yum, and rpm seems to be broke too.
>> > In addition I cannot issue a Ctrl-C command, I must hit Ctrl-Z and do a
>> > kill -9 on the yum process.  How do I find out what yum is doing and
>> how
>> > to get it back to normal?
>> >
>> > This is what yum says now:
>> >
>> > Loading "installonlyn" plugin
>> >
>> > [1]+  Stopped                 ./u
>> > [root <at> localhost ]# ps aux |grep yum
>> >
>>
>> First, make sure yum isn't running, then delete file as follows: -
>> rm -f /var/run/yum.pid
>>
>> If the file is not there, try: -
>> locate yum.pid
>>
>> If it can't find it, it's probably gone, otherwise delete it using the
>> `rm`
>> command above, but with the correct fiole path as determined by the
>> locate
>> statement.
>>
>> Then clear out the yum caches with: -
>> yum clean all
>>
>> That should do the trick. If "yum clean all" comes up with a message:
>> "Existing
>> lock /foo/bar/yum.pid" then you've found the yum.pid you need to
>> delete before
>> trying "yum clean all" again.
> 
> He also stated that rpm was broken.  I'm not sure how he came to that
> conclusion, but if its true, then all of the above isn't going to help
> at all.
> 
> 
Ok here is some more info

[root@localhost ]# ps aux |grep rpm
root     31930  0.0  0.5  11424  2592 ?        S    Jan14   0:00
/usr/lib/rpm/rpmq -q --all --queryformat %-19{NAME} (rpm) - %{SUMMARY}\r
root      3548  0.0  0.1   2380   856 ?        S    04:04   0:00 /bin/sh
/etc/cron.daily/rpm
root      3549  0.0  0.1   2132   584 ?        S    04:04   0:00 awk -v
progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????
  progname="";????       }????       { print; }
root      3550  0.0  0.5  11424  2504 ?        S    04:04   0:00
/usr/lib/rpm/rpmq -q --all --qf %{name}-%{version}-%{release}.%{arch}.rpm\n
root      4749  0.0  0.1   3900   676 pts/2    R+   10:31   0:00 grep rpm

[root@localhost ]# ps aux|grep yum
root      4536  0.0  0.0      0     0 pts/2    Z    09:15   0:00 [yum]
<defunct>
root      4753  0.0  0.1   3900   676 pts/2    R+   10:32   0:00 grep yum

[root@localhost ]# stat /var/run/yum.pid
  File: `/var/run/yum.pid'
  Size: 5               Blocks: 16         IO Block: 4096   regular file
Device: 900h/2304d      Inode: 263804      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2007-01-11 09:59:57.000000000 -0600
Modify: 2007-01-11 09:59:57.000000000 -0600
Change: 2007-01-11 09:59:57.000000000 -0600


So rpm is running in some form,  a yum.pid exists, and there is a yum
zombie process.

Should I delete the pid file?  Will that make the zombie process go away?

-- 
Michael Yep
Development / Technical Operations
RemoteLink, Inc.
800-362-9446 x164
GPG Key 0x126439D9


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux