If a user has been removed from the system while still having a ThinLinc session running, it will be difficult to remove the session from the session store. For example, trying to terminate a session with tlctl, where user 'test1' has been removed from the system: [root@lab-97 ~]# tlctl session terminate --user=test1 Refreshing session information... Terminating: USER DISPLAY AGENT ========================= test1 10 127.0.0.1 Summary: Terminate 1 session(s) Is this ok? [y/N]: y tlctl: error: failed to terminate session 10 for test1 on VSM Agent 127.0.0.1 tlctl: error: failed to terminate 1 session(s). Check /var/log/vsmserver.log for more information vsmserver.log: >2024-04-16 12:21:00 INFO vsmserver.session: User with uid 0 requested termination of 127.0.0.1:10 >2024-04-16 12:21:00 WARNING vsmserver.session: kill_session: User with uid 1001 does not exist Likewise, from tlwebadm when trying to terminate, it will report: >Failed to terminate session 10 for test1 on agent 127.0.0.1. Check >/var/log/vsmserver.log for explanation.
In the above scenario, it is sufficient to kill the user's tl-session manually, and vsmserver will take notice and remove the session metadata from its session store.