<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle19
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p><span style="font-family:"Calibri",sans-serif">On Tue, 28 Feb 2017 15:07:39 +0100 Paul van Tilburg <paulvt@debian.org> wrote:</span>
<br>
<span style="font-family:"Calibri",sans-serif">> Hi!</span> <br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> I have been struggling with the same issues. Because we want to offer a</span>
<br>
<span style="font-family:"Calibri",sans-serif">> GNOME desktop, NetworkManager is installed. The way it configures the</span>
<br>
<span style="font-family:"Calibri",sans-serif">> network might reveal an issue in xrdp itself.</span>
<br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> I have updated the xrdp.service unit locally and that seems to fix it</span>
<br>
<span style="font-family:"Calibri",sans-serif">> (see attached file).</span> <br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> The changes are:</span> <br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> --- /lib/systemd/system/xrdp.service 2017-01-25 18:10:11.000000000 +0100</span>
<br>
<span style="font-family:"Calibri",sans-serif">> +++ /etc/systemd/system/xrdp.service 2017-02-28 15:07:01.130060204 +0100</span>
<br>
<span style="font-family:"Calibri",sans-serif">> @@ -1,8 +1,7 @@</span> <br>
<span style="font-family:"Calibri",sans-serif">> [Unit]</span> <br>
<span style="font-family:"Calibri",sans-serif">> Description=xrdp daemon</span>
<br>
<span style="font-family:"Calibri",sans-serif">> Documentation=man:xrdp(8) man:xrdp.ini(5)</span>
<br>
<span style="font-family:"Calibri",sans-serif">> -Requires=xrdp-sesman.service</span>
<br>
<span style="font-family:"Calibri",sans-serif">> -After=network.target xrdp-sesman.service</span>
<br>
<span style="font-family:"Calibri",sans-serif">> +After=network-online.target</span>
<br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> [Service]</span> <br>
<span style="font-family:"Calibri",sans-serif">> Type=forking</span> <br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> The after requirement on network-online.target is not how it should be,</span>
<br>
<span style="font-family:"Calibri",sans-serif">> but it seems necessary for xrdp to start. The require on xrdp-sesman is</span>
<br>
<span style="font-family:"Calibri",sans-serif">> not necessary at all (given that xrdp-sesman.service binds to</span>
<br>
<span style="font-family:"Calibri",sans-serif">> xrdp.service), so I dropped that.</span>
<br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> Paul</span> <br>
<span style="font-family:"Calibri",sans-serif">> </span><br>
<span style="font-family:"Calibri",sans-serif">> -- </span><br>
<span style="font-family:"Calibri",sans-serif">> Using the Power of Debian GNU/Linux | E-mail: paulvt@debian.org</span>
<br>
<span style="font-family:"Calibri",sans-serif">> Jabber/XMPP: paul@luon.net | GnuPG key ID: 0x50064181</span>
<o:p></o:p></p>
<p>Paul, unfortunately it didn’t seem to work for me:<o:p></o:p></p>
<p>root@pod:/home/david# systemctl status xrdp<o:p></o:p></p>
<p>● xrdp.service - xrdp daemon<o:p></o:p></p>
<p> Loaded: loaded (/etc/systemd/system/xrdp.service; enabled; vendor preset: enabled)<o:p></o:p></p>
<p> Active: failed (Result: resources) since Sun 2017-03-05 21:39:49 PST; 56s ago<o:p></o:p></p>
<p> Docs: man:xrdp(8)<o:p></o:p></p>
<p> man:xrdp.ini(5)<o:p></o:p></p>
<p> Process: 873 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p> Process: 849 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Mar 05 21:39:46 pod systemd[1]: Starting xrdp daemon...<o:p></o:p></p>
<p>Mar 05 21:39:46 pod systemd[1]: xrdp.service: PID file /run/xrdp/xrdp.pid not readable (yet?) after start: No such file or directory<o:p></o:p></p>
<p>Mar 05 21:39:48 pod xrdp[1119]: (1119)(139942974253888)[INFO ] starting xrdp with pid 1119<o:p></o:p></p>
<p>Mar 05 21:39:49 pod xrdp[1119]: (1119)(139942974253888)[ERROR] xrdp_listen_main_loop: listen error, possible port already in use<o:p></o:p></p>
<p>Mar 05 21:39:49 pod xrdp[1119]: (1119)(139942974253888)[DEBUG] Closed socket 11 (AF_INET6 :: port 0)<o:p></o:p></p>
<p>Mar 05 21:39:49 pod systemd[1]: xrdp.service: Daemon never wrote its PID file. Failing.<o:p></o:p></p>
<p>Mar 05 21:39:49 pod systemd[1]: Failed to start xrdp daemon.<o:p></o:p></p>
<p>Mar 05 21:39:49 pod systemd[1]: xrdp.service: Unit entered failed state.<o:p></o:p></p>
<p>Mar 05 21:39:49 pod systemd[1]: xrdp.service: Failed with result 'resources'.<o:p></o:p></p>
<p>root@pod:/home/david# systemctl status xrdp-sesman<o:p></o:p></p>
<p>● xrdp-sesman.service - xrdp session manager<o:p></o:p></p>
<p> Loaded: loaded (/lib/systemd/system/xrdp-sesman.service; enabled; vendor preset: enabled)<o:p></o:p></p>
<p> Active: failed (Result: exit-code) since Sun 2017-03-05 21:39:47 PST; 1min 7s ago<o:p></o:p></p>
<p> Docs: man:xrdp-sesman(8)<o:p></o:p></p>
<p> man:sesman.ini(5)<o:p></o:p></p>
<p> Process: 1126 ExecStop=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS --kill (code=exited, status=1/FAILURE)<o:p></o:p></p>
<p> Process: 852 ExecStart=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p>Main PID: 1120 (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Mar 05 21:39:46 pod systemd[1]: Starting xrdp session manager...<o:p></o:p></p>
<p>Mar 05 21:39:46 pod xrdp-sesman[852]: (852)(140554723779904)[DEBUG] libscp initialized<o:p></o:p></p>
<p>Mar 05 21:39:47 pod xrdp-sesman[1120]: (1120)(140554723779904)[INFO ] starting xrdp-sesman with pid 1120<o:p></o:p></p>
<p>Mar 05 21:39:47 pod systemd[1]: Started xrdp session manager.<o:p></o:p></p>
<p>Mar 05 21:39:47 pod xrdp-sesman[1120]: (1120)(140554723779904)[ERROR] bind error on port '3350': 22 (Invalid argument)<o:p></o:p></p>
<p>Mar 05 21:39:47 pod xrdp-sesman[1120]: (1120)(140554723779904)[DEBUG] Closed socket 7 (AF_INET6 :: port 0)<o:p></o:p></p>
<p>Mar 05 21:39:47 pod systemd[1]: xrdp-sesman.service: Control process exited, code=exited status=1<o:p></o:p></p>
<p>Mar 05 21:39:47 pod systemd[1]: xrdp-sesman.service: Unit entered failed state.<o:p></o:p></p>
<p>Mar 05 21:39:47 pod systemd[1]: xrdp-sesman.service: Failed with result 'exit-code'.<o:p></o:p></p>
<p>root@pod:/home/david# systemctl restart xrdp<o:p></o:p></p>
<p>root@pod:/home/david# systemctl restart xrdp-sesman<o:p></o:p></p>
<p>root@pod:/home/david# systemctl status xrdp<o:p></o:p></p>
<p>● xrdp.service - xrdp daemon<o:p></o:p></p>
<p> Loaded: loaded (/etc/systemd/system/xrdp.service; enabled; vendor preset: enabled)<o:p></o:p></p>
<p> Active: active (running) since Sun 2017-03-05 21:41:02 PST; 10s ago<o:p></o:p></p>
<p> Docs: man:xrdp(8)<o:p></o:p></p>
<p> man:xrdp.ini(5)<o:p></o:p></p>
<p> Process: 1724 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p> Process: 1715 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p>Main PID: 1726 (xrdp)<o:p></o:p></p>
<p> Tasks: 1 (limit: 4915)<o:p></o:p></p>
<p> CGroup: /system.slice/xrdp.service<o:p></o:p></p>
<p> └瘢雹─1726 /usr/sbin/xrdp<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Mar 05 21:41:01 pod systemd[1]: Starting xrdp daemon...<o:p></o:p></p>
<p>Mar 05 21:41:01 pod systemd[1]: xrdp.service: PID file /run/xrdp/xrdp.pid not readable (yet?) after start: No such file or directory<o:p></o:p></p>
<p>Mar 05 21:41:02 pod systemd[1]: Started xrdp daemon.<o:p></o:p></p>
<p>Mar 05 21:41:03 pod xrdp[1726]: (1726)(139798253062976)[INFO ] starting xrdp with pid 1726<o:p></o:p></p>
<p>Mar 05 21:41:03 pod xrdp[1726]: (1726)(139798253062976)[INFO ] listening to port 3389 on 0.0.0.0<o:p></o:p></p>
<p>root@pod:/home/david# systemctl restart xrdp-sesman<o:p></o:p></p>
<p>root@pod:/home/david# systemctl status xrdp-sesman<o:p></o:p></p>
<p>● xrdp-sesman.service - xrdp session manager<o:p></o:p></p>
<p> Loaded: loaded (/lib/systemd/system/xrdp-sesman.service; enabled; vendor preset: enabled)<o:p></o:p></p>
<p> Active: active (running) since Sun 2017-03-05 21:41:15 PST; 4s ago<o:p></o:p></p>
<p> Docs: man:xrdp-sesman(8)<o:p></o:p></p>
<p> man:sesman.ini(5)<o:p></o:p></p>
<p> Process: 1735 ExecStop=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS --kill (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p> Process: 1738 ExecStart=/usr/sbin/xrdp-sesman $SESMAN_OPTIONS (code=exited, status=0/SUCCESS)<o:p></o:p></p>
<p>Main PID: 1739 (xrdp-sesman)<o:p></o:p></p>
<p> Tasks: 1 (limit: 4915)<o:p></o:p></p>
<p> CGroup: /system.slice/xrdp-sesman.service<o:p></o:p></p>
<p> └瘢雹─1739 /usr/sbin/xrdp-sesman<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Mar 05 21:41:15 pod systemd[1]: Starting xrdp session manager...<o:p></o:p></p>
<p>Mar 05 21:41:15 pod xrdp-sesman[1738]: (1738)(140499228779840)[DEBUG] libscp initialized<o:p></o:p></p>
<p>Mar 05 21:41:15 pod xrdp-sesman[1739]: (1739)(140499228779840)[INFO ] starting xrdp-sesman with pid 1739<o:p></o:p></p>
<p>Mar 05 21:41:15 pod systemd[1]: Started xrdp session manager.<o:p></o:p></p>
<p>Mar 05 21:41:15 pod xrdp-sesman[1739]: (1739)(140499228779840)[INFO ] listening to port 3350 on 127.0.0.1<o:p></o:p></p>
<p>root@pod:/home/david# cat /etc/systemd/system/xrdp.sesman<o:p></o:p></p>
<p>cat: /etc/systemd/system/xrdp.sesman: No such file or directory<o:p></o:p></p>
<p>root@pod:/home/david# cat /etc/systemd/system/xrdp.service<o:p></o:p></p>
<p>[Unit]<o:p></o:p></p>
<p>Description=xrdp daemon<o:p></o:p></p>
<p>Documentation=man:xrdp(8) man:xrdp.ini(5)<o:p></o:p></p>
<p>After=network-online.target<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>[Service]<o:p></o:p></p>
<p>Type=forking<o:p></o:p></p>
<p>PIDFile=/run/xrdp/xrdp.pid<o:p></o:p></p>
<p>RuntimeDirectory=xrdp<o:p></o:p></p>
<p>EnvironmentFile=-/etc/sysconfig/xrdp<o:p></o:p></p>
<p>EnvironmentFile=-/etc/default/xrdp<o:p></o:p></p>
<p>User=xrdp<o:p></o:p></p>
<p>Group=xrdp<o:p></o:p></p>
<p>PermissionsStartOnly=true<o:p></o:p></p>
<p>ExecStartPre=/bin/sh /usr/share/xrdp/socksetup<o:p></o:p></p>
<p>ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS<o:p></o:p></p>
<p>ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill<o:p></o:p></p>
<p>ExecStopPost=/bin/rm -rf /var/run/xrdp/sockdir<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>[Install]<o:p></o:p></p>
<p>WantedBy=multi-user.target<o:p></o:p></p>
<p>root@pod:/home/david# <o:p></o:p></p>
<p><o:p> </o:p></p>
<p><o:p> </o:p></p>
</div>
</body>
</html>