We recently ran into an issue with VNC Desktop sessions on our dedicated “VNC Login” host. We are using the LinuxHost adapter here and found that the /tmp/.X##-lock files were not getting cleaned up in all cases and we filled up all the display slots that were being searched. After clearing out the stale lock files I did a little testing and it looks like the lock files get cleaned up if I log out of the desktop, but if I cancel the “job” by hitting the delete button in the OOD session card the lock file will be left behind. I suspect that people are opting to delete sessions because the logout option is buried in our desktop setup. A side quest for me may be to make it easier to logout and then train our users to do that, but I would like to fix the root cause. This does not happen with jobs started by the scheduler (PBSPro in our case) so I believe that this problem is specific to the LinuxHost adapter probably due to the way that jobs are started and killed.
I’m wondering if anybody else has run into this issue and found a good way to fix it in the app definition? If this can’t be fixed in the app then I’m wondering if some changes could be made to the LinuxHost adapter to allow deleted jobs to clean up properly. I’m willing to dig a little deeper and work on a fix if somebody can point me in the right direction.
Thanks,
Mike