Problem with processes that just won't die...

Hi,
first off, hullo everybody
I'm new to Arch Linux, but I do already like it very much. I have just installed it on my workstation and it works fine, except for the following problem.
My home directory here is mounted via NFS from a central server. My username is malte (we're using YP/NIS for central authentication) and my home dir is /WW/home/malte/
The network file system that is mounted at boot time is /WW
malte@bombadil $ grep nfs /etc/fstab
quarterback:/WW    /WW           nfs       defaults               0      0
Everything is setup at boot time automatically and all works fine so far. However, when I reboot my machine using sudo reboot, or even when cleanly logging out and using the Shutdown/Reboot button in GDM, what happens is that Arch tries to unmount the net file systems (that is, /WW in this case), but fails and outputs
/WW: device is busy
(or something to that effect); so it gives up, and goes on shutting down all the other services, like the network etc. At the very end, when "Unmounting all filesystems", it then again tries to unmount the net file system, which of course won't work since the network is already shut down. It tries for about a minute or so before timing out, giving up and just rebooting
This of course is quite annoying, as I have to wait more than a minute each time I want to reboot (or I would have to press the reset button on the computer, which I really don't want to).
So why doesn't Arch succeed in unmounting the net file system when it should? Using lsof, I have traced down the problem further:
When I do not login as user in GDM after booting up the system, but immediately reboot again after GDM has just been started, there is no problem: /WW is unmounted properly, and my system reboots flawlessly.
The problem is when I log in to my WM as user. Even if I log out cleanly to GDM again, there are two processes belonging to user malte that go on living and that access to /WW/home/malte, and I suppose that is why unmounting fails at reboot time, saying the device is busy.
I have found out that (and which these processes are) by closely observing the output of watch 'lsof | grep WW' run as root on vc/1, just after I log out from my WM as user:
root@bombadil $ lsof | grep WW # executed closely after logging out as user malte
menu-cach 3410  malte  cwd       DIR               0,16     1536    8785908 /WW/home/malte (quarterback:/WW)
gam_serve 5391  malte  cwd       DIR               0,16     1536    8785908 /WW/home/malte (quarterback:/WW)
More information on those two processes:
root@bombadil $ ps aux | grep -e gam_serv -e menu-cach
malte     3410  0.0  0.1  41540  2680 ?        S    14:46   0:00 /usr/bin/menu-cached
malte     5391  0.0  0.0  17444  1476 ?        S    15:38   0:00 /usr/lib/gamin/gam_server
root      5473  0.0  0.0   9324   740 tty1     R+   15:38   0:00 grep -e gam-serv -e menu-cach
So! In short, even after logging out, menu-cached and gam_server keep on living, and access to /WW/home/malte, and that is why when I try to reboot, Arch does not succeed in unmounting /WW, and that is why it tries to unmount it again at a later time, after networking has already been shut down, and that is why it waits for a time-out for about a minute at the end of the reboot procedure.
In fact, gam_server only keeps on living for about 20 seconds after I logged out, then it is terminated. As for menu-cached, it goes on and on living, at least for 5 minutes, which is when I got tired of watching the output of watch 'lsof | grep WW' ;-)
Any ideas how this could be remedied? Ideally, I'd like to be able to reboot using sudo reboot rather than by logging out and using GDM to reboot, but I guess that then there will be even more processes alive and accessing the NFS file system when already Arch tries to unmount it.
Oh yes, maybe this is of some interest also:
malte@bombadil $ grep DAEMONS /etc/rc.conf
# DAEMONS
DAEMONS=(syslog-ng network portmap nfslock @netfs ypbind sshd crond)
Please help
Cheers,
Malte
Last edited by einheitlix (2009-03-31 14:20:35)

I have the same problem.  menu-caches doesn't die after user logs out of the session (don't have the gamin issue though).  I too am running LXDE.  When a different user logs in via gdm you'll still see the menu-cached processes for other users and I end up having to kill them as root.  I do believe this is a bug with either menu-caches and/or LXDE (or perhaps, more specifically, its session manager).  I've looked high and low through the system to figure out where menu-cached is invoked from and for any sort of associated configuration file to no avail.  I'm left with the conclusion that the invocation of menu-cached is hard-coded into start-lxde. 
As a ugly-hack workaround you might try making a shell script like the following in /etc/gdm/PostSession/ directory:
#!/bin/sh
killall menu-cached
This of course is only applicable for those running gdm as their display manager.  Also don't forget to make it executable.
I would imagine that menu-cached not closing on user logout is very much a bug.  Or perhaps, more precisely, something that hadn't gotten put in yet.  Afterall, LXDE is still a relatively new desktop.  A good one at that so far, if you don't mind some of the missing polish that its dev haven't had a chance to add yet.
If someone else knows a more elegant solution than that please let me, and the other LXDE users, know.
Last edited by PingFloyd (2009-04-04 02:08:29)

Similar Messages

  • Is there a way to play video clips that use adobe flash and if not when are you going to resolve your problem with them ? I won't buy another apple product until you do and I Know I,m not the online.

    Is there a way to play video clips that use adobe flash and if not when are you going to resolve your problem with them ? I won't buy another apple product until you do and I Know I,m not the only one.

    Use the search feature and type in Flash and there are like thousands of posts on this.
    You seem to think you are addressing Apple with your post.  This is a user forum and we are all users just like you.

  • Error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT

    error -43  when try playback on win7 64bits over the network QT that recide MacPro  osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT  nfs sharing

    Never mind, I already found the solution myself.
    What I did wrong was:
    - not copying the master image to the nbi folder
    - selecting the netinstall-restore.dmg image as source to copy to my HD.
    The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
    With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
    In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
    Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
    http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
    This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder.

  • I disconnected my iPad unconsciously while it was updating ios 7.0.4 and it just stuck on that screen showing apple logo and a loading bar that just won't move on what to do now ????

    I disconnected my iPad unconsciously while it was updating ios 7.0.4 and it just stuck on that screen showing apple logo and a loading bar that just won't move on what to do now ????

    It's not uncommon for it to not work the first time and sometimes, you have to try it a few times. Turn off your antivirus software and your firewall while you are trying to restore the iPad. Enable them again after you restore.
    If that still won't work, post back with detailed information as to what exactly does happen as you go through the process.

  • I have a problem with Imovie. Just brought an macbook 15 retina , iLife install and Imovie was working. I than did a data migration from my old macbook pro and now it crashes on start up. I tried to re-install from app store but no option to re-install

    I have a problem with Imovie. Just brought an macbook 15 retina , iLife install and Imovie was working. I than did a data migration from my old macbook pro and now it crashes on start up. I tried to re-install from app store but no option to re-install, just installed and it greyed out.

    Well, my two-month-old MBP has no qualms about booting from a no-name external USB HD I put together...
    Given that is is a common point of failure, I would imagine a large Apple Store should keep a stock of HD's on hand.
    Now since you're a bit desperate and the genie pops up til Saturday and you seem to be the enterprising kind, let's try an experiment: if you have room enough in the external HD and assuming it isn't a Time Machine volume, why don't you plug it in, stick the Install CD and see if the installer lets you select the external drive as the install target. If you can install Leopard on it, on top of the backup without reformatting, and the Mac can boot from the drive afterwards, at least you would have some functionality restored and would be able to pull your stuff from the internal HD. Apple says booting from USB drives is not supported but that does not equate to not possible; some brands do work. Risks? Always. You can always lose your backup. Like I said, a challenge for an enterprising gal....
    Next time around, consider having a bootable external clone at hand for rainy days. I keep three myself...
    P.S. Since I'll be in the Dallas-FW area in late June, I can volunteer with the confetti....

  • I have problem with account that i can't make update or buy from app store There is massage appear in my payment page that i must contact with i tunes support to complete this transaction Please help me to fixe this problem as soon possible Hany hassan 00

    I have problem with account that i can't make update or buy from app store
    There is massage appear in my payment page that i must contact with i tunes support to complete this transaction
    Please help me to fixe this problem as soon possible
    Hany hassan
    0096597617317
    0096596677186
    Thank you

    You need to Contact iTunes Support...
    Apple  Support  iTunes Store  Contact Us

  • Problem with JMenus that Persist - Is this a Java bug?

    I am having a problem with JMenus that persist. By this I mean
    that my drop down menus persist on the screen even after they have
    been selected.
    I've checked the Java bug database, and the following seems
    to come closest to my problem:
    Bug ID: 4235188
    JPopupMenus and JMenus persist when their JFrame becomes visible
    State: Closed, not a bug
    http://developer.java.sun.com/developer/bugParade/bugs/4235188.html
    This page says that the matter is closed and is not a bug. The
    resolution of this matter printed at the bottom of the page
    is completely abstruse to me and I would appreciate any
    comments to understand what they are talking about.
    The code at the end of my message illustrates my problem.
    1. Why should paintComponent() make any difference to
    Menu behavior?
    2. Is this a bug?
    3. What's the workaround if I have to paint() or repaint()?
    Thanks
    Tony Lin
    // Example of Menu Persistence Problem
    // Try running this with line 41, paintComponent(), and without line 41
    // Menus behave normally if line 41 is commented out
    // If line 41 exists, menus will persist after they have been selected
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class P2 extends JPanel {
    JMenuItem[] mi;
    public P2() {
    JFrame thisFrame = new JFrame();
    thisFrame.getContentPane().add(this);
    JMenu menu = new JMenu("My Menu");
    JMenuBar mb = new JMenuBar();
    mi = new JMenuItem[4];
    for (int i=0; i<mi.length; i++) {
    mi[i] = new JMenuItem("Menu Item " + String.valueOf(i));
    menu.add(mi);
    mb.add(menu);
    thisFrame.setJMenuBar(mb);
    thisFrame.setSize(400,200);
    thisFrame.setLocation(150,200);
    thisFrame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent we) {
    System.exit(0);
    thisFrame.setVisible(true);
    public void paintComponent(Graphics g) {} //Affects menu behavior!
    public static void main(String[] args) {
    new P2();

    Well, my understanding of the way painting works is that a component doesn't UNPAINT itself. Instead a message is sent to the component under the coordinates of the menu to REPAINT itself.
    In your demo program the JFrame is the component under the JMenu. The paintComponent() method of JFrame is empty, so nothing gets repainted.
    I added super.paintComponent(g); to the method and everything works fine.

  • I can not update OS X mavericks, my macbook OS X lion 10.7.5, when i install that show me This copy of the Install OS X Mavericks application, my brother can upgrade with internet that just me can do that

    i can not update OS X mavericks, my macbook OS X lion 10.7.5, when i install that show me This copy of the Install OS X Mavericks application, my brother can upgrade with internet that just me can do that

    Is your MacBook compatible with Mavericks? Open  > About this Mac > More Info, and you will see the MacBook model you have got. Then, check in this site if it's supported > http://www.apple.com/osx/specs
    If your Mac is not compatible, OS X 10.7.5 is the most recent version for your Mac. Also, copy the whole message you see when you open the Mavericks installer

  • I am having problems with the InDesign it won't download it keeps saying extract when its about 30% then it says failed. How can i get it to download all the way?

    I am having problems with the InDesign it won't download it keeps saying extract when its about 30% then it says failed. How can i get it to download all the way?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • The little grey camera icon ( IMovie) is not working or allowing me to open my photos. I have no problem inserting video. Just won't let me open my photos. Any ideas?

    The little grey camera icon ( IMovie) is not working or allowing me to open my photos. I have no problem inserting video. Just won't let me open my photos. Any ideas?

    deanfromdouglasville,
    It may help to rebuild your iPhoto Library's database, as detailed in the article linked below.
    iPhoto 6 and later: Rebuilding the iPhoto library
    http://support.apple.com/en-us/HT201769
    Regards,
    Allen

  • Problem with Spaces that started with Snow Leopard

    I've noticed two problems with Spaces that have arrived since switching to Snow Leopard... First, if I am in say Space 1 where I use Safari and I then want to move over to an open application, say like Excel, that I have running in Space 4, there are a number of ways to get there but one way I used to use all the time was to move down to the Dock and simply single click on the open Excel application and that would immediately switch me over to Space 4 and whatever Excel documents were already open there... Now, since switching to SL, a single click of whatever application in the Dock makes that application active in the Finder (you see its name appear in the upper left of the menu bar) but otherwise nothing happens... You then have to click a second time and then you switch over to Space 4... It's not really a double click because that implies to clicks closely spaced in time... For this, you can click once, leave the room, come back, click a second time and you will now switch to the alternate space where the open application is running... That is clearly different than it was under Leopard and I would suggest that it is a bug because there is no value in the outcome of that first click... It highlights the switched application but doesn't actually switch to it until you click a second time...
    Second, and this one is worse, if you say launch Excel (which you want to open in Space 4) while you are in Space 1, Excel will open and switch over to Space 4... So far so good... But now, with Excel open over in Space 4, if you are now back and working in Space 1 and while there you use the Finder to go to some other, currently unopened, Excel file and request that it open, it should switch over to Space 4 and open that file but instead it opens it wherever you are, in the case mentioned here, in Space 1... So now you have Excel files opened both in Spaces 1 and 4... Clearly a bug... Spaces had some similar issues in a few early versions of Leopard but they eventually got it working... Now it appears Spaces has regressed somewhat in SL... I love spaces and use it all the time... Hope it gets fixed soon... thanks... bob...

    Hi... I have since learned that the first paragraph of my original post where I say,
    "I've noticed two problems with Spaces that have arrived since switching to Snow Leopard... First, if I am in say Space 1 where I use Safari and I then want to move over to an open application, say like Excel, that I have running in Space 4, there are a number of ways to get there but one way I used to use all the time was to move down to the Dock and simply single click on the open Excel application and that would immediately switch me over to Space 4 and whatever Excel documents were already open there... Now, since switching to SL, a single click of whatever application in the Dock makes that application active in the Finder (you see its name appear in the upper left of the menu bar) but otherwise nothing happens... You then have to click a second time and then you switch over to Space 4... It's not really a double click because that implies to clicks closely spaced in time... For this, you can click once, leave the room, come back, click a second time and you will now switch to the alternate space where the open application is running... That is clearly different than it was under Leopard and I would suggest that it is a bug because there is no value in the outcome of that first click... It highlights the switched application but doesn't actually switch to it until you click a second time... "
    ...that turned out to be my mistake... In another post someone pointed out that in Spaces preferences you must have checked ON the preference that says,
    "When switching to an application, switch to a space with open windows for the application"...
    I had been playing with a number of things trying to figure out what was going on and somewhere in the mix had switched that off... (It is on on all my other computers and I'm sure it originally was on this one too)... When I switched it back on the above described problem went away... So that was my fault...
    But the second part,
    "Second, and this one is worse, if you say launch Excel (which you want to open in Space 4) while you are in Space 1, Excel will open and switch over to Space 4... So far so good... But now, with Excel open over in Space 4, if you are now back and working in Space 1 and while there you use the Finder to go to some other, currently unopened, Excel file and request that it open, it should switch over to Space 4 and open that file but instead it opens it wherever you are, in the case mentioned here, in Space 1... So now you have Excel files opened both in Spaces 1 and 4... Clearly a bug... "
    ...is a real problem... I fired up my G4 (power pc) that runs Leopard, 10.5.8, to see whether it behaves the above way or not and it does NOT... It works as one would expect.. So at least later in Leopard, the above mentioned problem was not present but it is in this first incarnation of Snow Leopard...
    To me, the utility of Spaces is all about keeping a single desktop from being cluttered with many open applications/files and to now have an application that opens in whatever space you happen to be in after it is first opened in its "correct" space sort of defeats the idea behind Spaces... I am currently trying to train myself to first hit <command><4> (my Excel space) before opening a second or subsequent Excel document to prevent it from opening somewhere where I don't want it to be...
    Again, I hope Apple sees and fixes this... I did submit an "Apple feedback" item for this issue... thanks... bob..

  • Having a problem with itunes. Just downloaded the lastest itunes update. However, it won't open because it keeps trying to download to a driver (k:) which I don't have. Since my phone iOS is updated and can't connect to itunes anymore. How do I fix this?

    Having a problem with itunes update. Download wants to update to a driver (k:) which my computer doesn't have. As a result the download does not go through.

    Try the following user tip:
    "Invalid drive X:\" install errors

  • Problem with applications that doesn't show even if installed and to uninstall some that work wrong

    Hi there!
    Problem #1: I've been having problems with my Windguru application in my Iphone. From sometime onwards, it is not showing the forecasted wind, etc after I open it. Tried to uninstall and install again but the problem continues. Seems like there is something sticking in my iphone that is preventing the app to work correctly after uninstalled. Is there something "Windows like" to clean all remains of an application?
    Problem #2 and somehow related: I installed Netflix app in my Iphone as a trial and went ok. Then, logically, tried in my Ipad but something went wrong. The App is installed but doesn't show anyplace. In App store it shows as installed, in General Settings it shows in the list of applications, but no Icon!
    Then I tried to uninstall from Itunes and the same thing continued happening. Worse, then I tried to install from Itunes, SAW the icon with the progress bar being installed in the Ipad and suddenly it dissapeared!!
    Anyone can help?
    Thanks in advance.

    Driskol wrote:but i dont have access to the old kernel
    I can't solve your problem, but I can help you work around it by downgrading if nobody else can figure it out.
    You can find old packages here at the Arch Rollback Machine project repo someone thankfully keeps running,
    http://arm.nrk.cc/
    Just go to 'core' and get the package(s) you need and downgrade. There is also a thread on here somewhere about setting up pacman.conf to point to a specific date with ARM if you don't want to get individual stuff manually, but just doing it individually would probably be easier, as I don't expect the kernel has too many other things you need
    Last edited by FrozenFox (2009-04-17 10:51:42)

  • I have a Mac with OS 10 5.8 and a new HP Pro 8500 Premier Printer. When printing, how do I change the print option from photo paper to plain or inkjet? This is a serious problem and HP tells me it is a problem with Firefox, that they are getting several

    I used to be able to choose print options with Firefox and now I can't. It forces me to use photo paper when I want only to use plain paper. I do not have this problem with Safari or IE, just firefox. I have an office jet 4500 HP printer

    I should add that it's an HP photosmart 4280.I found it online and it shows the Mac 0SX operating system.

  • My final device that just won't connect!

    Hi Folks, I have a BT HomeHub2 which has been working fine for about a year now. I have three Macs, a PC, an XBox 360, a Wii and my ipod all successfully connecting to this without any problems at all.
    I've just bought a San Francisco Orange phone - this is really a ZTE Blade android phone that Orange have changed the name. It can connect to my sisters BT Homehub2 no problems, but it's just not connecting to mine.
    It sees the network, I put in the correct password and it hangs at 'obtaining IP address'.
    The curious thing is that it will happily connect via BTopenzone and seeing as I live in the middle of nowhere this will be taking my homehub connection. However, this isn't satisfactory as everytime I wake my phone up I have to then re-register via BTfon on the internet phone app.
    I have a sneaking suspicion that it maybe that I have a setting blocking me from linking this phone, but have no idea how to proceed.
    (oh, and I have been pressing the pairing button on the hub by the way!)
    Suns

    Hi Geaves,
    Well, yes and no. I'm already part of the Modaco forum folk. The issue I'm having isn't the same as those particular links (have gone through them thoroughly) - that issue is with the phone constantly dropping the wi-fi connection... I've never managed to get it to connect to my own home hub apart from with openzone.
    I get the impression that this is something to do with the homehub setup - other people are having this issue, though only a handful it has to be said. Also, I have managed to get it to connect immediately with my sister's homehub2 - sadly she lives 450 miles away
    Here's a snippet of something that may or may not spark some suggestions with those familiar with the ins and out of the BT homehub (which I ain't):
    Taken from the modaco forum:
    'Aside from the SF's known v1.0 wifi quirks, it sounds as though there may be something strange in the router setup limiting the number of connections available to you, possibly because of maximising the number available to other passing BT customers ... I think you need to ensure that you aren't being excluded from your own router because of the way it is setup. Ordinarily your security might be setup to limit the number of (in-house) connections (by restricting the DHCP pool of addresses), or permit only devices already known (a MAC whitelist), or even having DHCP turned off with everything having its own static IP address. Those would normally be deliberate (manual) security setup choices, (but I dunno how your thing sets itself up). And all those (and probably many other) things could give the sort of grief you are encountering. But, although (or maybe because) I simply don't know the detail of how much of your router is reserved for your own use, I'd suspect that might be where the trouble lies. Certainly the first thing I'd want to investigate.'
    Could this be something?_ I have 6/7/8 devices on my connected list, depending on wether the wife/daughter is on a laptop or not.
    Also, as a comment:
    I have a Dell Streak phone (2.1) and a BT HomeHub2, guess what ... I have the same problem. I have noticed that the Streak leases everything single address on the hub and then never connects. Also what I see is massive amounts hits in the MAC table for the phone ... xxxx.xxxx.xxxx-1 xxxx.xxxx.xxxx-2 xxxx.xxxx.xxxx-3 etc. I have told the router to always lease a specific address to the MAC but no good. I think it's BT's software in the Hub.
    Just putting two sides of the story down here as I really have no idea wether the fault is the hubs or the phones.
    Suns

Maybe you are looking for

  • Intel centrino advanced n6235 wifi not working only bluetooth

    hello could anyone help me with this a bought a new wireless network card with bluetooth but only the bluetooth works and i have a dv7t pavillion cto 6b00 quad edition laptop could anyone please help me, i'll appreciate it , thank you

  • Condition Concatination with the SQL String

    Hi Friends, I am facing problem in concatinating the below sring [  ','||:id1||',' like '%,'''||hou.name||''',%' ] in the below query in the place of [ hou.name =:id1 ] My Query : Declare TYPE cur_typ IS REF CURSOR; c cur_typ; query_str VARCHAR2(4000

  • Best course of action for lost iPhone

    Hi Can any one advise the best security strategy when you loose an iPhone 3GS. I have it password protected and the data on it is of my prime concern. It seems that if II wipe it I can no longer send messages or attempt to locate it. Also if someone

  • Can someone help me please? I'm at my wits end here trying to get help.

     Now like many other people I bought a large number of cards as well, and although for a second I thought it might be a 5 minute gimmick type deal when I saw how long the deal stayed alive and heard of the number of cards people were buying I knew it

  • Epson PS R2400 won't print 13 by 20

    For the last few days, my Epson Photo Smart R2400 will only print a 8.5 x 11 portion of a 13x20 document. I have iMac Power Mac on 10.5.6. I have tried everything possible to get this printer to print the full page (and I've been using these printers