<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi, thank you for your feedback;</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Actually, I transferred your suggestion
to our admin who applied your suggestion but it does not seem to
fix the issue. Below are the X11 flags for both the gateway and
the slurm host (and the slurm.conf is propagated on the nodes) :<br>
</div>
<blockquote>
<div class="moz-cite-prefix">mygateway:/etc/slurm:myuser$ grep X11
*<br>
slurm.conf:PrologFlags=Contain,X11<br>
slurm.conf:# X11 CONFIG<br>
slurm.conf:X11Parameters=home_xauthority<br>
</div>
</blockquote>
<blockquote>
<div class="moz-cite-prefix">slurmhost:/etc/slurm:myuser$ grep X11
*<br>
slurm.conf:PrologFlags=Contain,X11<br>
slurm.conf:# X11 CONFIG<br>
slurm.conf:X11Parameters=home_xauthority<br>
</div>
</blockquote>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">But I still fail to run a process that
requires X11. Namely, with one liners, the following fails :</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> ssh -X myuser@mygateway "srun --x11
xclock"<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">but the following works :</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> ssh -o "ProxyCommand=ssh -W %h:%p
myuser@mygateway" -X slurmhost "srun --x11 xclock"<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Also, I forgot to mention we are
running "slurm 20.02.3" on a ubuntu 20.04 slurmhost and ubunut
18.04 gateway.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Best;</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Jeremy.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 13/12/2021 09:44, Stuart MacLachlan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:PAXP191MB19492652F0CAAB6A77995CD7E9749@PAXP191MB1949.EURP191.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@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;}@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0cm;}ul
{margin-bottom:0cm;}</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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">HI
Jeremy,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I
have just gone through setting this up with exactly the same
issues. Not sure what your settings are or what you may
have so far tried, but hopefully this will help…<o:p></o:p></span></p>
<ol style="margin-top:0cm" type="1" start="1">
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
style="mso-fareast-language:EN-US">Make usre Slurm >
V17.11 (looks like when X forwarding was brought in
instead of using SPANK plugin)<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
style="mso-fareast-language:EN-US">Make sure Slurm is
compiled with
</span><span lang="EN-US">libssh2-dev libraries available –
not sure if this is the right dependency or if it is
required, but I read it somewhere (which I now can’t find
the link)…</span><span style="mso-fareast-language:EN-US"><o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
style="mso-fareast-language:EN-US">Add “x11” to the
PrologFlags line in slurm.conf – my line looks like
“PrologFlags=x11”<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
style="mso-fareast-language:EN-US">Add a new line in
slurm.conf – “X11Parameters=home_xauthority”<o:p></o:p></span></li>
<li class="MsoListParagraph"
style="margin-left:0cm;mso-list:l0 level1 lfo1"><span
style="mso-fareast-language:EN-US">Update your slurm
cluster and restart.<o:p></o:p></span></li>
</ol>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Steps
3&4 seemed to be the key ones I originally missed –
especially 4 (<a
href="https://slurm.schedmd.com/slurm.conf.html#OPT_X11Parameters"
moz-do-not-send="true">https://slurm.schedmd.com/slurm.conf.html#OPT_X11Parameters</a>)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hope
that helps and good luck!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Stuart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span
lang="EN-US"> slurm-users
<a class="moz-txt-link-rfc2396E" href="mailto:slurm-users-bounces@lists.schedmd.com"><slurm-users-bounces@lists.schedmd.com></a>
<b>On Behalf Of </b>Jeremy Fix<br>
<b>Sent:</b> 07 December 2021 14:05<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:slurm-users@lists.schedmd.com">slurm-users@lists.schedmd.com</a><br>
<b>Subject:</b> [slurm-users] Failed to forward X11 with
a remote scheduler<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" style="width:100.0%" width="100%"
cellspacing="0" cellpadding="0" border="0" align="left">
<tbody>
<tr>
<td style="background:#A6A6A6;padding:5.25pt 1.5pt 5.25pt
1.5pt"><br>
</td>
<td style="width:100.0%;background:#EAEAEA;padding:5.25pt
3.75pt 5.25pt 11.25pt" width="100%">
<div>
<p class="MsoNormal"
style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly"><span
style="font-size:9.0pt;font-family:"Segoe
UI",sans-serif;color:#212121">You don't often
get email from
<a href="mailto:jeremy.fix@centralesupelec.fr"
moz-do-not-send="true">jeremy.fix@centralesupelec.fr</a>.
<a
href="http://aka.ms/LearnAboutSenderIdentification"
moz-do-not-send="true">Learn why this is
important</a><o:p></o:p></span></p>
</div>
</td>
<td style="width:56.25pt;background:#EAEAEA;padding:5.25pt
3.75pt 5.25pt 3.75pt;align:left" width="75">
<br>
</td>
</tr>
</tbody>
</table>
<div>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt
2.0pt 2.0pt">
<p class="MsoNormal"
style="line-height:12.0pt;background:#FFEB9C"><span
style="font-size:10.0pt;color:#9C6500">[EXTERNAL SENDER]</span><span
style="font-size:10.0pt;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p>Hi, <o:p></o:p></p>
<p>I'm unsuccessful in running an X11 application with a
remote SlurmctldHost. Let us call myfrontalnode the node
from which the user is running the slurm commands that is
different from the host SlurmctldHost.<o:p></o:p></p>
<p>What fails is the following :<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p>ssh -X myfrontalnode<o:p></o:p></p>
<p>srun --x11 xclock<o:p></o:p></p>
</blockquote>
<p>which returns a "Can't open display: localhost:56.0"<o:p></o:p></p>
<p>If I run the xclock with a ssh -X on the compute node
(even the same allocated by slurm with the above srun), it
works. Namely, the following works :<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p>ssh -X myfrontalnode<o:p></o:p></p>
<p>ssh -X mycomputenode xclock<o:p></o:p></p>
</blockquote>
<p>The xclock is correctly displayed on my local host;<o:p></o:p></p>
<p>Also, If I connect to the SlurmctldHost and then srun
--x11 it works as well. I believe there is something I did
not configure correctly on the myfrontalnode.<o:p></o:p></p>
<p>Thank you for your help;<o:p></o:p></p>
<p class="MsoNormal">Jeremy. <o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Jérémy Fix (PhD)
Assistant Professor
CentraleSupélec
2 rue Edouard Belin
57070 Metz, France
Tél: +33(0)387 76 47 70
Fax: +33(0)387764700
Email: <a class="moz-txt-link-abbreviated" href="mailto:Jeremy.Fix@centralesupelec.fr">Jeremy.Fix@centralesupelec.fr</a>
Homepage : <a class="moz-txt-link-freetext" href="http://malis.metz.supelec.fr/~fix_jer">http://malis.metz.supelec.fr/~fix_jer</a></pre>
</body>
</html>