Service XRDP randomly fail

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
valdragas
Posts: 38
Joined: Sat Oct 03, 2020 1:14 pm

Service XRDP randomly fail

Post by valdragas »

Good,

The XRDP service stops working only every X time and does not work again until I reinstall it, is it a bug?

Code: Select all

root@DietPi:~# systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: ena
bled)
   Active: failed (Result: exit-code) since Thu 2021-06-24 18:17:17 C
EST; 15h ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 537 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, stat
us=0/SUCCESS)
  Process: 545 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, stat
us=1/FAILURE)

Jun 24 18:17:17 DietPi systemd[1]: Starting xrdp daemon...
Jun 24 18:17:17 DietPi systemd[1]: xrdp.service: Control
 process exited, code=exited, status=1/FAILURE
Jun 24 18:17:17 DietPi systemd[1]: xrdp.service: Failed
with result 'exit-code'.
Jun 24 18:17:17 DietPi systemd[1]: Failed to start xrdp

Code: Select all

root@DietPi:~# apt reinstall xrdp
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 12 not upgraded.
Need to get 0 B/395 kB of archives.
After this operation, 0 B of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 104717 files and directories currently installed.)
Preparing to unpack .../xrdp_0.9.9-1+deb10u1_armhf.deb ...
Unpacking xrdp (0.9.9-1+deb10u1) over (0.9.9-1+deb10u1) ...
Setting up xrdp (0.9.9-1+deb10u1) ...
Processing triggers for systemd (241-7~deb10u7+rpi1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

Code: Select all

root@DietPi:~# systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: ena
bled)
   Active: active (running) since Fri 2021-06-25 09:55:31 CEST; 2s ag
o
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 13718 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, st
atus=0/SUCCESS)
  Process: 13726 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/S
UCCESS)
 Main PID: 13727 (xrdp)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/xrdp.service
           └─13727 /usr/sbin/xrdp

Jun 25 09:55:30 DietPi systemd[1]: Starting xrdp daemon...
Jun 25 09:55:30 DietPi xrdp[13726]: (13726)(-1225271264)
[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
Jun 25 09:55:30 DietPi xrdp[13726]: (13726)(-1225271264)
[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
Jun 25 09:55:30 DietPi systemd[1]: xrdp.service: Can't open PID file /run/xrdp/x
rdp.pid (yet?) after start: No such file or directory
Jun 25 09:55:31 DietPi systemd[1]: Started xrdp daemon.
User avatar
Joulinar
Posts: 5147
Joined: Sat Nov 16, 2019 12:49 am

Re: Service XRDP randomly fail

Post by Joulinar »

There is no real error message shown. PLs can you have a look to journalctl -u xrdp if XRDP is failing next time. Maybe this will give a hint.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
valdragas
Posts: 38
Joined: Sat Oct 03, 2020 1:14 pm

Re: Service XRDP randomly fail

Post by valdragas »

Code: Select all

root@DietPi:~# journalctl -u xrdp
-- Logs begin at Wed 2021-06-30 09:17:01 CEST, end at Wed 2021-06-30 09:41:05 CEST. --
Jun 30 09:17:16 DietPi systemd[1]: Starting xrdp daemon...
Jun 30 09:17:16 DietPi systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
Jun 30 09:17:16 DietPi systemd[1]: xrdp.service: Failed with result 'exit-code'.
Jun 30 09:17:16 DietPi systemd[1]: Failed to start xrdp daemon.

Code: Select all

root@DietPi:~# 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 2021-06-30 09:17:16 CEST; 24min ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 540 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
  Process: 548 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=1/FAILURE)

Jun 30 09:17:16 DietPi systemd[1]: Starting xrdp daemon...
Jun 30 09:17:16 DietPi systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
Jun 30 09:17:16 DietPi systemd[1]: xrdp.service: Failed with result 'exit-code'.
Jun 30 09:17:16 DietPi systemd[1]: Failed to start xrdp daemon.
User avatar
Joulinar
Posts: 5147
Joined: Sat Nov 16, 2019 12:49 am

Re: Service XRDP randomly fail

Post by Joulinar »

can you have a look to log files

Code: Select all

/var/log/xrdp-sesman.log
/var/log/xrdp.log
probably they are empty. If that's the case, restart xrdp service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
valdragas
Posts: 38
Joined: Sat Oct 03, 2020 1:14 pm

Re: Service XRDP randomly fail

Post by valdragas »

Hi,

Restart service not work, only reinstall
User avatar
Joulinar
Posts: 5147
Joined: Sat Nov 16, 2019 12:49 am

Re: Service XRDP randomly fail

Post by Joulinar »

the idea was to restart the service and have a look to the logs afterwards

Code: Select all

/var/log/xrdp-sesman.log
/var/log/xrdp.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply