xrdp fails to start

Bug #2031538 reported by John Rose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xrdp (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 22.04 Desktop 64 bit AMD. xrdp v0.9.17-2ubuntu2. Tried to start xrdp with 'sudo systemctl start xrdp' but failed. This is confirmed by requesting Status. Extract from attached Terminal output:
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] g_tcp_bind(7, 3389) failed bind IPv6 (errno=98) and IPv4 (errno=22).
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] trans_listen_address failed
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] Failed to start xrdp daemon, possibly address already in use.
Aug 16 09:37:32 Demonstrator systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
Aug 16 09:37:32 Demonstrator systemd[1]: xrdp.service: Failed with result 'exit-code'.
Aug 16 09:37:32 Demonstrator systemd[1]: Failed to start xrdp daemon.
john@Demonstrator:~$ journalctl -xeu xrdp.service
Aug 16 09:37:32 Demonstrator xrdp[339100]: [ERROR] Failed to start xrdp daemon, possibly address already in use.
Aug 16 09:37:32 Demonstrator systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xrdp 0.9.17-2ubuntu2
ProcVersionSignature: Ubuntu 6.2.0-26.26~22.04.1-generic 6.2.13
Uname: Linux 6.2.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 16 14:38:45 2023
InstallationDate: Installed on 2022-08-21 (360 days ago)
InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
SourcePackage: xrdp
UpgradeStatus: Upgraded to jammy on 2022-10-06 (314 days ago)

Revision history for this message
John Rose (johnaaronrose) wrote :
Revision history for this message
John Rose (johnaaronrose) wrote :

Could this page https://community.spiceworks.com/how_to/195154-how-to-set-up-and-use-remote-desktop-connection-in-ubuntu-linux give a solution (shown below) to this bug even though it applies to Ubuntu 18.04 and the bug gives a slightly different problem?
Solution is:
he problem is related to the xorgxrdp package and the particular changes in Ubuntu 18.04 that caused xrdp capability breakage. In this guide, we use Ubuntu 18.04.2 to configure xrdp. To solve the empty blue screen problem, install the relevant xorgxrdp-hwe by executing the following command:

sudo apt-get install xorgxrdp-hwe-18.04

To check the current version of Ubuntu, use this command:

lsb_release -a

Restart the xrdp service (daemon):

sudo /etc/init.d/xrdp restart

After the required package is installed, open the RDP client. Then, try using RDP to connect to your Ubuntu again.

Revision history for this message
John Rose (johnaaronrose) wrote :

Used the webpage at https://orcacore.com/install-configure-xrdp-ubuntu-22-04/. xrdp got further but it fails with:
john@Demonstrator:~$ sudo systemctl restart xrdp
Job for xrdp.service failed because the control process exited with error code.
See "systemctl status xrdp.service" and "journalctl -xeu xrdp.service" for details.
john@Demonstrator:~$ sudo systemctl status xrdp
× xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2023-08-23 12:25:56 BST; 7s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
    Process: 1334827 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
    Process: 1334835 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=1/FAILURE)
        CPU: 17ms

Aug 23 12:25:56 Demonstrator systemd[1]: Starting xrdp daemon...
Aug 23 12:25:56 Demonstrator xrdp[1334835]: [INFO ] address [0.0.0.0] port [3389] mode 1
Aug 23 12:25:56 Demonstrator xrdp[1334835]: [INFO ] listening to port 3389 on 0.0.0.0
Aug 23 12:25:56 Demonstrator xrdp[1334835]: [ERROR] g_tcp_bind(7, 3389) failed bind IPv6 (errno=98) and IPv4 (err>
Aug 23 12:25:56 Demonstrator xrdp[1334835]: [ERROR] trans_listen_address failed
Aug 23 12:25:56 Demonstrator xrdp[1334835]: [ERROR] Failed to start xrdp daemon, possibly address already in use.
Aug 23 12:25:56 Demonstrator systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
Aug 23 12:25:56 Demonstrator systemd[1]: xrdp.service: Failed with result 'exit-code'.
Aug 23 12:25:56 Demonstrator systemd[1]: Failed to start xrdp daemon.
lines 1-18/18 (END)

Revision history for this message
John Rose (johnaaronrose) wrote :

I've just tried the changes outlined at https://pimylifeup.com/ubuntu-xrdp/. These are:

After stopping the xrdp service & starting the service again it failed to start properly, its status is:
× xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2023-08-25 11:43:52 BST; 16s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
    Process: 1601088 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
    Process: 1601096 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=1/FAILURE)
        CPU: 17ms

Aug 25 11:43:52 Demonstrator systemd[1]: Starting xrdp daemon...
Aug 25 11:43:52 Demonstrator xrdp[1601096]: [INFO ] address [0.0.0.0] port [3389] mode 1
Aug 25 11:43:52 Demonstrator xrdp[1601096]: [INFO ] listening to port 3389 on 0.0.0.0
Aug 25 11:43:52 Demonstrator xrdp[1601096]: [ERROR] g_tcp_bind(7, 3389) failed bind IPv6 (errno=98) an>
Aug 25 11:43:52 Demonstrator xrdp[1601096]: [ERROR] trans_listen_address failed
Aug 25 11:43:52 Demonstrator xrdp[1601096]: [ERROR] Failed to start xrdp daemon, possibly address alre>
Aug 25 11:43:52 Demonstrator systemd[1]: xrdp.service: Control process exited, code=exited, status=1/F>
Aug 25 11:43:52 Demonstrator systemd[1]: xrdp.service: Failed with result 'exit-code'.
Aug 25 11:43:52 Demonstrator systemd[1]: Failed to start xrdp daemon.

Revision history for this message
Lenin (gagarin) wrote :

Mind trying with Ubuntu 24.04?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.