neutrinolabs / xrdp

xrdp: an open source RDP server
http://www.xrdp.org/
Apache License 2.0
5.77k stars 1.73k forks source link

xrdp_0.10.1-2_amd64.deb and xorgxrdp/noble,now 1:0.9.19-1 amd64 [installed] results in [ERROR] waitforx: Unable to find any RandR outputs #3249

Closed tomkcpr closed 1 month ago

tomkcpr commented 2 months ago

xrdp version

0.10.1

Detailed xrdp version, build options

==> xrdp-sesman.log <==
[2024-09-16T11:35:49.502-0400] [INFO ] Received system login request from xrdp for user: jake@lab.xyz IP: ::ffff:192.168.0.152
[2024-09-16T11:35:49.569-0400] [INFO ] starting xrdp-sesexec with pid 733084
[2024-09-16T11:35:49.393-0400] [INFO ] TerminalServerUsers group tsusers doesn't exist. Access granted for jake@lab.xyz
[2024-09-16T11:35:49.395-0400] [INFO ] Access permitted for user: jake@lab.xyz
[2024-09-16T11:35:49.397-0400] [INFO ] Received sys login status for jake@lab.xyz : logged in
[2024-09-16T11:35:49.399-0400] [INFO ] Received request from xrdp to create a session for user jake@lab.xyz
[2024-09-16T11:35:49.771-0400] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -no                                                    reset -nolisten tcp -logfile .xorgxrdp.%s.log
[2024-09-16T11:36:00.702-0400] [ERROR] waitforx: Unable to find any RandR outputs
[2024-09-16T11:36:00.704-0400] [ERROR] An error occurred waiting for the X server
[2024-09-16T11:36:00.767-0400] [INFO ] Session on display 10 has finished.

Operating system & version

Ubuntu 24.04.1 LTS

Installation method

dnf / apt / zypper / pkg / etc

Which backend do you use?

XRDP

What desktop environment do you use?

GNOME

Environment xrdp running on

VM

What's your client?

RDP

Area(s) with issue?

Other

Steps to reproduce

Install

xrdp_0.10.1-2_amd64.deb xorgxrdp/noble,now 1:0.9.19-1 amd64 [installed] DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"

Try to connect from Windows 10 via RDP.

Received error:

==> xrdp-sesman.log <== [2024-09-16T11:35:49.502-0400] [INFO ] Received system login request from xrdp for user: jake@lab.xyz IP: ::ffff:192.168.0.152 [2024-09-16T11:35:49.569-0400] [INFO ] starting xrdp-sesexec with pid 733084 [2024-09-16T11:35:49.393-0400] [INFO ] TerminalServerUsers group tsusers doesn't exist. Access granted for jake@lab.xyz [2024-09-16T11:35:49.395-0400] [INFO ] Access permitted for user: jake@lab.xyz [2024-09-16T11:35:49.397-0400] [INFO ] Received sys login status for jake@lab.xyz : logged in [2024-09-16T11:35:49.399-0400] [INFO ] Received request from xrdp to create a session for user jake@lab.xyz [2024-09-16T11:35:49.771-0400] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -no reset -nolisten tcp -logfile .xorgxrdp.%s.log [2024-09-16T11:36:00.702-0400] [ERROR] waitforx: Unable to find any RandR outputs [2024-09-16T11:36:00.704-0400] [ERROR] An error occurred waiting for the X server [2024-09-16T11:36:00.767-0400] [INFO ] Session on display 10 has finished.

✔️ Expected Behavior

Install

xrdp_0.10.1-2_amd64.deb xorgxrdp/noble,now 1:0.9.19-1 amd64 [installed] DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"

Try to connect from Windows 10 via RDP.

Expect successful connection.

❌ Actual Behavior

Install

xrdp_0.10.1-2_amd64.deb xorgxrdp/noble,now 1:0.9.19-1 amd64 [installed] DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"

Try to connect from Windows 10 via RDP.

Received error:

==> xrdp-sesman.log <== [2024-09-16T11:35:49.502-0400] [INFO ] Received system login request from xrdp for user: jake@lab.xyz IP: ::ffff:192.168.0.152 [2024-09-16T11:35:49.569-0400] [INFO ] starting xrdp-sesexec with pid 733084 [2024-09-16T11:35:49.393-0400] [INFO ] TerminalServerUsers group tsusers doesn't exist. Access granted for jake@lab.xyz [2024-09-16T11:35:49.395-0400] [INFO ] Access permitted for user: jake@lab.xyz [2024-09-16T11:35:49.397-0400] [INFO ] Received sys login status for jake@lab.xyz : logged in [2024-09-16T11:35:49.399-0400] [INFO ] Received request from xrdp to create a session for user jake@lab.xyz [2024-09-16T11:35:49.771-0400] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -no reset -nolisten tcp -logfile .xorgxrdp.%s.log [2024-09-16T11:36:00.702-0400] [ERROR] waitforx: Unable to find any RandR outputs [2024-09-16T11:36:00.704-0400] [ERROR] An error occurred waiting for the X server [2024-09-16T11:36:00.767-0400] [INFO ] Session on display 10 has finished.

Anything else?

Should I be matching versions?

https://packages.debian.org/sid/amd64/xorgxrdp/download

has xorgxrdp has version 0.10.2

Perhaps I should be matching versions? Or what would be the correct product combination so connections work and where could I get the latest .deb packages from?

matt335672 commented 1 month ago

Ubuntu 24.04 ships with xrdp v0.9.x packages.

The problem you're reporting was fixed in neutrinolabs/xorgxrdp@7f6ff75b895b05a87ab76d611bd36c9db15bd49c which shipped in v0.10.x versions of xorgxrdp.

The packages you're looking at are part of unstable (I think), so they may or may not work with your version of Ubuntu. We're not packagers here so we can't tell you if these packages will work or not work on your version of Ubuntu.

tomkcpr commented 1 month ago

No worries. Good to know and Thank You. Checked out the master branch last night, of xorgxrdp and xrdp and compiled a copy.

xorgxrdp 0.2.18 (Based on README.md) xrdp 0.10.80

Above combination works, though there is a black screen on initial login that doesn't go away, but this issue disappears after logging in a second or third attempt. Works fine after that on Ubuntu 24.04.

tomkcpr commented 1 month ago

Hang on. Do you mean v0.10.x of XRDP or do you actually mean v0.10.X of XORGXRDP?

I see 0.2.18 on the code repo here:

https://github.com/neutrinolabs/xorgxrdp/blob/devel/README.md

tomkcpr commented 1 month ago

Nm, I think you mean the tag.

metalefty commented 1 month ago

I see 0.2.18 on the code repo here:

It is just README is not up to date. v0.10.2 is the latest.

matt335672 commented 1 month ago

If you can post xrdp.log and xrdp-sesman.log on the first attempt, we can look at that.

matt335672 commented 1 month ago

No further response - closing.

sengacheng commented 3 weeks ago

oot@US-NORMANC2-LNX:/var/log# tail -f xrdp-sesman.log [2024-10-22T19:29:59.811-0700] [INFO ] starting xrdp-sesman with pid 63296 [2024-10-22T19:29:59.819-0700] [INFO ] Sesman now listening on /var/run/xrdp/sesman.socket [2024-10-22T19:30:22.688-0700] [INFO ] Socket 13: connection accepted from AF_UNIX [2024-10-22T19:30:22.692-0700] [INFO ] Received system login request from xrdp for user: root IP: 10.105.17.103 [2024-10-22T19:30:22.705-0700] [INFO ] starting xrdp-sesexec with pid 63320 [2024-10-22T19:30:22.798-0700] [INFO ] TerminalServerUsers group tsusers doesn't exist. Access granted for root [2024-10-22T19:30:22.800-0700] [INFO ] Access permitted for user: root [2024-10-22T19:30:22.801-0700] [INFO ] Received sys login status for root : logged in [2024-10-22T19:30:22.801-0700] [INFO ] Received request from xrdp to create a session for user root [2024-10-22T19:30:22.839-0700] [INFO ] Starting X server on display 10: Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log [2024-10-22T19:30:52.839-0700] [ERROR] waitforx: Timed out waiting for RandR outputs [2024-10-22T19:30:52.865-0700] [ERROR] Timed out waiting for X server [2024-10-22T19:30:52.877-0700] [INFO ] Session on display 10 has finished.

sengacheng commented 3 weeks ago

get the same issue in ubuntu 22.04 LTS

metalefty commented 3 weeks ago

Raise your own issue.