XRDP fails to start on boot
This document (000019917) is provided subject to the disclaimer at the end of this document.
Environment
Situation
With xrdp debug messages enabled we see the following when running "journalctl -u xrdp" after boot:
Mar 16 17:48:23 examplehost systemd[1]: Starting xrdp daemon... Mar 16 17:48:23 examplehost xrdp[1780]: (1780)(140360899446528)[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389. Mar 16 17:48:23 examplehost xrdp[1780]: (1780)(140360899446528)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389) Mar 16 17:48:23 examplehost systemd[1]: xrdp.service: PID file /var/run/xrdp.pid not readable (yet?) after start: No such file or directory Mar 16 17:48:25 examplehost xrdp[1823]: (1823)(140360899446528)[INFO ] starting xrdp with pid 1823 Mar 16 17:48:25 examplehost xrdp[1823]: (1823)(140360899446528)[INFO ] listening to port 3389 on 0.0.0.0 Mar 16 17:49:54 examplehost systemd[1]: xrdp.service: Start operation timed out. Terminating. Mar 16 17:49:54 examplehost xrdp[1823]: (1823)(140360899446528)[DEBUG] Closed socket 11 (AF_INET6 :: port 3389) Mar 16 17:49:54 examplehost systemd[1]: Stopped xrdp daemon. Mar 16 17:49:54 examplehost systemd[1]: xrdp.service: Unit entered failed state. Mar 16 17:49:54 examplehost systemd[1]: xrdp.service: Failed with result 'timeout'.
After boot however running "systemctl start xrdp" works without issue.
Resolution
- Edit the xrdp systemd service file with "systemctl edit xrdp.service"
- Copy the following lines into the file:
-
[Unit] After=multi-user.target xrdp-sesman.service
-
- Reboot
Cause
Additional Information
systemctl revert xrdp.service
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019917
- Creation Date: 17-Mar-2021
- Modified Date:19-Mar-2021
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com