Description of problem:
newman ~ $ sudo yum upgrade --skip-broken
Loaded plugins: dellsysidplugin2, downloadonly, presto, refresh-packagekit, upgrade-helper
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
File "/usr/share/yum-cli/yummain.py", line 311, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 168, in main
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1209, in doLock
while not self._lock(lockfile, mypid, 0644):
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1262, in _lock
if not msg.errno == errno.EEXIST: raise msg
OSError: [Errno 22] Invalid argument: '/var/run/yum.pid'
yum info runs OK.
Version-Release number of selected component (if applicable):
Was downloading updates but suspended whole machine, then started it again and canceled the download, now I can't update/install/...
newman ~ $ ls -l /var/run/yum.pid
ls: cannot access /var/run/yum.pid: No such file or directory
Do you have a /var/run dir at all?
Oh, yeah, sure I do. The rest of the system was fine. I restarted the box because I've needed yum working, so, the traceback is gone now -- just in case you can see something useful in the bt...
I suspect this might be some kind of race - maybe there was another yum-using process running
I'll see if I can catch this exception more nicely.
I tried that the day I've spotted the exception several times and tomorrow morning once, then I rebooted.
any chance that /var/run is a weird format or has any odd mounting options? Maybe noexec?
If you can still make this happen I have a patch I'd love for you to test.
(In reply to comment #5)
> any chance that /var/run is a weird format or has any odd mounting options?
> Maybe noexec?
newman F-10 $ sudo ls -l /var/run/ -d
drwxr-xr-x. 39 root root 4096 2009-09-11 16:04 /var/run/
newman F-10 $ sudo file /var/run/ -d
/var is the same volume as /.
/dev/VolGroup00/LogVolRoot / ext4 defaults 1 1
(In reply to comment #6)
> If you can still make this happen I have a patch I'd love for you to test.
Sorry. Disappeared after restart.
okay. well I'm fairly sure my patch will help the problem for the future.
I'm going to close this upstream.
yum-3.2.24-2.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.24-2.fc10 has been submitted as an update for Fedora 10.
yum-3.2.24-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.