Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

xRDP to Debian 11 - "Something went wrong"

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
shaman123
Posts: 5
Joined: 2021-09-21 07:27

xRDP to Debian 11 - "Something went wrong"

#1 Post by shaman123 »

Hello,

I have just installed Debian 11 - first time user. Attempting to build a headless server, run ZoneMinder and use Windows RDP to remote control the desktop environment. Installed xRDP server and Windows RDP seems to connect, I can enter credentials, then error: "Oh no something has gone wrong. A problem has occurred and can't recover".

In my research, Im sure I read that Gnome (default desktop environment for Debian I think) has a problem with xRDP, so i installed Xfce desktop and I get the same issue. Not sure where to go next. Any ideas?

shaman123
Posts: 5
Joined: 2021-09-21 07:27

Re: xRDP to Debian 11 - "Something went wrong"

#2 Post by shaman123 »

I have also installed TigerVNC

afiadi
Posts: 12
Joined: 2021-07-22 11:57
Been thanked: 1 time

Re: xRDP to Debian 11 - "Something went wrong"

#3 Post by afiadi »

Yes I have the same error "oh no..." to run xrdp server in Debian 11.

shaman123
Posts: 5
Joined: 2021-09-21 07:27

Re: xRDP to Debian 11 - "Something went wrong"

#4 Post by shaman123 »

Next thing I have read seems to suggest MATE as a desktop environment, so will try that this weekend.

shaman123
Posts: 5
Joined: 2021-09-21 07:27

Re: xRDP to Debian 11 - "Something went wrong"

#5 Post by shaman123 »

I have changed default Xwrapper.config to include "anybody"

I notice when I do "systemctl status xrdp", Im getting these "Closed socket"

Sep 25 10:59:23 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] xrdp_wm_log_msg: connected ok
Sep 25 10:59:23 deb xrdp[8099]: (8099)(140547212388160)[DEBUG] xrdp_mm_module_cleanup
Sep 25 10:59:23 deb xrdp[8099]: (8099)(140547212388160)[DEBUG] Closed socket 19 (AF_UNIX)
Sep 25 10:59:23 deb xrdp[8099]: (8099)(140547212388160)[DEBUG] Closed socket 20 (AF_UNIX)
Sep 25 10:59:24 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
Sep 25 10:59:24 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] Closed socket 18 (AF_INET6 ::1 port 38934)
Sep 25 10:59:27 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.1.83 port 3389)
Sep 25 10:59:27 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] xrdp_mm_module_cleanup
Sep 25 10:59:27 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] Closed socket 19 (AF_UNIX)
Sep 25 10:59:27 deb xrdp[10518]: (10518)(140547212388160)[DEBUG] Closed socket 20 (AF_UNIX)


dachshund-digital
Posts: 40
Joined: 2021-12-23 22:22

Re: xRDP to Debian 11 - "Something went wrong"

#7 Post by dachshund-digital »

Odd, I can't seem to get XRDP to work on Debian 11 at all with GNOME, if I switch to say Xfce works fine. I believe the issue might be the polkit rule, because I see the following in the auth.log...

Code: Select all

Mar 25 17:13:21 crazy systemd-logind[502]: New session c8 of user jibun.
Mar 25 17:13:22 crazy gnome-keyring-daemon[5843]: The Secret Service was already initialized
Mar 25 17:13:24 crazy PackageKit: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Mar 25 17:13:24 crazy PackageKit: uid 1000 failed to obtain auth
Mar 25 17:13:26 crazy xrdp-sesman[6111]: pam_unix(xrdp-sesman:session): session closed for user jibun
Mar 25 17:13:26 crazy systemd-logind[502]: Failed to restore VT, ignoring: Bad file descriptor
Mar 25 17:13:26 crazy systemd-logind[502]: Session c8 logged out. Waiting for processes to exit.
Mar 25 17:13:32 crazy systemd-logind[502]: Removed session c8.
The polkit rule I am using per the link above...

polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.color-manager.create-device" || action.id == "org.freedesktop.color-manager.create-profile" || action.id == "org.freedesktop.color-manager.delete-device" || action.id == "org.freedesktop.color-manager.delete-profile" || action.id == "org.freedesktop.color-manager.modify-device" || action.id == "org.freedesktop.color-manager.modify-profile") && subject.isInGroup("{group}"))
{
return polkit.Result.YES;
}
});

The service is up...

Mar 25 17:21:33 crazy xrdp[6749]: (6749)(140593114916672)[INFO ] starting xrdp with pid 6749
Mar 25 17:21:33 crazy xrdp[6749]: (6749)(140593114916672)[INFO ] address [0.0.0.0] port [3389] mode 1
Mar 25 17:21:33 crazy xrdp[6749]: (6749)(140593114916672)[INFO ] listening to port 3389 on 0.0.0.0
Mar 25 17:21:33 crazy xrdp[6749]: (6749)(140593114916672)[INFO ] xrdp_listen_pp done

It appears before I get the oops message, I the session connects then gives up. Any suggestions?

edxd
Posts: 1
Joined: 2022-03-26 11:54

Re: xRDP to Debian 11 - "Something went wrong"

#8 Post by edxd »

From what I understand there is an issue with the current default versions of xorgxrdp and xrdp, at the time of writing, and GNOME should work with xRDP if you upgrade them.

To do this download the following newer versions of xorgxrdp and xrdp. We're downloading them from https://snapshot.debian.org:

Code: Select all

wget https://snapshot.debian.org/archive/debian/20210302T032219Z/pool/main/x/xorgxrdp/xorgxrdp_0.2.15-1_amd64.deb
wget https://snapshot.debian.org/archive/debian/20210302T032219Z/pool/main/x/xrdp/xrdp_0.9.15-1_amd64.deb
And install them:

Code: Select all

sudo apt install ./xorgxrdp_0.2.15-1_amd64.deb
sudo apt install ./xrdp_0.9.15-1_amd64.deb
Someone commented on my blog about this issue yesterday and while searching for solutions I found this post, so I figure I'd leave the solution here for posterity. I covered it here https://bytexd.com/xrdp-debian/#black-s ... gone-wrong

AndresMC
Posts: 1
Joined: 2022-11-24 13:20

Re: xRDP to Debian 11 - "Something went wrong"

#9 Post by AndresMC »

Thanks edxd!
that did the trick!

Post Reply