Closed corax205 closed 3 years ago
Here it is.
[20200405-15:54:31] [INFO ] /usr/lib/xorg-server/Xorg :20 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20200405-15:54:31] [CORE ] error starting X server - user thorsten - pid 1893
[20200405-15:54:31] [DEBUG] errno: 2, description: No such file or directory
[20200405-15:54:31] [DEBUG] execve parameter list size: 12
[20200405-15:54:31] [DEBUG] argv[0] = /usr/lib/xorg-server/Xorg
[20200405-15:54:31] [DEBUG] argv[1] = :20
[20200405-15:54:31] [DEBUG] argv[2] = -auth
[20200405-15:54:31] [DEBUG] argv[3] = .Xauthority
[20200405-15:54:31] [DEBUG] argv[4] = -config
[20200405-15:54:31] [DEBUG] argv[5] = xrdp/xorg.conf
[20200405-15:54:31] [DEBUG] argv[6] = -noreset
[20200405-15:54:31] [DEBUG] argv[7] = -nolisten
[20200405-15:54:31] [DEBUG] argv[8] = tcp
[20200405-15:54:31] [DEBUG] argv[9] = -logfile
[20200405-15:54:31] [DEBUG] argv[10] = .xorgxrdp.%s.log
[20200405-15:54:31] [DEBUG] argv[11] = (null)
[20200405-15:54:41] [ERROR] X server for display 20 startup timeout
Many thanks, that was one step in the right direction. Now sesmanlog tells me there is another Xserver active.
sesman.log
[20200421-14:35:31] [INFO ] starting Xorg session...
[20200421-14:35:31] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5920)
[20200421-14:35:31] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6020)
[20200421-14:35:31] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6220)
[20200421-14:35:31] [INFO ] calling auth_start_session from pid 21683
[20200421-14:35:31] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200421-14:35:31] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20200421-14:35:31] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200421-14:35:31] [INFO ] /usr/lib/Xorg :20 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20200421-14:35:41] [ERROR] X server for display 20 startup timeout
[20200421-14:35:41] [CORE ] waiting for window manager (pid 21684) to exit
[20200421-14:35:41] [ERROR] X server for display 20 startup timeout
[20200421-14:35:41] [ERROR] another Xserver might already be active on display 20 - see log
[20200421-14:35:41] [DEBUG] aborting connection...
[20200421-14:35:41] [CORE ] window manager (pid 21684) did exit, cleaning up session
[20200421-14:35:41] [INFO ] calling auth_stop_session and auth_end from pid 21683
[20200421-14:35:41] [DEBUG] cleanup_sockets:
[20200421-14:35:41] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_20
[20200421-14:35:41] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_20
[20200421-14:35:41] [INFO ] ++ terminated session: username thorsten, display :20.0, session_pid 21683, ip 192.168.1.40:55770 - socket: 12
xrdp.log
[20200421-14:34:43] [INFO ] xrdp_listen_pp done
[20200421-14:35:31] [INFO ] Socket 12: AF_INET connection received from 192.168.1.40 port 55770
[20200421-14:35:31] [DEBUG] Closed socket 12 (AF_INET 192.168.1.30:3389)
[20200421-14:35:31] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20200421-14:35:31] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20200421-14:35:31] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20200421-14:35:31] [DEBUG] TLSv1.3 enabled
[20200421-14:35:31] [DEBUG] TLSv1.2 enabled
[20200421-14:35:31] [DEBUG] Security layer: requested 3, selected 1
[20200421-14:35:31] [INFO ] connected client computer name: thorsten-pc
[20200421-14:35:31] [INFO ] adding channel item name cliprdr chan_id 1004 flags 0x0000a0c0
[20200421-14:35:31] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0x000000c0
[20200421-14:35:31] [INFO ] adding channel item name snddbg chan_id 1006 flags 0x000000c0
[20200421-14:35:31] [INFO ] adding channel item name rdpdr chan_id 1007 flags 0x00008080
[20200421-14:35:31] [INFO ] adding channel item name drdynvc chan_id 1008 flags 0x000000c0
[20200421-14:35:31] [INFO ] TLS connection established from 192.168.1.40 port 55770: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20200421-14:35:31] [DEBUG] xrdp_000054b2_wm_login_mode_event_00000001
[20200421-14:35:31] [INFO ] Loading keymap file /etc/xrdp/km-00000407.ini
[20200421-14:35:31] [WARN ] local keymap file for 0x00000407 found and doesn't match built in keymap, using local keymap file
[20200421-14:35:31] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20200421-14:35:31] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20200421-14:35:31] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20200421-14:35:31] [DEBUG] return value from xrdp_mm_connect 0
[20200421-14:35:31] [INFO ] xrdp_wm_log_msg: login successful for display 20
[20200421-14:35:31] [DEBUG] xrdp_wm_log_msg: started connecting
[20200421-14:35:35] [DEBUG] Closed socket 19 (AF_UNIX)
Let's see out put of
/usr/lib/Xorg :20 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
via SSH. Try some display number, :21
, :22
...
Same problem with different display numbers. Login as root fails too. xorgxrdp is present.
/usr/lib/Xorg :21 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
Build Operating System: Linux Manjaro Linux
Current Operating System: Linux Manjaro-Wohnzimmer 4.19.116-1-MANJARO #1 SMP Fri Apr 17 18:13:53 UTC 2020 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19-x86_64 root=UUID=005c9c87-29c8-4934-a4d8-800a8f272234 rw quiet resume=UUID=36328906-fd6d-45b3-babd-e888a502a72a
Build Date: 30 March 2020 06:33:12AM
Current version of pixman: 0.38.4
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: ".xorgxrdp.21.log", Time: Wed Apr 22 17:51:16 2020
(++) Using config file: "/etc/X11/xrdp/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xorgxrdpSetup:
xrdpdevSetup:
rdpIdentify:
rdpDriverFunc: op 10
(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 ".xorgxrdp.21.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
cat .xorgxrdp.21.log
[ 1061.586] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 1061.587]
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[ 1061.587] Build Operating System: Linux Manjaro Linux
[ 1061.587] Current Operating System: Linux Manjaro-Wohnzimmer 4.19.116-1-MANJARO #1 SMP Fri Apr 17 18:13:53 UTC 2020 x86_64
[ 1061.587] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19-x86_64 root=UUID=005c9c87-29c8-4934-a4d8-800a8f272234 rw quiet resume=UUID=36328906-fd6d-45b3-babd-e888a502a72a
[ 1061.587] Build Date: 30 March 2020 06:33:12AM
[ 1061.587]
[ 1061.587] Current version of pixman: 0.38.4
[ 1061.587] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1061.587] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 1061.587] (++) Log file: ".xorgxrdp.21.log", Time: Wed Apr 22 17:51:16 2020
[ 1061.587] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[ 1061.587] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 1061.587] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 1061.587] (==) ServerLayout "Layout0"
[ 1061.587] (**) |-->Screen "Screen0" (0)
[ 1061.587] (**) | |-->Monitor "Monitor0"
[ 1061.588] (**) | |-->Device "Device0"
[ 1061.588] (**) | |-->GPUDevice "Video Card (xrdpdev)"
[ 1061.588] (**) |-->Input Device "Keyboard0"
[ 1061.588] (**) |-->Input Device "Mouse0"
[ 1061.588] (**) Option "DontVTSwitch" "on"
[ 1061.588] (**) Option "AutoAddDevices" "off"
[ 1061.588] (**) Not automatically adding devices
[ 1061.588] (==) Automatically enabling devices
[ 1061.588] (==) Automatically adding GPU devices
[ 1061.588] (==) Automatically binding GPU devices
[ 1061.588] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 1061.588] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 1061.588] Entry deleted from font path.
[ 1061.588] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 1061.588] Entry deleted from font path.
[ 1061.588] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[ 1061.588] Entry deleted from font path.
[ 1061.588] (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[ 1061.588] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
[ 1061.588] Entry deleted from font path.
[ 1061.588] (Run 'mkfontdir' on "/usr/share/fonts/75dpi").
[ 1061.588] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF
[ 1061.588] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 1061.588] (**) Extension "Composite" is enabled
[ 1061.588] (II) Module ABI versions:
[ 1061.588] X.Org ANSI C Emulation: 0.4
[ 1061.588] X.Org Video Driver: 24.1
[ 1061.588] X.Org XInput driver : 24.1
[ 1061.588] X.Org Server Extension : 10.0
[ 1061.590] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33
[ 1061.591] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 1061.592] (EE) systemd-logind: failed to take device /dev/dri/card0: Operation not permitted
[ 1061.592] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/xorg/modules"
[ 1061.592] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[ 1061.593] (--) PCI:*(1@0:0:0) 10de:1c82:10de:11bf rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[ 1061.593] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 1061.593] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 1061.593] (II) LoadModule: "dbe"
[ 1061.593] (II) Module "dbe" already built-in
[ 1061.593] (II) LoadModule: "ddc"
[ 1061.593] (II) Module "ddc" already built-in
[ 1061.593] (II) LoadModule: "extmod"
[ 1061.593] (II) Module "extmod" already built-in
[ 1061.593] (II) LoadModule: "glx"
[ 1061.593] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[ 1061.597] (II) Module glx: vendor="NVIDIA Corporation"
[ 1061.597] compiled for 4.0.2, module version = 1.0.0
[ 1061.597] Module class: X.Org Server Extension
[ 1061.597] (II) NVIDIA GLX Module 390.132 Fri Nov 1 04:00:46 PDT 2019
[ 1061.597] (II) LoadModule: "int10"
[ 1061.597] (II) Loading /usr/lib/xorg/modules/libint10.so
[ 1061.597] (II) Module int10: vendor="X.Org Foundation"
[ 1061.597] compiled for 1.20.8, module version = 1.0.0
[ 1061.597] ABI class: X.Org Video Driver, version 24.1
[ 1061.597] (II) LoadModule: "record"
[ 1061.597] (II) Module "record" already built-in
[ 1061.597] (II) LoadModule: "vbe"
[ 1061.597] (II) Loading /usr/lib/xorg/modules/libvbe.so
[ 1061.597] (II) Module vbe: vendor="X.Org Foundation"
[ 1061.597] compiled for 1.20.8, module version = 1.1.0
[ 1061.597] ABI class: X.Org Video Driver, version 24.1
[ 1061.597] (II) LoadModule: "xorgxrdp"
[ 1061.597] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[ 1061.597] (II) Module XORGXRDP: vendor="X.Org Foundation"
[ 1061.597] compiled for 1.20.8, module version = 0.2.13
[ 1061.597] ABI class: X.Org Video Driver, version 24.1
[ 1061.597] xorgxrdpSetup:
[ 1061.597] (II) LoadModule: "fb"
[ 1061.597] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 1061.598] (II) Module fb: vendor="X.Org Foundation"
[ 1061.598] compiled for 1.20.8, module version = 1.0.0
[ 1061.598] ABI class: X.Org ANSI C Emulation, version 0.4
[ 1061.598] (II) LoadModule: "nvidia"
[ 1061.598] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 1061.598] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 1061.598] compiled for 4.0.2, module version = 1.0.0
[ 1061.598] Module class: X.Org Video Driver
[ 1061.598] (II) LoadModule: "xrdpdev"
[ 1061.598] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[ 1061.598] (II) Module XRDPDEV: vendor="X.Org Foundation"
[ 1061.598] compiled for 1.20.8, module version = 0.2.13
[ 1061.598] ABI class: X.Org Video Driver, version 24.1
[ 1061.598] xrdpdevSetup:
[ 1061.598] (II) LoadModule: "kbd"
[ 1061.598] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[ 1061.598] (II) Module kbd: vendor="X.Org Foundation"
[ 1061.598] compiled for 1.20.3, module version = 1.9.0
[ 1061.598] Module class: X.Org XInput Driver
[ 1061.598] ABI class: X.Org XInput driver, version 24.1
[ 1061.598] (II) LoadModule: "mouse"
[ 1061.598] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[ 1061.598] (II) Module mouse: vendor="X.Org Foundation"
[ 1061.599] compiled for 1.20.0, module version = 1.9.3
[ 1061.599] Module class: X.Org XInput Driver
[ 1061.599] ABI class: X.Org XInput driver, version 24.1
[ 1061.599] (II) NVIDIA dlloader X Driver 390.132 Fri Nov 1 03:36:28 PDT 2019
[ 1061.599] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 1061.599] rdpIdentify:
[ 1061.599] (II) XRDPDEV: driver for xrdp: XRDPDEV
[ 1061.599] rdpDriverFunc: op 10
[ 1061.599] (EE)
Fatal server error:
[ 1061.599] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
[ 1061.599] (EE)
[ 1061.599] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 1061.599] (EE) Please also check the log file at ".xorgxrdp.21.log" for additional information.
[ 1061.599] (EE)
[ 1061.599] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[ 1061.599] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[ 1061.599] (EE) Server terminated with error (1). Closing log file.
Thanks, Xorg doesn't start for some reasons.
[ 1061.599] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
I ever see this however I haven't figure out how to solve it.
Probably #1550 is the similar issue.
try this once
~/.xinitrc
#DEFAULT_SESSION=startkde
DEFAULT_SESSION=/usr/lib/sddm/sddm-helper startplasma-x11
this is manjaro KDE only
Still the same.
Because
#DEFAULT_SESSION=startkde
DEFAULT_SESSION=/usr/lib/sddm/sddm-helper startplasma-x11
doesn't affect the following error.
[ 1061.599] (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
@woods987 's issue and the original @corax205 's issue are different.
@corax205 I had the same "(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)" issue on Manjaro/KDE+plasma and nearly went mad trying to figure this out.
Problem for me was Xorg unable to figure out the correct Layout section from xorg.conf, though the man page for Xorg says:
-layout layout-name Use the xorg.conf(5) file Layout section called layout-name. By default the first Layout section is used.
So I added the "-layout X11 Server" param to Xorg section in sesman.ini (you can verify the layout name from xorg.conf to be safe):
[Xorg]
; Specify the path of non-suid Xorg executable. It might differ depending
; on your distribution and version. The typical path is shown as follows:
;
; Fedora 26 or later : param=/usr/libexec/Xorg
; Debian 9 or later : param=/usr/lib/xorg/Xorg
; Ubuntu 16.04 or later : param=/usr/lib/xorg/Xorg
; Arch Linux : param=/usr/lib/xorg-server/Xorg
; CentOS 7 : param=/usr/bin/Xorg or param=Xorg
;
param=Xorg
; Leave the rest paramaters as-is unless you understand what will happen.
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log
param=-layout
param=X11 Server
And after restart of xrdp and xrdp-sesman I was able to get the remote desktop connection working.
EDIT: Also had to add the following lines in startwm.sh in the wm_start() function to get a functional plasma desktop:
# arch user
if [ -r ~/.xinitrc ]; then
eval $(dbus-launch --sh-syntax)
startplasma-x11
#. ~/.xinitrc
exit 0
fi
@sanvyruz, I have the same issue but adding -layout X11 Server
in sesman.ini
as you described did not help. Could you describe a bit more how you get X11 Server
name?
@sanvyruz, I had the same problem and your solution worked, thanks!
@Shatur95 You can get the layout name from Identifier of ServerLayout in the file xorg.conf under /etc/X11/xrdp. Mine was as follows:
Section "ServerLayout"
Identifier "X11 Server"
Screen "Screen (xrdpdev)"
InputDevice "xrdpMouse" "CorePointer"
InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection
But since this is a config brought in by xrdp, I expect the layout name will be same across installations.
You might want to check /etc/X11/Xwrapper.config (if not present probably create it). I have the following content:
allowed_users=anybody
Without that line, only console users can start Xorg by default.
EDIT: Saw you mention in another issue stating you already have this xwrapper config, but leaving this for reference of others.
Thank you a lot, this solved my issue!
@corax205 I had the same "(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)" issue on Manjaro/KDE+plasma and nearly went mad trying to figure this out.
Problem for me was Xorg unable to figure out the correct Layout section from xorg.conf, though the man page for Xorg says:
-layout layout-name Use the xorg.conf(5) file Layout section called layout-name. By default the first Layout section is used.
So I added the "-layout X11 Server" param to Xorg section in sesman.ini (you can verify the layout name from xorg.conf to be safe):
[Xorg] ; Specify the path of non-suid Xorg executable. It might differ depending ; on your distribution and version. The typical path is shown as follows: ; ; Fedora 26 or later : param=/usr/libexec/Xorg ; Debian 9 or later : param=/usr/lib/xorg/Xorg ; Ubuntu 16.04 or later : param=/usr/lib/xorg/Xorg ; Arch Linux : param=/usr/lib/xorg-server/Xorg ; CentOS 7 : param=/usr/bin/Xorg or param=Xorg ; param=Xorg ; Leave the rest paramaters as-is unless you understand what will happen. param=-config param=xrdp/xorg.conf param=-noreset param=-nolisten param=tcp param=-logfile param=.xorgxrdp.%s.log param=-layout param=X11 Server
And after restart of xrdp and xrdp-sesman I was able to get the remote desktop connection working.
EDIT: Also had to add the following lines in startwm.sh in the wm_start() function to get a functional plasma desktop:
# arch user if [ -r ~/.xinitrc ]; then eval $(dbus-launch --sh-syntax) startplasma-x11 #. ~/.xinitrc exit 0 fi
Mark this solution, for those not mentioned on manjaro nor archlinux wiki pages. param=-layout param=X11 Server
@basncy - thanks for commenting.
That particular issue was also discussed in #1784, and was (I believe) fixed by a patch to xorgxrdp (neutrinolabs/xorgxrdp#181) which shipped in in v0.2.16 of xorgxrdp. If you're running that version or later you might want to check /etc/X11/xrdp/xorg.conf
is up-to-date.
I'm closing this issue now, as I believe it to be a duplicate of #1784
Hi, I try to connect to a local xrdp server running Majaro, KDE. All what I get is the xorg login screen, after login I only see a black box.
Here are the log and config files:
xrdp.log
xrdp-sesman.log
sesman.ini
xrdp.ini
startwm.sh
I postet this in the Manjro forums before 2 weeks but get no response. I hope you can help me find out whats wrong.
Regads