Git Product home page Git Product logo

Comments (24)

gili-gili avatar gili-gili commented on June 16, 2024

Referring to https://askubuntu.com/questions/133343/how-do-i-set-up-xrdp-session-that-reuses-an-existing-session
I changed port=-1 to port=5910, but it seems to getting worse. I got black screen in my RDP session, and rebooting doesn't help at all
that's for vnc

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

I'm really really sorry if I made some very stupid mistakes, I have spent a whole week on configuring xrdp, and I really so confused :(

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

Well I found something interesting

; for debugging xrdp, in section xrdp1, change port=-1 to this:
#port=/tmp/.xrdp/xrdp_display_10

Although it says it's for debug purpose but in my case it solved my problem
HOWEVER after a reboot it stopped working again..... I still need to change to port=-1 first then change it back
god damn it is there a way to fix them all

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

@gili-gili - what do you mean by 'the connection just ends immediately.'? Can you log in, or can't you even get to the login screen?

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

I can only see black screen for a second, and then my client tells me connection is closed

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

Are you trying to auto login by supplying a username and password?

If so, can you temporarily disable this?

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

Yes, I'll give a try
Update: Tried to log in manually, still not working
xrdp-sesman.service logs:

Sep 27 17:07:22 HOST xrdp-sesman[69341]: [INFO ] Socket 12: AF_INET6 connection received from ::1 port 57992
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [INFO ] Terminal Server Users group is disabled, allowing authentication
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [INFO ] ++ created session (access granted): username user, ip ::ffff:192.168.0.2:37038 - socket: 12
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [INFO ] starting Xorg session...
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [INFO ] Starting session: session_pid 69631, display :11.0, width 2316, height 1080, bpp 24, client ip ::ffff:192.168.0.2:37038 - socket: 12, user name user
Sep 27 17:07:22 HOST xrdp-sesman[69631]: [INFO ] [session start] (display 11): calling auth_start_session from pid 69631
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [ERROR] sesman_data_in: scp_process_msg failed
Sep 27 17:07:22 HOST xrdp-sesman[69631]: pam_unix(xrdp-sesman:session): session opened for user user(uid=1000) by user(uid=0)
Sep 27 17:07:22 HOST xrdp-sesman[69341]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
Sep 27 17:07:22 HOST xrdp-sesman[69631]: [INFO ] Found X server running at /tmp/.X11-unix/X11
Sep 27 17:07:22 HOST xrdp-sesman[69631]: [INFO ] Session started successfully for user user on display 11
Sep 27 17:07:22 HOST xrdp-sesman[69631]: [INFO ] Session in progress on display 11, waiting until the window manager (pid 69633) exits to end the session
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [WARN ] Window manager (pid 69633, display 11) exited quickly (1 secs). This could indicate a window manager config problem
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [INFO ] Calling auth_stop_session and auth_end from pid 69631
Sep 27 17:07:23 HOST xrdp-sesman[69631]: pam_unix(xrdp-sesman:session): session closed for user user
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [INFO ] Terminating X server (pid 69634) on display 11
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [INFO ] Terminating the xrdp channel server (pid 69664) on display 11
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [INFO ] X server on display 11 (pid 69634) returned exit code 0 and signal number 0
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [INFO ] xrdp channel server for display 11 (pid 69664) exit code 0 and signal number 0
Sep 27 17:07:23 HOST xrdp-sesman[69631]: [INFO ] cleanup_sockets:
Sep 27 17:07:23 HOST xrdp-sesman[69341]: [INFO ] Process 69631 has exited
Sep 27 17:07:23 HOST xrdp-sesman[69341]: [INFO ] ++ terminated session:  username user, display :11.0, session_pid 69631, ip ::ffff:192.168.0.2:37038 - socket: 12

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

The session isn't running for very long:-

Sep 27 17:07:23 HOST xrdp-sesman[69631]: [WARN ] Window manager (pid 69633, display 11) exited quickly (1 secs). This could indicate a window manager config problem

Check you're not logged in on the machine console as the same user - this can't be done on system-based systems [FAQ].

If it's not that we might get some clues from the system log. sudo journalctl -S -2m gives you the system log for the last two minutes.

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

I'm pretty sure I did't logged in on the console, the server is running without a monitor.

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

Get a system log after a login attempt and we'll have a look at it.

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024
Sep 29 11:53:38 Host dbus-daemon[1237]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.337' (uid=0 pid=53615 comm="sudo journalctl -S -2m -f")
Sep 29 11:53:38 Host dbus-daemon[1237]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Sep 29 11:53:38 Host sudo[53615]:      user : TTY=pts/0 ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/journalctl -S -2m -f
Sep 29 11:53:38 Host sudo[53615]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)
Sep 29 11:53:54 Host xrdp[53613]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.2 port 52503
Sep 29 11:53:54 Host xrdp[53622]: [INFO ] Security protocol: configured [SSL], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] SSL_read: I/O error
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] libxrdp_force_read: header read error
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] Processing [ITU-T T.125] Connect-Initial failed
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] [MCS Connection Sequence] receive connection request failed
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
Sep 29 11:53:54 Host xrdp[53613]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.2 port 52504
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
Sep 29 11:53:54 Host xrdp[53623]: [INFO ] Security protocol: configured [SSL], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
Sep 29 11:53:54 Host xrdp[53622]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] Connected client computer name: userLAB-DESKTOP
Sep 29 11:53:55 Host xrdp[53623]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
Sep 29 11:53:55 Host xrdp[53623]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409]
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] TLS connection established from ::ffff:192.168.0.2 port 52504: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
Sep 29 11:53:55 Host xrdp[53623]: [WARN ] xrdp_caps_process_codecs: unknown codec id 5
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
Sep 29 11:53:55 Host xrdp[53623]: [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] connecting to sesman on 127.0.0.1:3350
Sep 29 11:53:55 Host xrdp-sesman[53610]: [INFO ] Socket 12: AF_INET6 connection received from ::1 port 53248
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_wm_log_msg: sesman connect ok
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] sesman connect ok
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] sending login info to session manager. Please wait...
Sep 29 11:53:55 Host dbus-daemon[1237]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.338' (uid=0 pid=53610 comm="/usr/bin/xrdp-sesman")
Sep 29 11:53:55 Host dbus-daemon[1237]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Sep 29 11:53:55 Host xrdp-sesman[53610]: [INFO ] Terminal Server Users group is disabled, allowing authentication
Sep 29 11:53:55 Host xrdp-sesman[53610]: [INFO ] ++ created session (access granted): username user, ip ::ffff:192.168.0.2:52504 - socket: 12
Sep 29 11:53:55 Host xrdp-sesman[53610]: [INFO ] starting Xorg session...
Sep 29 11:53:55 Host xrdp-sesman[53610]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Sep 29 11:53:55 Host xrdp-sesman[53610]: [INFO ] Starting session: session_pid 53626, display :11.0, width 1920, height 1080, bpp 24, client ip ::ffff:192.168.0.2:52504 - socket: 12, user name user
Sep 29 11:53:55 Host xrdp-sesman[53626]: [INFO ] [session start] (display 11): calling auth_start_session from pid 53626
Sep 29 11:53:55 Host xrdp-sesman[53610]: [ERROR] sesman_data_in: scp_process_msg failed
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] xrdp_wm_log_msg: login successful for user user on display 11
Sep 29 11:53:55 Host xrdp-sesman[53626]: pam_unix(xrdp-sesman:session): session opened for user user(uid=1000) by user(uid=0)
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] login successful for user user on display 11
Sep 29 11:53:55 Host xrdp-sesman[53610]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
Sep 29 11:53:55 Host systemd-logind[1241]: New session 6 of user user.
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] started connecting
Sep 29 11:53:55 Host xrdp[53623]: [INFO ] lib_mod_connect: connecting via UNIX socket
Sep 29 11:53:55 Host systemd[1]: Started Session 6 of User user.
Sep 29 11:53:55 Host xrdp-sesman[53629]: [INFO ] Starting X server on display 11: Xorg :11 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
Sep 29 11:53:55 Host kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400F80000).
Sep 29 11:53:56 Host xrdp-sesman[53628]: [INFO ] Found X server running at /tmp/.X11-unix/X11
Sep 29 11:53:56 Host xrdp-sesman[53626]: [INFO ] Found X server running at /tmp/.X11-unix/X11
Sep 29 11:53:56 Host xrdp-sesman[53628]: [INFO ] Found X server running at /tmp/.X11-unix/X11
Sep 29 11:53:56 Host xrdp-sesman[53626]: [INFO ] Session started successfully for user user on display 11
Sep 29 11:53:56 Host xrdp-sesman[53648]: [INFO ] Starting the xrdp channel server for display 11
Sep 29 11:53:56 Host xrdp-sesman[53628]: [INFO ] Starting the default window manager on display 11: /etc/xrdp/startwm.sh
Sep 29 11:53:56 Host xrdp-sesman[53626]: [INFO ] Session in progress on display 11, waiting until the window manager (pid 53628) exits to end the session
Sep 29 11:53:56 Host kernel: [drm] UVD and UVD ENC initialized successfully.
Sep 29 11:53:56 Host kernel: [drm] VCE initialized successfully.
Sep 29 11:53:56 Host kernel: amdgpu 0000:3b:00.0: [drm] Cannot find any crtc or sizes
Sep 29 11:53:56 Host xrdp[53623]: [INFO ] lib_mod_log_peer: xrdp_pid=53623 connected to X11rdp_pid=53629 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.0.2 client_port=52504
Sep 29 11:53:56 Host xrdp[53623]: [INFO ] connected ok
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] Socket 12: AF_UNIX connection received
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] sound_process_output_format:
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatNo       0
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatTag      WAVE_FORMAT_PCM
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nChannels       2
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nSamplesPerSec  44100
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nAvgBytesPerSec 176400
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nBlockAlign     4
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wBitsPerSample  16
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       cbSize          0
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] sound_process_output_format:
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatNo       1
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatTag      WAVE_FORMAT_PCM
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nChannels       2
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nSamplesPerSec  22050
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nAvgBytesPerSec 88200
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nBlockAlign     4
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wBitsPerSample  16
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       cbSize          0
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] sound_process_output_format:
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatNo       2
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatTag      WAVE_FORMAT_AAC
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nChannels       2
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nSamplesPerSec  44100
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nAvgBytesPerSec 12000
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nBlockAlign     4
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wBitsPerSample  16
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       cbSize          0
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] sound_process_output_format:
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatNo       3
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wFormatTag      WAVE_FORMAT_MPEGLAYER3
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nChannels       2
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nSamplesPerSec  44100
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nAvgBytesPerSec 176400
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       nBlockAlign     4
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       wBitsPerSample  0
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ]       cbSize          12
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] sound_process_training: round trip time 100
Sep 29 11:53:56 Host xrdp-chansrv[53648]: [INFO ] Detected remote smartcard 'SCARD'
Sep 29 11:53:56 Host systemd[13097]: gpg-agent.service: Consumed 2.338s CPU time.
Sep 29 11:53:56 Host systemd[13097]: Started GnuPG cryptographic agent and passphrase cache.
Sep 29 11:53:56 Host gpg-agent[53694]: gpg-agent (GnuPG) 2.2.41 starting in supervised mode.
Sep 29 11:53:56 Host gpg-agent[53694]: using fd 3 for ssh socket (/run/user/1000/gnupg/S.gpg-agent.ssh)
Sep 29 11:53:56 Host gpg-agent[53694]: using fd 4 for extra socket (/run/user/1000/gnupg/S.gpg-agent.extra)
Sep 29 11:53:56 Host gpg-agent[53694]: using fd 5 for std socket (/run/user/1000/gnupg/S.gpg-agent)
Sep 29 11:53:56 Host gpg-agent[53694]: using fd 6 for browser socket (/run/user/1000/gnupg/S.gpg-agent.browser)
Sep 29 11:53:56 Host gpg-agent[53694]: listening on: std=5 extra=4 browser=6 ssh=3
Sep 29 11:53:56 Host xrdp-sesman[53626]: [WARN ] Window manager (pid 53628, display 11) exited quickly (0 secs). This could indicate a window manager config problem
Sep 29 11:53:56 Host xrdp-sesman[53626]: [INFO ] Calling auth_stop_session and auth_end from pid 53626
Sep 29 11:53:56 Host xrdp-sesman[53626]: pam_unix(xrdp-sesman:session): session closed for user user
Sep 29 11:53:56 Host xrdp-sesman[53626]: [INFO ] Terminating X server (pid 53629) on display 11
Sep 29 11:53:56 Host xrdp-sesman[53626]: [INFO ] Terminating the xrdp channel server (pid 53648) on display 11
Sep 29 11:53:56 Host systemd[1]: home-user-thinclient_drives.mount: Deactivated successfully.
Sep 29 11:53:57 Host xrdp-sesman[53626]: [INFO ] X server on display 11 (pid 53629) returned exit code 0 and signal number 0
Sep 29 11:53:57 Host xrdp-sesman[53626]: [INFO ] xrdp channel server for display 11 (pid 53648) exit code 0 and signal number 0
Sep 29 11:53:57 Host xrdp-sesman[53626]: [INFO ] cleanup_sockets:
Sep 29 11:53:57 Host xrdp-sesman[53610]: [INFO ] Process 53626 has exited
Sep 29 11:53:57 Host systemd[1]: session-6.scope: Deactivated successfully.
Sep 29 11:53:57 Host xrdp-sesman[53610]: [INFO ] ++ terminated session:  username user, display :11.0, session_pid 53626, ip ::ffff:192.168.0.2:52504 - socket: 12
Sep 29 11:53:57 Host systemd-logind[1241]: Session 6 logged out. Waiting for processes to exit.
Sep 29 11:53:57 Host systemd-logind[1241]: Removed session 6.

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

Hmmm. Not a lot very useful there.

A couple of questions for you:-

  1. Is there anything significant in ~user/.xsession-errors ?

  2. What do you get for this command? There's a space after DISPLAY= :-

    DISPLAY= sh -x /etc/xrdp/startwm.sh
    

Thanks.

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024
  1. I didn't see that file
  2. Here it is
 + wm_start
+ '[' -r /etc/locale.conf ']'
+ . /etc/locale.conf
++ LANGUAGE=en_US.UTF-8
++ LANG=en_US.UTF-8
+ export LANG LANGUAGE
+ '[' -r /home/user/.xinitrc ']'
+ pre_start
+ '[' -r /etc/profile ']'
+ . /etc/profile
++ append_path /usr/local/sbin
++ case ":$PATH:" in
++ append_path /usr/local/bin
++ case ":$PATH:" in
++ append_path /usr/bin
++ case ":$PATH:" in
++ export PATH
++ test -d /etc/profile.d/
++ for profile in /etc/profile.d/*.sh
++ test -r /etc/profile.d/debuginfod.sh
++ . /etc/profile.d/debuginfod.sh
+++ '[' -z 'https://debuginfod.archlinux.org ' ']'
++ for profile in /etc/profile.d/*.sh
++ test -r /etc/profile.d/freetype2.sh
++ . /etc/profile.d/freetype2.sh
++ for profile in /etc/profile.d/*.sh
++ test -r /etc/profile.d/gawk.sh
++ . /etc/profile.d/gawk.sh
++ for profile in /etc/profile.d/*.sh
++ test -r /etc/profile.d/locale.sh
++ . /etc/profile.d/locale.sh
+++ '[' -z en_US.UTF-8 ']'
+++ LANG=en_US.UTF-8
+++ export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
++ for profile in /etc/profile.d/*.sh
++ test -r /etc/profile.d/perlbin.sh
++ . /etc/profile.d/perlbin.sh
+++ '[' -d /usr/bin/site_perl ']'
+++ append_path /usr/bin/site_perl
+++ case ":$PATH:" in
+++ '[' -d /usr/bin/vendor_perl ']'
+++ append_path /usr/bin/vendor_perl
+++ case ":$PATH:" in
+++ '[' -d /usr/bin/core_perl ']'
+++ append_path /usr/bin/core_perl
+++ case ":$PATH:" in
+++ export PATH
++ for profile in /etc/profile.d/*.sh
++ test -r /etc/profile.d/vte.sh
++ . /etc/profile.d/vte.sh
+++ '[' -n '5.1.16(1)-release' -o -n '' ']'
+++ [[ hxB == *i* ]]
+++ return 0
++ unset profile
++ unset -f append_path
++ test /usr/bin/sh
++ test ''
++ unset TERMCAP
++ unset MANPATH
+ '[' -r /home/user/.bash_profile ']'
+ . /home/user/.bash_profile
++ [[ -f /home/user/.bashrc ]]
++ . /home/user/.bashrc
+++ [[ hxB != *i* ]]
+++ return
+ return 0
+ . /home/user/.xinitrc
++ startxfce4
/usr/bin/startxfce4: Starting X server


X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
Current Operating System: Linux Host 6.5.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 22:55:13 +0000 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=cc89853c-4e95-48f0-afaf-e450edd222d4 rw loglevel=3 nowatchdog

Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/user/.local/share/xorg/Xorg.0.log", Time: Fri Sep 29 18:56:39 2023
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/user/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
+ post_start
+ '[' -r /home/user/.bash_logout ']'
+ . /home/user/.bash_logout
+ return 0
+ exit 0

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

That all looks OK too - the X server warning is irrelevant.

I think we're going to have to trace this all the way down into your session startup scripts.

What's in /home/user/.xinitrc ?

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

startxfce4
I also tried xfce4-session

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

Can you replace .xinitrc with this?

#!/bin/sh
d=${DISPLAY#*:}
d=${d%.*}
exec >~/startwm.$d.log 2>&1
exec sh -x $(which startxfce4)

That should give you a log file in ~/startwm.10.log which might have more info.

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024
+ test x '!=' x
+ test x = x
+ BASEDIR=/home/user/.config/xfce4/
+ test x = x
+ test x/usr/share = x/usr/local/share -o x/usr/share = x/usr/share
+ XDG_DATA_DIRS=/usr/local/share:/usr/share
+ export XDG_DATA_DIRS
+ test x = x
+ test x/etc = x/etc
+ XDG_CONFIG_DIRS=/etc/xdg
+ export XDG_CONFIG_DIRS
+ test x:11.0 = x
+ echo '/sbin/startxfce4: X server already running on display :11.0'
/sbin/startxfce4: X server already running on display :11.0
+ prog=/bin/sh
+ '[' -f /home/user/.xserverrc ']'
+ '[' -f /etc/X11/xinit/xserverrc ']'
+ test '!' x = x
+ '[' -f /home/user/.config/xfce4//xinitrc ']'
+ '[' -f /home/user/.xfce4/xinitrc ']'
+ exec /bin/sh /etc/xdg/xfce4/xinitrc
Environment variable $XAUTHORITY not set, ignoring.

(process:93099): Gtk-WARNING **: 20:46:35.771: Locale not supported by C library.
        Using the fallback 'C' locale.
gpg-agent: a gpg-agent is already running - not starting a new one

(process:93170): Gtk-WARNING **: 20:46:36.057: Locale not supported by C library.
        Using the fallback 'C' locale.

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

Is the same thing happening? Is it exiting immediately?

That all looks OK, (apart from the locale messages). If it's still not OK, the session is exiting without printing any errors which isn't very helpful. The only thing I can think which would cause that is a duff desktop configuration. Set up another empty user and see how that behaves.

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

well I have a question
why xrdp doesn't try to reconnect the previous session, instead, it tries to create a new x session
otherwise how to explain the .xorgxrdp.11.log file that appears after restarting?

If what I'm saying is right, that explains why I can't connect again, because one user cannot logged in twice just as you mentioned in your comments

I apologize if I said something wrong, because I'm just a poor, weak and helpless arch linux newbie

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

We've all been newbies at one time or another. Most of us are still newbies at something! Don't worry about saying anything wrong in this forum.

There are a few reasons why xrdp might try to start a new session:-

  1. xrdp-sesman has been restarted since the session was started. If you restart xrdp-sesman it forgets about all currently running sessions. We're working on a solution for this.
  2. When a reconnection is made, sesman looks at the setting of Policy= in /etc/xrdp/sesman.ini to decide if the new session is close enough to an old session to connect to it. Normally this value should be set to Default.

Is that helpful?

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

That's very helpful to me. Thanks for your patience and help.
I'm still a bit confused why changing to port=/tmp/.xrdp/xrdp_display_10 and then xrdp is able to reconnect session...

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

I don't understand that either. Can you remember where you got that from?

from xorgxrdp.

gili-gili avatar gili-gili commented on June 16, 2024

I don't understand that either. Can you remember where you got that from?

just in xrdp.ini

; for debugging xrdp, in section xrdp1, change port=-1 to this:
#port=/tmp/.xrdp/xrdp_display_10

from xorgxrdp.

matt335672 avatar matt335672 commented on June 16, 2024

Thanks - I had no idea that was there. Great response!

The line was added as part of commit neutrinolabs/xrdp@78d4e19.

I think with that line in place (depending on a few other things) you will connect directly to an existing session on a machine without going through sesman. That might be a handy way to get to a session that sesman has forgotten about if sesman has been restarted. That's consistent with what you've said above too.

from xorgxrdp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.