eneukirchner
Posts: 2
Joined: Wed Nov 10, 2021 11:58 am

bullseye: xrdp not working for user "pi"

Wed Nov 10, 2021 12:12 pm

1) When connecting to a Raspberry Pi 4 via xrdp under user "pi", openbox manager is not started. So top panel and window decoration are missing. If I add a new user, e.g. "testuser", everything just works fine.

(Side note: if I choose "Desktop Autologin" in raspi-config, user "pi" just gets an empty screen after login.)

2) Regardless of the username, after login I always get this annoying window "Authentication is required to refresh the system repositories".

eneukirchner
Posts: 2
Joined: Wed Nov 10, 2021 11:58 am

Re: bullseye: xrdp not working for user "pi"

Wed Nov 10, 2021 9:37 pm

Possibly, there is a bug or at least a side-effect in /usr/bin/startlxde-pi

TOTAL_MEM=$(vcgencmd get_config total_mem | cut -d= -f2)
VNC=$(systemctl status vncserver-x11-serviced | grep -w active)
if [ $TOTAL_MEM -ge 2048 ] && [ -f /usr/bin/mutter ] && [ -z „$VNC“ ] ; then
….
exec /usr/bin/lxsession -s LXDE-pi -e LXDE
....
else
….
exec /usr/bin/lxsession -s LXDE-pi -e LXDE -w openbox-lxde-pi

vcgencmd gives only a valid result when called by "pi" or "root". All other users get "VCHI initialization failed". Is this side effect really intended? Anyhow, if vncserver-X11 is started, even user "pi" gets openbox as a window manager, because the last condition in "if" is false.

lokety
Posts: 1
Joined: Mon Jun 29, 2020 8:57 am

Re: bullseye: xrdp not working for user "pi"

Thu Nov 11, 2021 7:52 am

I'm getting this symptom too. Fresh install of bullseye. Similar to this post.
All windows do not have title bars.
This starts after installing xrdp.
Last edited by lokety on Thu Nov 11, 2021 9:53 am, edited 1 time in total.

User avatar
Reggie98
Posts: 1
Joined: Thu Nov 11, 2021 1:47 pm
Location: Cambridge, England

Re: bullseye: xrdp not working for user "pi"

Thu Nov 11, 2021 2:22 pm

Just wondering if anyone has a solution yet. I keep getting the blank screen which after a long delay gives this message:
20211111 rpi xrdp remote desktop connection fail.jpg
20211111 rpi xrdp remote desktop connection fail.jpg (20.91 KiB) Viewed 10421 times

moinierer3000
Posts: 4
Joined: Thu Nov 11, 2021 10:47 pm

Re: bullseye: xrdp not working for user "pi"

Thu Nov 11, 2021 10:56 pm

Hi there, I registered here because I have the same issue Reggie98 described.

I installed the newest version of the raspberry pi os, did the setup and all the updates, and then installed xrdp. Then, using the windows remote desktop, I can login to the pi, then I get a blank screen and after waiting about 10 mins I get the same error message Reggie98 posted.

When I installed the older version of raspberry pi os with buster, the process above worked fine and it let me connect without any issue.

I have already tried several solutions I found online, yet none of them worked for me. If someone here has a fix for this issue please let me know, it is pretty annoying. I am using a Pi 4 with 8GB RAM if that helps anyone.
Last edited by moinierer3000 on Thu Nov 11, 2021 11:00 pm, edited 3 times in total.

Varro
Posts: 1
Joined: Fri Nov 12, 2021 8:23 am

Re: bullseye: xrdp not working for user "pi"

Fri Nov 12, 2021 8:47 am

Same problem also for me after the upgrade :(

EDIT: Then i tried a fresh install and noticed that until changing password it works.
Last edited by Varro on Sat Nov 13, 2021 7:27 am, edited 1 time in total.

LeonStraathof
Posts: 1
Joined: Fri Nov 12, 2021 4:48 pm

Re: bullseye: xrdp not working for user "pi"

Fri Nov 12, 2021 7:23 pm

Same issue after doing a in place upgrade. I checked if every part is installed and configured right. Cannot find any obvious reason. Hope they fix it soon and not just in the image also a fix to repair already migrated installations.

User avatar
B.Goode
Posts: 13793
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: bullseye: xrdp not working for user "pi"

Fri Nov 12, 2021 9:03 pm

Has anyone posting in this thread made any attempt to draw this to the attention of a Raspberry Pi Engineer or Developer? Because it can't be assumed that they have time to read each and every thread in these volunteer-supported forums to see if there is some mention of an issue that might affect them.


Is everyone up to this point using 32-bit RasPiOS Bullseye on RPi4 hardware?


Because it might be significant to report that I am very happily using xrdp, from an MS Windows 10 RDP client, on an RPi3B+ board running a fresh install of RasPiOS Bullseye [32] 'Desktop'.

Maybe this is a previously undetected 'quirk' of the different video support in RPi4 hardware?


{I have flagged this post for Moderator attention to ask for RPT investigation.}

moinierer3000
Posts: 4
Joined: Thu Nov 11, 2021 10:47 pm

Re: bullseye: xrdp not working for user "pi"

Fri Nov 12, 2021 10:24 pm

B.Goode wrote:
Fri Nov 12, 2021 9:03 pm
Has anyone posting in this thread made any attempt to draw this to the attention of a Raspberry Pi Engineer or Developer? Because it can't be assumed that they have time to read each and every thread in these volunteer-supported forums to see if there is some mention of an issue that might affect them.


Is everyone up to this point using 32-bit RasPiOS Bullseye on RPi4 hardware?


Because it might be significant to report that I am very happily using xrdp, from an MS Windows 10 RDP client, on an RPi3B+ board running a fresh install of RasPiOS Bullseye [32] 'Desktop'.

Maybe this is a previously undetected 'quirk' of the different video support in RPi4 hardware?


{I have flagged this post for Moderator attention to ask for RPT investigation.}
Thank you for flagging the post, I am very new in this forum and didn't know about that.

I have already written my setup above but in short I am using the newest 32-bit Raspberry Pi OS with desktop (Release date: October 30th 2021) on my Raspberry Pi 4 8GB and I am trying to connect with the default Remote Desktop Client on Windows 10.

Before I used the Bullseye based version, I was running the latest Buster based version with the Release date marked as May 7th 2021 and it worked perfectly fine with that. In both cases I had a fresh install and the only thing I installed was xrdp via

Code: Select all

sudo apt-get install xrdp


If any more information is needed I am happy to provide it as well.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 12864
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: bullseye: xrdp not working for user "pi"

Sat Nov 13, 2021 2:46 pm

Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

moinierer3000
Posts: 4
Joined: Thu Nov 11, 2021 10:47 pm

Re: bullseye: xrdp not working for user "pi"

Sat Nov 13, 2021 4:08 pm

6by9 wrote:
Sat Nov 13, 2021 2:46 pm
https://github.com/neutrinolabs/xrdp/di ... nt-1630986
https://github.com/neutrinolabs/xrdp/issues/2048

We're looking at backporting the fix to xrdp already.
Thank you so much! Also the workaround to install tigervnc-standalone-server works, but I had to uninstall realvnc-vnc-server before. Just wanted to put that out there if anyone has the same issue.

hushcoden
Posts: 4
Joined: Sun Nov 14, 2021 3:44 pm

Re: bullseye: xrdp not working for user "pi"

Sun Nov 14, 2021 8:05 pm

Same exact issue here, RB Pi 4 running Bullseye 64-bit and Windows 10 remote desktop refuses to connect...

vmiceli
Posts: 3
Joined: Mon Apr 27, 2020 10:33 am

Re: bullseye: xrdp not working for user "pi"

Mon Nov 15, 2021 3:28 am

Yep, same on CM4 64bit OS (2021-10-30 version). With Desktop autologin, I get stuck on the gray desktop. If I select in rasp-config, "Desktop GIU, requiring user to login" it will work beside the fact I'll have to reenter the password once the desktop opens...

Hopefully a fix will be coming soon...

V.

DaDaDown
Posts: 2
Joined: Tue Nov 16, 2021 1:40 pm

Re: bullseye: xrdp not working for user "pi"

Tue Nov 16, 2021 2:28 pm

Also struggled on this issue, in the end I managed to to install back previous package version and it works fine. it is easiest way to me before there is a fix on this problem.

The method tested working on fresh installed bullseye with desktop on Pi4. Release date: October 30th 2021

sudo apt update
apt-cache policy xrdp #if you get <Candidate: 0.9.12-1.1>, this is the problem version, do not install

sudo nano /etc/apt/sources.list
#comment all existing list then add below list (remember what you commented, after install xrdp need to restore back)
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
#save and exit the list file

sudo nano /etc/apt/sources.list.d/raspi.list
#comment all existing list then add below list (remember what you commented, after install xrdp need to restore back)
deb http://archive.raspberrypi.org/debian/ buster main
#save and exit the list file

sudo apt update #this command is a must after change above 2 list file
apt-cache policy xrdp #if you see <Candidate: 0.9.9-1+deb10u1> then you are good to install

sudo apt install xrdp

#remember to uncomment back the 2 list file, and deleted added list, otherwise you will get old packages for all upcoming installations
#and always apt update after change the list file

sudo apt update

rajsiyer
Posts: 1
Joined: Fri Jul 10, 2020 1:50 pm

Re: bullseye: xrdp not working for user "pi"

Thu Nov 18, 2021 9:57 am

@DaDaDown

Followed your procedure and it didn't help

pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list
pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list.d/raspi.list
pi@raspberrypi:~ $ pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list
pi@raspberrypi:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Ign:2 http://raspbian.raspberrypi.org/raspbian/buster main InRelease
Err:3 http://raspbian.raspberrypi.org/raspbian/buster main Release
404 Not Found [IP: 93.93.128.193 80]
Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Reading package lists... Done
E: The repository 'http://raspbian.raspberrypi.org/raspbian/buster main Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
pi@raspberrypi:~ $ apt-cache policy xrdp
xrdp:
Installed: 0.9.12-1.1
Candidate: 0.9.12-1.1
Version table:
*** 0.9.12-1.1 100
100 /var/lib/dpkg/status

So pointing to the buster repository for xrdp isnt possible as it is disabled by default.

Thanks for your efforts. I wish that xrdp gets repaired soon. For the VNC methods are horrible to use.

washburn_it
Posts: 13
Joined: Fri Jul 25, 2014 9:53 pm

Re: bullseye: xrdp not working for user "pi"

Sat Nov 20, 2021 6:40 pm

I'm having the same issue but no one of the proposed solutions worked out for me.
Then I reinstalled Buster waiting for the problem to be fixed.

Bi-Doux
Posts: 3
Joined: Mon Jan 18, 2021 11:16 pm

Re: bullseye: xrdp not working for user "pi"

Sun Nov 21, 2021 5:26 pm

I have just upgraded to the latest version of xrdp (.i.e. 0.9.17-2-1.1) and xorgxrdp 0.2.17-1 and unfortunately, it does not solve this issue. In addition, it has overwritten my version of xorg.conf . :(

moinierer3000
Posts: 4
Joined: Thu Nov 11, 2021 10:47 pm

Re: bullseye: xrdp not working for user "pi"

Mon Nov 22, 2021 10:43 am

Bi-Doux wrote:
Sun Nov 21, 2021 5:26 pm
I have just upgraded to the latest version of xrdp (.i.e. 0.9.17-2-1.1) and xorgxrdp 0.2.17-1 and unfortunately, it does not solve this issue. In addition, it has overwritten my version of xorg.conf . :(
Yep, same here. Now I cannot connect at all.

Edit: Even after a fresh install and updating everything, the method I used before which is to connect via Xvnc with tigervnc-standalone-server does not work anymore. Looking very much forward to a fix.

Edit 2: Downgrading xrdp to version 0.9.12-1.1 works for me right now, but a permanent solution would be better obviously. Just putting it out there for anyone with the same issues.

DaDaDown
Posts: 2
Joined: Tue Nov 16, 2021 1:40 pm

Re: bullseye: xrdp not working for user "pi"

Sat Nov 27, 2021 12:07 am

Finally the team solved this problem, updated version 0.9.17-2~bpo11+rpt1 tested working after fresh installation.

Pumpkin_n
Posts: 4
Joined: Sat Nov 20, 2021 2:00 pm

Re: bullseye: xrdp not working for user "pi"

Sun Nov 28, 2021 10:02 am

https://github.com/neutrinolabs/xrdp/issues/2060
Modify /etc/X11/xrdp/xorg.conf to use xrdp normally

Pumpkin_n
Posts: 4
Joined: Sat Nov 20, 2021 2:00 pm

Re: bullseye: xrdp not working for user "pi"

Sun Nov 28, 2021 11:12 am

DaDaDown wrote:
Sat Nov 27, 2021 12:07 am
Finally the team solved this problem, updated version 0.9.17-2~bpo11+rpt1 tested working after fresh installation.
After I updated, I still can't connect


Capture Effect
Posts: 1
Joined: Wed Apr 27, 2022 1:52 am

Re: bullseye: xrdp not working for user "pi"

Wed Apr 27, 2022 1:59 am

I just installed Bullseye, both the 32 and 64 bit versions via the imager, and I am seeing the same problem as reported in this thread. If I revert to Buster, everything works perfect.

SirFico
Posts: 8
Joined: Sat Nov 13, 2021 11:17 pm

Re: bullseye: xrdp not working for user "pi"

Mon May 16, 2022 8:51 pm

The same for me. Just installed and updated the latest rpi os one pi4 with 32bit and the other with 64 bit. Installed xrdp on both. Running the mac os based ms remote desktop app, it appears to connect to the rpi but the screen is just a blank black screen.

Is MS Remote Desktop expected to work with Raspberry pi os ??? Has anyone got it working with the latest released?

SirFico
Posts: 8
Joined: Sat Nov 13, 2021 11:17 pm

Re: bullseye: xrdp not working for user "pi"

Mon May 16, 2022 9:28 pm

Oh woohoo :D I got the ms remote desktop working. Only took another few hours of googling. :lol:

I had to create a new user - sudo adduser xxxx - and then login to that new user when using the remote desktop from my mac. The first time a pop up on the desktop of the new user asks you to log into the pi user :shock: for some reason to do with updates, but that only appears to be on the first remote login (so far anyway).

Return to “Troubleshooting”