-
-
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
xorgxrdp sometimes requires Xorg.wrap to start on FreeBSD/DragonFlyBSD #2477
Comments
Seems like it's not succeeding in starting an X server. Maybe check you have an Xorg executable at the path called out in:
Also need to see what's in log file .xorgxrdp.10.log (if it exists) |
I've got Xorg and Xorg.wrap in /usr/local/libexec |
The xrdp-sesman.log appears to be incomplete above. Search the log for this line:-
and then try running the complete command on the command line when logged is as |
Runnig the command give me :
|
Exact same error on FreeBSD:
According to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265728#c11 I haven't understood the wrapper thing.
|
Found a 'fix', but don't know if its the correct way. Change in sesman.ini |
I had the correct param too. Changing it to Xorg.wrap and creating a Xwrapper.config file with allowed_users = anybody seems to fix the permission issue but I have another error :
|
Try pciconf -lv to get the busID of the vga device. Create /usr/local/etc/X11/xorg.conf.d/myvideo.conf with content according to your driver and busID
|
After addind BusID in config file, the connexion with window's remote desktop is still the same (hanging for a while and print error). and hang. |
Mhm ok then I'm out of ideas with the playtogether of framebuffers. |
Ok, nevermind. After a reboot, it's working. Strange that the freebsd's fix doesn't fix the permission issue. |
Hmm, that's very interesting Years of my experience, specifying @mr44er If you could still spend some time for this, can you show me the output of this?
|
If it is working, the output will be like this (details may vary):
Also, can you show me the output of |
Let me reopen this because this is very interesting. I'll try a fresh DragonFlyBSD install and investigate why it is not working without Xorg.wrapper. |
.xorgxrdp.15.log:
pkg info -f xorg-server:
The machine is a qemu-vm on proxmox, where I'm using UEFI-boot with scfb. The only change I made was /usr/local/etc/X11/xorg.conf.d/98-qemu-video.conf with content:
But AFAIK this session runs on :9, but only if I start it. |
I'm wondering if this is another manifestation of neutrinolabs/xorgxrdp#241. @mr44er - can you make sure you've got the changes in commit b7002eee in your |
I will fire up another vm to have a clean start and to be 100% sure and report back then. The fresh vm was 13.1-RELEASE-p5, no qemu-guest-agent this time and no editing for scfb.
Old and fresh vm did not have this commit. Second test with added qemu-guest-agent works too. This narrows it down to my manual edit in /usr/local/etc/X11/xorg.conf.d/98-qemu-video.conf I don't really need running scfb on the qemu main console, when I can have the better experience over rdp. But anyway, was this configuring wrong? Should I try the commit + scfb? And it doesn't explain the workaround for @CaptKentish |
So, I didn't have the commit in /etc/X11/xrdp/xorg.conf I have a file in /usr/local/etc/X11/xorg.conf.d/ which loads the radeon driver. I didn't touch it. |
Can you share the content of this file in /usr/local/etc/X11/xorg.conf.d/? |
The BusID line was added for xrdp. |
Thanks, this is just the same config setting as I had for scfb and yes, maybe this blocked xrdp initially for you, too. I did some more testing, it just was the missing commit. |
Glad you've got it working. Happy to close this one now? |
Yeah, you can close it 👍 |
Thanks. |
Hi, I'm using Dragonflybsd.
xrdp 0.9.20,1 - xorgxrdp 0.9.19
When I try to connect on my local network from windows using rdp, I can enter my user informations but after a while I've got an error and the login screen reappear.
xrdp.log :
[20221218-15:41:53] [INFO ] Socket 14: AF_INET connection received from 192.168.1.12 port 63971
[20221218-15:41:53] [INFO ] Using default X.509 certificate: /usr/local/etc/xrdp/cert.pem
[20221218-15:41:53] [INFO ] Using default X.509 key file: /usr/local/etc/xrdp/key.pem
[20221218-15:41:53] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL[20221218-15:41:53] [ERROR] SSL_read: I/O error
[20221218-15:41:53] [ERROR] libxrdp_force_read: header read error
[20221218-15:41:53] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[20221218-15:41:53] [ERROR] [MCS Connection Sequence] receive connection request failed
[20221218-15:41:53] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[20221218-15:41:53] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20221218-15:41:53] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20221218-15:41:53] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20221218-15:41:53] [WARN ] getsockname() failed on socket 14: Connection reset by peer
[20221218-15:41:53] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[20221218-15:41:53] [INFO ] Socket 14: AF_INET connection received from 192.168.1.12 port 63972
[20221218-15:41:53] [INFO ] Using default X.509 certificate: /usr/local/etc/xrdp/cert.pem
[20221218-15:41:53] [INFO ] Using default X.509 key file: /usr/local/etc/xrdp/key.pem
[20221218-15:41:53] [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL[20221218-15:41:53] [INFO ] Connected client computer name: LAPTOP-5H7102E9
[20221218-15:41:53] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20221218-15:41:53] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20221218-15:41:53] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04][20221218-15:41:53] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [fr] options []
[20221218-15:41:53] [INFO ] TLS connection established from 192.168.1.12 port 63972: TLSv1.2 with cipher ECDHE-RSA-AES25[20221218-15:41:53] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20221218-15:41:53] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
[20221218-15:41:53] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20221218-15:41:53] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
[20221218-15:41:53] [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
[20221218-15:41:53] [INFO ] Loading keymap file /usr/local/etc/xrdp/km-0000040c.ini
[20221218-15:41:53] [WARN ] local keymap file for 0x0000040c found and doesn't match built in keymap, using local keymap[20221218-15:42:05] [INFO ] connecting to sesman on 127.0.0.1:3350
[20221218-15:42:05] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20221218-15:42:05] [INFO ] sesman connect ok
[20221218-15:42:05] [INFO ] sending login info to session manager. Please wait...
[20221218-15:42:05] [INFO ] xrdp_wm_log_msg: login successful for user damien on display 10
[20221218-15:42:05] [INFO ] login successful for user damien on display 10
[20221218-15:42:05] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20221218-15:42:05] [INFO ] started connecting
[20221218-15:42:05] [INFO ] lib_mod_connect: connecting via UNIX socket
[20221218-15:45:35] [INFO ] connection problem, giving up
[20221218-15:45:35] [INFO ] some problem
[20221218-15:45:35] [ERROR] xrdp_wm_log_msg: Error connecting to user session
[20221218-15:45:35] [INFO ] Error connecting to user session
xrdp-sesman.log :
`[20221218-15:42:05] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 2464
[20221218-15:42:05] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20221218-15:42:05] [INFO ] ++ created session (access granted): username damien, ip 192.168.1.12:63972 - socket: 14
[20221218-15:42:05] [INFO ] starting Xorg session...
[20221218-15:42:05] [INFO ] Starting session: session_pid 2067, display :10.0, width 1364, height 768, bpp 24, client ip[20221218-15:42:05] [ERROR] sesman_data_in: scp_process_msg failed
[20221218-15:42:05] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20221218-15:42:05] [INFO ] [session start] (display 10): calling auth_start_session from pid 2067
[20221218-15:42:05] [INFO ] PAM: Last login: Sun Dec 18 14:44:57 2022 from 192.168.1.12 on pts/0
[20221218-15:42:05] [INFO ] Starting X server on display 10: /usr/local/libexec/Xorg :10 -auth .Xauthority -config xrdp/[20221218-15:42:15] [WARN ] Timed out waiting for X server on display 10 to startup
[20221218-15:42:15] [INFO ] Session started successfully for user damien on display 10
[20221218-15:42:15] [INFO ] Session in progress on display 10, waiting until the window manager (pid 2069) exits to end
[20221218-15:42:15] [INFO ] Starting the xrdp channel server for display 10
[20221218-15:42:15] [WARN ] Timed out waiting for X server on display 10 to startup
[20221218-15:42:15] [ERROR] There is no X server active on display 10
[20221218-15:42:15] [ERROR] A fatal error has occurred attempting to start the window manager on display 10, aborting co[20221218-15:42:15] [WARN ] Window manager (pid 2069, display 10) exited quickly (0 secs). This could indicate a window
[20221218-15:42:15] [INFO ] Calling auth_stop_session and auth_end from pid 2068
[20221218-15:42:15] [INFO ] Terminating X server (pid 2070) on display 10
[20221218-15:42:15] [INFO ] Terminating the xrdp channel server (pid 2072) on display 10
[20221218-15:42:15] [INFO ] X server on display 10 (pid 2070) returned exit code 1 and signal number 0
[20221218-15:42:15] [INFO ] xrdp channel server for display 10 (pid 2072) exit code 0 and signal number 0
[20221218-15:42:15] [INFO ] cleanup_sockets:
[20221218-15:42:15] [INFO ] Process 2067 has exited
[20221218-15:42:15] [INFO ] ++ terminated session: username damien, display :10.0, session_pid 2067, ip 192.168.1.12:63`
The text was updated successfully, but these errors were encountered: