[opensuse] zypper ps The following running processes use deleted files:
After my last zypper update I got the message that several running processes were using deleted files. Among others skype, xawtv and others used by me as user. I have always wondered if it would not make sense to stop using all programs before updating with e.g. Yast but never saw anything in this direction. Now it seems reality that active programs are running with deleted files. Did Yast have an own solution or is it zypper specific? Could one see the same info with Yast and which Yast specific command should be used? After leaving KDE with Ctrl Alt Backspace and logging in again I ran zypper ps again and found that all programs used by user were okay again but three PID belonging to root were still there. before I start killing PID from files who are anyhow deleted I would like to know what would be the recommended way to solve the case of deleted files. zypper ps The following running processes use deleted files: PID | PPID | UID | Login | Command | Service | Files ------+------+-----+-------+---------+---------+--------------------------- 1090 1 0 root kdm /usr/bin/kdm (deleted) /usr/bin/kdm (deleted) 3240 1 0 root polkitd /usr/share/mime/mime.cache | /usr/share/mime/mime.cache 30823 1090 0 root kdm /usr/bin/kdm (deleted) /usr/bin/kdm (deleted) You may wish to restart these processes. See 'man zypper' for information about the meaning of values in the above table. -- Linux User 183145 using a Pentium III , powered by openSUSE 11.2 (i586) Kernel: 2.6.31.5-0.1-desktop KDE: 4.3.4 (KDE 4.3.4) "release 2" 17:46pm up 4 days 1:28, 3 users, load average: 1.04, 1.65, 1.85 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-12-23 at 18:14 +0700, Constant Brouerius van Nidek wrote:
After my last zypper update I got the message that several running processes were using deleted files. Among others skype, xawtv and others used by me as user. I have always wondered if it would not make sense to stop using all programs before updating with e.g. Yast but never saw anything in this direction. Now it seems reality that active programs are running with deleted files.
This has been known for ages, but it is now that zypper includes a tool to see them. Previously I used "lsof -n | grep -E 'RPMDELETE|;|path inode='" to detect them.
Did Yast have an own solution or is it zypper specific?
AFAIK, only zypper does it. However, you can run "zypper ps" after yast, it works fine.
After leaving KDE with Ctrl Alt Backspace
That's a bit harsh. Simply log out.
and logging in again I ran zypper ps again and found that all programs used by user were okay again but three PID belonging to root were still there. before I start killing PID from files who are anyhow deleted I would like to know what would be the recommended way to solve the case of deleted files.
zypper ps The following running processes use deleted files:
PID | PPID | UID | Login | Command | Service | Files ------+------+-----+-------+---------+---------+--------------------------- 1090 1 0 root kdm /usr/bin/kdm (deleted) /usr/bin/kdm (deleted)
For this one you need to log out (yes, again), then switch to a text console, log in as root, do "init 3"; rerun "zypper ps" to make sure, and then "init 5" and login.
3240 1 0 root polkitd /usr/share/mime/mime.cache
This one I'm not sure which daemon is responsible or if it can be safely restarted, but anyway, mime.cache is not that important. You can, I believe, safely ignore it till next reboot. Don't kill that PID, that could make your system not to work. In general, the procedure is to restart the affected daemons. In this case, ignore it (IMHO). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksyEIYACgkQtTMYHG2NR9UVQwCeLZlqWYIICiTa/kuvERIXpoDg K9MAni9/BRWkR86cmNZgzGHn9NNCN/tA =2wgp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 23/12/09 09:43, Carlos E. R. wrote:
. In general, the procedure is to restart the affected daemons.
Thing that in some cases, the system should be able to do automagically, however that magic is not implemented yet. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/23/2009 08:16 AM, Cristian Rodríguez pecked at the keyboard and wrote:
On 23/12/09 09:43, Carlos E. R. wrote:
. In general, the procedure is to restart the affected daemons.
Thing that in some cases, the system should be able to do automagically, however that magic is not implemented yet.
I'm not sure the list of programs listed is entirely actuate. I have logged out, gone to a console, logged in as root, init 3, killed any remaining processes running under my login, init 5, login and use zypper ps and still I see processes using deleted files. Mostly these are from OpenOffice quickstarter. Doesn't matter what program it is there should not be any, period. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 23 December 2009 15:22:14 Ken Schneider - openSUSE wrote:
On 12/23/2009 08:16 AM, Cristian Rodríguez pecked at the keyboard and wrote:
On 23/12/09 09:43, Carlos E. R. wrote:
. In general, the procedure is to restart the affected daemons.
Thing that in some cases, the system should be able to do automagically, however that magic is not implemented yet.
I'm not sure the list of programs listed is entirely actuate. I have logged out, gone to a console, logged in as root, init 3, killed any remaining processes running under my login, init 5, login and use zypper ps and still I see processes using deleted files. Mostly these are from OpenOffice quickstarter. Doesn't matter what program it is there should not be any, period.
It's not quite that easy. 'zypper ps' just gives you a list of processes running with deleted files, and in many cases, this happens quite legitimately. For example, some programs open a temporary file, and then unlink() it immediately. This way that program is the only one that can work with that temp file. It is not an unusual method of doing things. Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Ken Schneider - openSUSE <suse-list3@bout-tyme.net> [12-23-09 09:24]:
I'm not sure the list of programs listed is entirely actuate. I have logged out, gone to a console, logged in as root, init 3, killed any remaining processes running under my login, init 5, login and use zypper ps and still I see processes using deleted files. Mostly these are from OpenOffice quickstarter. Doesn't matter what program it is there should not be any, period.
I see the same, but *only* openoffice quickstarter hidden files, !/<user>/ .execoooXXXX-..., seem to persist. And they only appear on restarting X so I assume that their reporting is inaccurate as the process was not running and the files did not exist before restarting X and oooqs. -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-12-23 at 09:28 -0500, Patrick Shanahan wrote:
* Ken Schneider - openSUSE <> [12-23-09 09:24]:
I'm not sure the list of programs listed is entirely actuate. I have logged out, gone to a console, logged in as root, init 3, killed any remaining processes running under my login, init 5, login and use zypper ps and still I see processes using deleted files. Mostly these are from OpenOffice quickstarter. Doesn't matter what program it is there should not be any, period.
I see the same, but *only* openoffice quickstarter hidden files, !/<user>/ .execoooXXXX-..., seem to persist. And they only appear on restarting X so I assume that their reporting is inaccurate as the process was not running and the files did not exist before restarting X and oooqs.
Yes, that's a glitch or bug of "zypper ps". The old method didn't have this problem, but doesn't work in 11.2. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksySukACgkQtTMYHG2NR9WGeACdEWawxu98xe0zDs4GHCpS3iv5 HjoAmweJWCf7rijqzsJLi41sWnZ4Hxia =FboR -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday, 2009-12-23 at 18:14 +0700, Constant Brouerius van Nidek wrote:
After my last zypper update I got the message that several running
This has been known for ages, but it is now that zypper includes a tool to see them. Previously I used "lsof -n | grep -E 'RPMDELETE|;|path inode='" to detect them.
Did Yast have an own solution or is it zypper specific?
AFAIK, only zypper does it. However, you can run "zypper ps" after yast, it works fine.
After leaving KDE with Ctrl Alt Backspace
That's a bit harsh. Simply log out.
zypper ps The following running processes use deleted files:
PID | PPID | UID | Login | Command | Service | Files ------+------+-----+-------+---------+---------+--------------------------- 1090 1 0 root kdm /usr/bin/kdm (deleted) /usr/bin/kdm (deleted)
For this one you need to log out (yes, again), then switch to a text console, log in as root, do "init 3"; rerun "zypper ps" to make sure, and then "init 5" and login.
Don't kill that PID, that could make your system not to work. In general, the procedure is to restart the affected daemons. In this case, ignore it (IMHO).
Dear Carlos, Did a reboot and zypper ps is happy. So in my case I came clean. So, as a matter of fact, everybody who updates should check for deleted files and should in many cases reboot. The argument which is sometimes used is wrong that we linuxers, are better of that Window users, who have to reboot after every update ;(. And big uptimes are for servers who avoid updates :) -- Linux User 183145 using a Pentium III , powered by openSUSE 11.2 (i586) Kernel: 2.6.31.5-0.1-desktop KDE: 4.3.4 (KDE 4.3.4) "release 2" 21:37pm up 0:20, 2 users, load average: 0.16, 0.25, 0.45 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2009-12-23 at 21:50 +0700, Constant Brouerius van Nidek wrote:
Dear Carlos, Did a reboot and zypper ps is happy. So in my case I came clean.
Obviously. A reboot clears that situation, no need to restart individual proceses one by one.
So, as a matter of fact, everybody who updates should check for deleted files and should in many cases reboot. The argument which is sometimes used is wrong that we linuxers, are better of that Window users, who have to reboot after every update ;(. And big uptimes are for servers who avoid updates :)
That has been known for ages (I have comented on it more than once). You don't need to reboot if you take care to restart the affected proceses, one by one (ie, restart each process that uses code or data that has been updated while running). This is a manual job. Obviously, a reboot does it all in one operation. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksySkEACgkQtTMYHG2NR9UsLACfUHjFUlAQ7h5LDXtUGfHlmMKe j8sAnjxijGPud0KtAqOl0l2WIZiulOfJ =YGv2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Anders Johansson
-
Carlos E. R.
-
Constant Brouerius van Nidek
-
Cristian Rodríguez
-
Ken Schneider - openSUSE
-
Patrick Shanahan