Nxserver –terminate leaves stale NFS handles

Forum / NoMachine for Linux / Nxserver –terminate leaves stale NFS handles

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50329
    rbulla
    Participant

    The NoMachine’ user home directory is located on a NFS share. By terminating an exisiting NM session of that user with “/etc/NX/nxserver --terminate” stale NFS handles are left, i.e. I can’t remove that users home directory:

    socvm400:/root# /etc/NX/nxserver –list
    NX> 127 Available sessions:

    Display Username     Remote IP     Session ID                       Node
    ——- ———— ————- ——————————– ————–
    1002                 7367004E7853E525EA710E6F6ADB0DD3 localhost:4000

    socvm400:/root# /etc/NX/nxserver –terminate
    NX> 900 Terminating session with id: 7367004E7853E525EA710E6F6ADB0DD3
    NX> 900 Session id: 7367004E7853E525EA710E6F6ADB0DD3 terminated.

    socvm400:/root# su –
    Last login: Fri Oct 18 17:28:20 CEST 2024 on pts/0
    socvm400:/home/$ cd ..
    socvm400:/home$ rm -rf
    rm: cannot remove ‘/.nx/node/F-C-socvm400-1002-7367004E7853E525EA710E6F6ADB0DD3’: Directory not empty
    socvm400:/home$ ls -al /.nx/node/F-C-socvm400-1002-7367004E7853E525EA710E6F6ADB0DD3
    total 12
    drwx—— 2 users 4096 Oct 21 09:41 .
    drwx—— 3 users 4096 Oct 21 09:40 ..
    -rw——- 1 users 2016 Oct 21 09:40 .nfs0000000049b1009b00000011

    Does anybody has an idea how to resolve this issue?

    Server: RHEL7.9, NoMachine 7.8.2

    Client: RHEL7.9, NoMachine 7.8.2

    Virtual desktop

    KDE 4.14.8

     

    br,

    Ruediger

    #50357
    rbulla
    Participant

    Solution: I found that the problem is related to the backend user which still persists when the the session gets terminated or the user logs out.

    Removing the backend user with “/etc/NX/nxserver –userdel <user> –system” solves the issue.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.