-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zombie sessions? #830
Comments
I'm facing the exact same issue on a Debian stretch system with the latest 0.9.3 branch of Xrdp. I wrote a small script (executed as a cronjob once a minute) to clean up the socket files. Since then, no complaints by the users any longer. However, that is only a workaround. My feeling is that it is a bug in sesman and should be corrected. |
I'm working on the issue at #812. Workaround is as @tfischer77 says, run clean up script like this by cron. https://gist.github.com/metalefty/2672c26ae0cb36f7a4bc100650c83a15 |
@tfischer77 |
@DS455 see my gist link. |
then your code works https://www.tutorialspoint.com/execute_bash_online.php (bash v4.4) I altered the script like this:
But the directory /tmp/.xrdp is not cleaned:
|
The directory is already cleaned. No sockets should be deleted anymore. Remember the original bug. |
For example, if the socket directory is like this,
the socket files to be deleted by the script are
because |
@metalefty |
Again having problems connecting, only works after restarting the service XRDP.
|
@DS455 - you need to find out why you've got so many X servers registered on your system:-
|
I'm running xrdp 0.9.2 on Ubuntu 14.04 with
MaxSessions=50
and persistent sessions.After a while clients can't connect any longer because:
[20170720-14:50:35] [ERROR] X server -- no display in range is available
.ps
only shows around 20 Xorg sessions, but I can see some of them have display IDs above 50, which means xrdp for some reason didn't reuse lower numbers when clients disconnected and eventually reached the number that matchesMaxSessions
+X11DisplayOffset=10
. I think this may be related to #812Below is a log from freshly restarted xrdp. 2 things to note:
This requires to restart and drop sessions once in a while, which did not happen with xrdp-0.8. I'm happy to try any suggestions. Thank you!
The text was updated successfully, but these errors were encountered: