Comments (6)
That log looks fine- the errors are generated when the xrdp connection to sesman is terminated.
This is interesting and may well be the cause of your problem:-
login successful for display 120 VNC started connecting VNC connecting to 127.0.0.1 6020
By default VNC allocates ports for a display :$D.0 as follows:-
VNC client TCP port : 5900 + $D
VNC X11 TCP port : 6000 + $D
So for display :20.0, VNC will use TCP ports 5920 and 6020. For display 120, VNC will use ports 6020 and 6120. You can see there's a collision here. If you've got a user on :20.0, a user on :120.0 won't be able to connect, as xrdp will connect to TCP port 6020 and send it VNC commands. However port 6020 will be expecting X11 commands.
Later versions of xrdp place a limit on the display number to stop this happening.
A display number of 120 suggests you've got at least 111 sessions active (allocations 1 uses display 10, allocation 2 uses display 11 and so-on). This is pretty enormous, and I think needs some investigation. Do you have that many users on one machine?
from xrdp.
Thanks for the feedback @matt335672
We do have a lot of users. I just did a count of Xvnc sessions and currently I see 76 processes.
What i suspect is happening is that some of the sessions get defunct, but xrdp still keeps record of them somehow and still tries to reconnect the user to an old connection that no longer exists. But I really don't understand the inner works of xrdp, this is just a wild guess from reading the logs and seeing a lot of defunct reconnectwm.sh processes.
Is there a way to like make xrdp forget about the old session and just try and create a new one? I've found that the sockets are created under /run/xrdp/* , maybe deleting the respective sockets of those old connections would make xrdp create a new one?
Best regards
from xrdp.
You can use the xrdp-sesadmin
command to list the sessions that xrdp
knows about. On your version of xrdp however it's very clunky, and you'll need to authenticate with a username and password. It should however, let you tie up usernames with sessions.
There's no way at the moment to get xrdp to forget about sessions. The state information is held in memory by xrdp-sesadmin
.
What do you mean by 'defunct reconnectwm.sh' processes?
from xrdp.
Do you think an upgrade to 0.9.22.1-2 could solve this problems? It's the version I have available at the EPEL repo.
Are there breaking changes and configurations I need to change from 0.9.17?
reconnectwm.sh is the script configured in ReconnectScript in sesman, I have the default one. Currently, I have 65 defunct (zombie) reconnectwm.sh processes, with 10 months 23 days of xrdp service running.
Thanks!
from xrdp.
You shouldn't have any zombie reconnectwm.sh processes, let alone 65 of them. That suggests sesman is missing the SIGCHLD
signals from these processes.
I've done a bit of archeology, and this was fixed for v0.9.19 - see #2146, #2151, #2168. So an upgrade to 0.9.22.1 should help.
As far as breaking changes go, here are the relevant release notes:-
I can't see anything in there which I'd describe as a breaking change. However - you're the systems admin, so if it does break you'll be the one explaining why! Please look through the above yourself. I've been a systems admin myself, and I can see you've got a huge system there with no scope for down-time. Take all the usual precautions (including a rollback strategy, tested on a VM or desktop machine) and you should be fine. Please ask if you need any clarification from the release notes above.
from xrdp.
Thank you so much @matt335672 !!
This host is for accessing a very costumized htcondor cluster for our users, so it's very crowded 😄
I'll try to find a maintenance window to do the update during a weekend. It's a VM, so a snapshot should be fine in case we need to rollback.
Best regards!
from xrdp.
Related Issues (20)
- File transfer from Windows encountered: "Error when getting information for file '/test.txt' " HOT 8
- Specific filenames cause File transfer / drive redirection error HOT 19
- Build failed with rfxencode_dwt_shift_rem_sse2.c:41:26: error: '__m128i_u' undeclared HOT 3
- Session Allocation Policy 'I' not working (client IP address is always NULL) HOT 3
- SSL: error:14094123:SSL routines:ssl3_read_bytes:application data after close notify HOT 5
- xrdp green screen after RDP login HOT 8
- Support OpenH264 HOT 1
- Blank dark screen after update to 0.10 HOT 23
- KDE Display Issue on Arch Linux HOT 7
- Release tarball contains wrong sesman.ini and xrdp.ini instead of sesman.ini.in and xrdp.ini.in HOT 1
- waitforx issue HOT 2
- X server could not be started HOT 2
- UBUNTU VM - Could not open connection to the host, on port 3389: Connect failed HOT 3
- xrdp not working on Ubuntu 22.04 LTS HOT 1
- A blue screen with remote access from Win10 HOT 9
- Scaling does not apply with xrdp on Debian 8 using high DPI Surface Pro machine HOT 22
- Works with PI 4 and 5, but not with PI 3b+ HOT 6
- Glamor gpu HOT 8
- make distcheck fails on Github runner ubuntu-24.04 with clang compiler
- Authentication error has occurred. The function requested is not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xrdp.