<div dir="ltr">Hi Philippe,<div><br></div><div>The built-in --x11 support still has some rough edges to it. Due to a timeout issue with getting xauth set up, I've been patching SLURM with these minor changes:</div><div><br></div><div>--- src/common/run_command.c_orig<span style="white-space:pre">     </span>2018-02-06 15:03:10.000000000 -0800</div><div>+++ src/common/run_command.c<span style="white-space:pre">       </span>2018-02-06 15:26:23.525128464 -0800</div><div>@@ -198,7 +198,7 @@</div><div> <span style="white-space:pre">                                       </span>      __func__, script_type, max_wait);</div><div> <span style="white-space:pre">                                  </span>break;</div><div> <span style="white-space:pre">                              </span>}</div><div>-<span style="white-space:pre">                            </span>new_wait = MIN(new_wait, MAX_POLL_WAIT);</div><div>+<span style="white-space:pre">                             </span>new_wait = MIN(new_wait, 10000);</div><div> <span style="white-space:pre">                    </span>}</div><div> <span style="white-space:pre">                   </span>i = poll(&fds, 1, new_wait);</div><div> <span style="white-space:pre">                    </span>if (i == 0) {</div><div><br></div><div><br></div><div><div>--- src/common/x11_util.c.orig<span style="white-space:pre">      </span>2018-01-19 12:51:10.400391579 -0800</div><div>+++ src/common/x11_util.c<span style="white-space:pre">  </span>2018-01-23 08:00:42.080557637 -0800</div><div>@@ -146,7 +146,7 @@</div><div> <span style="white-space:pre">       </span>xauth_argv[1] = xstrdup("list");</div><div> <span style="white-space:pre">  </span>xauth_argv[2] = xstrdup(getenv("DISPLAY"));</div><div> </div><div>-<span style="white-space:pre">       </span>result = run_command("xauth", XAUTH_PATH, xauth_argv, 100, &status);</div><div>+<span style="white-space:pre">   </span>result = run_command("xauth", XAUTH_PATH, xauth_argv, 10000, &status);</div><div> </div><div> <span style="white-space:pre">       </span>debug2("%s: result from xauth: %s", __func__, result);</div><div> </div></div><div><br></div><div>The longer wait makes it work almost everywhere on our system. However, I still have a small number of users for whom it fails and we still haven't figured out why.</div><div><br></div><div>Best,</div><div><br></div><div>jbh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 11, 2018 at 12:56 AM, Philippe Grevet <span dir="ltr"><<a href="mailto:philippe.grevet@ips2.universite-paris-saclay.fr" target="_blank">philippe.grevet@ips2.universite-paris-saclay.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000"><div>Hello,<br></div><div><br></div><div>We have some problem to use native X11 of  the new slurm version (17.11.5) compiled from source on Debain stretch.<br></div><div>Before we use the plugin spank with no problem on an older version of slurm.<br></div><div><br></div><div>I have first this error <br></div><div><span style="color:#222222;font-family:Arial,Helvetica,sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">"error: X11 forwarding not built in, cannot enable."</span></div><div><span style="color:#222222;font-family:Arial,Helvetica,sans-serif;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none"><br></span></div><div>After reading different mails,i add <br></div><div><br></div><div>in slurm.conf<br></div><div><br></div><div>PrologFLags=X11<br></div><div><span></span><div> </div><div>and in /etc/ssh/sshd_config (on  head login server of the cluster) <br></div><div><br></div><div>X11UseLocalhost=no<br></div><div><br></div><div><br></div><div>The error change and become <br></div><div><br></div><div>X11 connection rejected because of wrong authentication.</div><div><br></div><div><br></div><div>X11Forwarding is working because if i first open a interactive session, and then connect whith ssh -X on the node, the x-application is working fine and displayed on my client computer. <br></div><div><br></div><div>Then I look at .Xauthority file<br></div><div>( first i removed it and recreate a new)<br></div><div><br></div><div>#ssh -X <a>me@cluster</a><br></div><div><br></div><div>#echo $DISPLAY<br></div><div>cluster:11.0<br></div><div><br></div><div>#xauth list<br></div><div><a href="http://cluster.ips2.u-psud.fr:11" target="_blank">cluster.ips2.u-psud.fr:11</a>  MIT-MAGIC-COOKIE-1  2809a05f53f693e416682f4befa76a<wbr>39</div><div># <br></div><div>$ srun    --pty bash --init-file /etc/profile<br></div><div><br></div><div>me@node4:~$ echo $DISPLAY<br>cluster:11.0<br>#<br></div><div>#$ xauth list<br><a href="http://node4.ips2.u-psud.fr:11" target="_blank">node4.ips2.u-psud.fr:11</a>  MIT-MAGIC-COOKIE-1  2809a05f53f693e416682f4befa76a<wbr>39<br></div><div><br></div><div>###the hostname is now the hostname of the node<br></div><div><br></div><div>me@node4:~$ xeyes<br>X11 connection rejected because of wrong authentication.<br>Error: Can't open display: cluster:11.0<br><div><br></div></div><div>###But if i add :<br></div><div>#<br></div><div>me@node4:~$ xauth add <a href="http://cluster.ips2.u-psud.fr:11" target="_blank">cluster.ips2.u-psud.fr:11</a>  MIT-MAGIC-COOKIE-1  2809a05f53f693e416682f4befa76a<wbr>39</div><div><br></div><div>#I now can run x-application <br></div><div><br></div><div>Have you an idea of the problem ?<br></div><div><br></div><div>(User login/password authentification of the cluster are done again an Active Directory annuaire with sssd )<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div> <br></div><div><br></div><div><br></div><div><br></div><div><br></div><table class="m_6163408451030019927mceItemTable" width="333"><tbody><tr><td><br></td><td valign="top"><span style="font-size:10pt;font-family:terminal,monaco"><span style="font-size:10pt"><b>Philippe GREVET</b><br></span></span><div><span style="font-family:terminal,monaco"><a href="mailto:philippe.grevet@ips2.universite-paris-saclay.fr" target="_blank">philippe.grevet@ips2.<wbr>universite-paris-saclay.fr</a></span></div><div><span style="font-size:10pt"><span style="font-family:terminal,monaco">Tel   <strong>0169153393</strong>        Bureau - 241  Bâtiment -630</span> </span></div><div><span style="font-size:10pt"><span style="font-family:terminal,monaco"><a href="http://www.ips2.u-psud.fr/" target="_blank">http://www.ips2.u-psud.fr/</a></span></span></div></td></tr></tbody></table><div><br></div><span></span><br></font></span></div></div></div></div></blockquote></div><br></div>