I've been dealing with this all day, I haven't found a fix. so i am here any help would be cool

Fresh install of kali

"No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2024.3
Codename: kali-rolling"

xrdp.log
[20241014-16:48:35] [INFO ] address [0.0.0.0] port [3390] mode 1
[20241014-16:48:35] [INFO ] listening to port 3390 on 0.0.0.0
[20241014-16:48:35] [INFO ] xrdp_listen_pp done
[20241014-16:48:37] [INFO ] starting xrdp with pid 1839
[20241014-16:48:37] [INFO ] address [0.0.0.0] port [3390] mode 1
[20241014-16:48:37] [INFO ] listening to port 3390 on 0.0.0.0
[20241014-16:48:37] [INFO ] xrdp_listen_pp done
[20241014-16:49:21] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.163 port 35558
[20241014-16:49:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20241014-16:49:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20241014-16:49:21] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20241014-16:49:21] [WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem]
[20241014-16:49:21] [INFO ] Security protocol: configured [RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [RDP]
[20241014-16:49:21] [ERROR] libxrdp_force_read: header read error
[20241014-16:49:21] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[20241014-16:49:21] [ERROR] [MCS Connection Sequence] receive connection request failed
[20241014-16:49:21] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[20241014-16:49:21] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20241014-16:49:21] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20241014-16:49:21] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.163 port 35559
[20241014-16:49:21] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20241014-16:49:21] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[20241014-16:49:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20241014-16:49:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20241014-16:49:21] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20241014-16:49:21] [WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem]
[20241014-16:49:21] [INFO ] Security protocol: configured [RDP], requested [RDP], selected [RDP]
[20241014-16:49:21] [INFO ] Connected client computer name: MAINPC
[20241014-16:49:21] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20241014-16:49:21] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20241014-16:49:21] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409]
[20241014-16:49:21] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20241014-16:49:21] [INFO ] Non-TLS connection established from ::ffff:192.168.0.163 port 35559: with security level : high
[20241014-16:49:21] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20241014-16:49:21] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 5242880 MB cache entries 100
[20241014-16:49:21] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20241014-16:49:21] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
[20241014-16:49:21] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20241014-16:49:21] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20241014-16:49:26] [INFO ] connecting to sesman on 127.0.0.1:3350
[20241014-16:49:26] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20241014-16:49:26] [INFO ] sesman connect ok
[20241014-16:49:26] [INFO ] sending login info to session manager. Please wait...
[20241014-16:49:26] [INFO ] xrdp_wm_log_msg: login successful for user rag on display 10
[20241014-16:49:26] [INFO ] login successful for user rag on display 10
[20241014-16:49:26] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20241014-16:49:26] [INFO ] started connecting
[20241014-16:49:26] [INFO ] lib_mod_connect: connecting via UNIX socket
[20241014-16:49:27] [INFO ] lib_mod_log_peer: xrdp_pid=1882 connected to X11rdp_pid=1885 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.0.163 client_port=35559
[20241014-16:49:27] [INFO ] connected ok


xrdp-sesman.log
[20241014-16:48:35] [INFO ] starting xrdp-sesman with pid 1827
[20241014-16:49:26] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 38694
[20241014-16:49:26] [INFO ] Terminal Server Users group is disabled, allowing authentication
[20241014-16:49:26] [INFO ] ++ created session (access granted): username rag, ip ::ffff:192.168.0.163:35559 - socket: 12
[20241014-16:49:26] [INFO ] starting Xorg session...
[20241014-16:49:26] [INFO ] Starting session: session_pid 1883, display :10.0, width 2560, height 1440, bpp 24, client ip ::ffff:192.168.0.163:35559 - socket: 12, user name rag
[20241014-16:49:26] [INFO ] [session start] (display 10): calling auth_start_session from pid 1883
[20241014-16:49:26] [ERROR] sesman_data_in: scp_process_msg failed
[20241014-16:49:26] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20241014-16:49:26] [INFO ] Starting X server on display 10: /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20241014-16:49:26] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20241014-16:49:26] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20241014-16:49:26] [INFO ] Session started successfully for user rag on display 10
[20241014-16:49:26] [INFO ] Session in progress on display 10, waiting until the window manager (pid 1884) exits to end the session
[20241014-16:49:26] [INFO ] Starting the xrdp channel server for display 10
[20241014-16:49:26] [INFO ] Found X server running at /tmp/.X11-unix/X10
[20241014-16:49:26] [INFO ] Starting the default window manager on display 10: /etc/xrdp/startwm.sh
[20241014-16:49:27] [WARN ] Window manager (pid 1884, display 10) exited with non-zero exit code 1 and signal 0. This could indicate a window manager config problem
[20241014-16:49:27] [WARN ] Window manager (pid 1884, display 10) exited quickly (1 secs). This could indicate a window manager config problem
[20241014-16:49:27] [INFO ] Calling auth_stop_session and auth_end from pid 1883
[20241014-16:49:27] [INFO ] Terminating X server (pid 1885) on display 10
[20241014-16:49:27] [INFO ] Terminating the xrdp channel server (pid 1888) on display 10
[20241014-16:49:27] [INFO ] X server on display 10 (pid 1885) returned exit code 1 and signal number 0
[20241014-16:49:27] [INFO ] xrdp channel server for display 10 (pid 1888) exit code 0 and signal number 0
[20241014-16:49:27] [INFO ] cleanup_sockets:
[20241014-16:49:27] [INFO ] Process 1883 has exited
[20241014-16:49:27] [INFO ] ++ terminated session: username rag, display :10.0, session_pid 1883, ip ::ffff:192.168.0.163:35559 - socket: