You are not logged in.
I just updated xrdp today and afterwards i was not able to rdp into my machine again. It showed the xrdp login screen but after logging in immediatly closes the rdp session.
from the logs i have gathered that my window manager cannot find display 10
does someone have an idea what the issue could be?
Software being used:
Awesome wm 4.3
Xorg 1.20.30
xrdp 0.9.17 before 0.9.16
I have tried downgrading xrdp to the old version (0.9.16) with no success
~/.xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
export XDG_XSESSION_TYPE=x11
export XDG_BACKEND=x11
exec awesome > ~/.xsession.log 2>&1# /etc/xrdp/startwm.sh
#!/usr/bin/env bash
pre_start()
{
if [ -r /etc/profile ]; then
. /etc/profile
fi
if [ -r ~/.bash_profile ]; then
. ~/.bash_profile
else
if [ -r ~/.bash_login ]; then
. ~/.bash_login
else
if [ -r ~/.profile ]; then
. ~/.profile
fi
fi
fi
return 0
}
post_start()
{
if [ -r ~/.bash_logout ]; then
. ~/.bash_logout
fi
return 0
}
#start the window manager
wm_start()
{
if [ -r /etc/locale.conf ]; then
. /etc/locale.conf
export LANG LANGUAGE
fi
# arch user
if [ -r ~/.xinitrc ]; then
pre_start
. ~/.xinitrc
post_start
exit 0
fi
# arch
if [ -r /etc/X11/xinit/xinitrc ]; then
pre_start
. /etc/X11/xinit/xinitrc
post_start
exit 0
fi
pre_start
xterm
post_start
}
wm_start
exit 1Relevant journalctl output
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [INFO ] Terminal Server Users group is disabled, allowing authentication
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [INFO ] ++ created session (access granted): username yahatix, ip ::ffff:192.168.178.20:65173 - socket: 12
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [INFO ] starting Xorg session...
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [INFO ] Starting session: session_pid 52605, display :10.0, width 5760, height 2160, bpp 24, client ip ::ffff:192.168.178.20:65173 - socket: 12, user name yahatix
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] [session start] (display 10): calling auth_start_session from pid 52605
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [ERROR] sesman_data_in: scp_process_msg failed
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] xrdp_wm_log_msg: login successful for display 10
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] login successful for display 10
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: pam_unix(xrdp-sesman:session): session opened for user yahatix(uid=1000) by (uid=0)
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: pam_systemd(xrdp-sesman:session): Failed to create session: No child processes
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: pam_env(xrdp-sesman:session): deprecated reading of user environment enabled
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] started connecting
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] lib_mod_connect: connecting via UNIX socket
Sep 27 12:49:36 OCM114 xrdp-sesman[52609]: [INFO ] Starting X server on display 10: /usr/lib/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] lib_mod_log_peer: xrdp_pid=52602 connected to X11rdp_pid=52609 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.178.20 client_port=65173
Sep 27 12:49:36 OCM114 xrdp[52602]: [INFO ] connected ok
Sep 27 12:49:36 OCM114 xrdp-sesman[52608]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Sep 27 12:49:36 OCM114 xrdp-sesman[52608]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] Found X server running at /tmp/.X11-unix/X10
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] Session started successfully for user yahatix on display 10
Sep 27 12:49:36 OCM114 xrdp-sesman[52613]: [INFO ] Starting the xrdp channel server for display 10
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] Session in progress on display 10, waiting until the window manager (pid 52608) exits to end the session
Sep 27 12:49:36 OCM114 xrdp-sesman[52608]: [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
Sep 27 12:49:36 OCM114 xrdp-chansrv[52613]: [INFO ] Socket 12: AF_UNIX connection received
Sep 27 12:49:36 OCM114 systemd[1]: home-yahatix-thinclient_drives.mount: Deactivated successfully.
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [WARN ] Window manager (pid 52608, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [WARN ] Window manager (pid 52608, display 10) exited quickly (0 secs). This could indicate a window manager config problem
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] Calling auth_stop_session and auth_end from pid 52605
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: pam_unix(xrdp-sesman:session): session closed for user yahatix
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] Terminating X server (pid 52609) on display 10
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] Terminating the xrdp channel server (pid 52613) on display 10
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] X server on display 10 (pid 52609) returned exit code 1 and signal number 0
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] xrdp channel server for display 10 (pid 52613) exit code 0 and signal number 0
Sep 27 12:49:36 OCM114 xrdp-sesman[52605]: [INFO ] cleanup_sockets:
Sep 27 12:49:36 OCM114 xrdp-sesman[52590]: [INFO ] ++ terminated session: username yahatix, display :10.0, session_pid 52605, ip ::ffff:192.168.178.20:65173 - socket: 12Last edited by yahatix (2021-09-27 14:01:58)
Offline
Solved by manually installing xrdp version 0.9.16 from git
Seams to be an issue with the new version
Offline