Red Hat Bugzilla – Bug 183882
pup fails to remove lock file after invocation, LockError lockfile doLock
Last modified: 2007-11-30 17:11:26 EST
Description of problem:
Since 2006-03-02, pup works OK and succeeds on first invocation, but if started
again within the same session it has exception.
Version-Release number of selected component (if applicable):
Every time on second run.
Steps to Reproduce:
Component: Software Updater
Summary: TB68c720bd __init__.py:510:doLock:LockError: None
Traceback (most recent call last):
File "/usr/sbin/pup", line 370, in ?
File "/usr/sbin/pup", line 366, in main
File "/usr/sbin/pup", line 342, in run
File "/usr/sbin/pup", line 161, in doRefresh
File "/usr/lib/python2.4/site-packages/pirut/__init__.py", line 137, in reposSetup
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 510, in doLock
raise Errors.LockError(0, msg)
Local variables in innermost frame:
self: <__main__.PackageUpdater object at 0xb7a451cc>
fd: <open file '/var/run/yum.pid', mode 'r' at 0xb7a65a88>
msg: Existing lock /var/run/yum.pid: another copy is running. Aborting.
Pup runs a second time normally within the one session.
1. The lock file mentioned does exist.
# ls -l /var/run/yum.pid
-rw-r--r-- 1 root root 4 Mar 3 21:23 /var/run/yum.pid
2. erasing above file allows it to start normally again
# rm /var/run/yum.pid
3. Reboot seems to clear the yum.pid and it works OK.
4. Once pup has run once:
a. yum exits with # yum update
Loading "installonlyn" plugin
Existing lock /var/run/yum.pid: another copy is running. Aborting.
b. pup and pirut have the-
An unhandled exception occurred, with the trace given above.
5. The fault is failing to clear the lock file when exiting.
6. is this caused by solution to ?
* Fri Mar 03 2006 Jeremy Katz <firstname.lastname@example.org> - 1.0.0-1
- Catch locking error (#183685)
The above solution has placed a nice dialog on the exception (Another
application is running that is accessing software information), but doesn't stop
the root cause of pup failing to clear the lock file.
After reboots, and trying a few things, I found that if there are no updates (or
you dont want to update) if I use the top-right X to exit pup rather than via
the quit button when it is showing which packages are available, then it closes
the GUI window, but leaves pup running: $ ps aux|grep pup
davidt 2573 0.1 0.7 14076 3924 ? S 23:33 0:00 /usr/bin/pup
root 2574 0.0 0.2 5644 1352 ? S 23:33 0:00
/usr/sbin/userhelper -w pup
root 2577 11.6 12.8 121076 66496 ? S 23:33 0:02 /usr/bin/python
davidt 2580 0.0 0.1 3880 664 pts/0 R+ 23:33 0:00 grep pup
The "still running" exception is then triggered.
$ su -
getConfigOption() will go away in a future version of Yum.
Please access option values as attributes or using getattr().
-----window disappeared but nothing else happened!, no prompt returned.
Okay, not sure why connecting the delete_event via glade wasn't working. For
now, done by hand and will be in 1.0.1
Moving component to pirut. Sorry for the spam.