<div dir="ltr">There are differences for X11 between Slurm versions so it may help to know which version you have.<div><br></div><div>I tried some of your commands on our slurm 19.05.3-2 cluster, and interestingly on the session on the compute node I don't see the cookie for the login node:  This was with MobaXterm:</div><div><br></div><div>[user@prdubrvm005 ~]$ xauth list<br><a href="http://prdubrvm005.research.rcsi.com/unix:10">prdubrvm005.research.rcsi.com/unix:10</a>  MIT-MAGIC-COOKIE-1  2efc5dd851736e3848193f65d038eca8<br>[user@prdubrvm005 ~]$ srun --pty  --x11  --preserve-env /bin/bash<br>[user@prdubrhpc1-02 ~]$ xauth list<br><a href="http://prdubrhpc1-02.research.rcsi.com/unix:95">prdubrhpc1-02.research.rcsi.com/unix:95</a>  MIT-MAGIC-COOKIE-1  2efc5dd851736e3848193f65d038eca8<br>[user@prdubrhpc1-02 ~]$ echo $DISPLAY<br>localhost:95.0<br></div><div><br></div><div>Any per-user problem would make me suspect the user having a different shell, or something in their login script.  Can you make their .bashrc and .bash_profile just exit?  Or look for hidden configuration files for <something> in their home directory?</div><div><br></div><div>William</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 24 Jan 2020 at 16:05, Simon Andrews <<a href="mailto:simon.andrews@babraham.ac.uk">simon.andrews@babraham.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-GB">
<div class="gmail-m_-6465658655594175931WordSection1">
<p class="MsoNormal">I have a weird problem which I can’t get to the bottom of.  <u></u>
<u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We have a cluster which allows users to start interactive sessions which forward any X11 sessions they generated on the head node.  This generally works fine, but on the account of one user it doesn’t work.  The X11 connection to the head
 node is fine, but it won’t transfer to the compute node.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The symptoms are shown below:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">A good user gets this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[good@headnode ~]$ xauth list<u></u><u></u></p>
<p class="MsoNormal"><a href="http://headnode.babraham.ac.uk/unix:12" target="_blank">headnode.babraham.ac.uk/unix:12</a>  MIT-MAGIC-COOKIE-1  f04a2bf9a921a3357e44373655add14a<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[good@headnode ~]$ echo $DISPLAY<u></u><u></u></p>
<p class="MsoNormal">localhost:12.0<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[good@headnode ~]$ srun --pty -p interactive --x11  --preserve-env /bin/bash<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[good@compute ~]$ xauth list<u></u><u></u></p>
<p class="MsoNormal"><a href="http://headnode.babraham.ac.uk/unix:12" target="_blank">headnode.babraham.ac.uk/unix:12</a>  MIT-MAGIC-COOKIE-1  f04a2bf9a921a3357e44373655add14a<u></u><u></u></p>
<p class="MsoNormal">compute/unix:25  MIT-MAGIC-COOKIE-1  f04a2bf9a921a3357e44373655add14a<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[good@compute ~]$ echo $DISPLAY<u></u><u></u></p>
<p class="MsoNormal">localhost:25.0<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So the cookie is copied from the head node and forwarded and the DISPLAY variable is updated.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The bad user gets this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[bad@headnode ~]$ xauth list<u></u><u></u></p>
<p class="MsoNormal"><a href="http://headnode.babraham.ac.uk/unix:10" target="_blank">headnode.babraham.ac.uk/unix:10</a>  MIT-MAGIC-COOKIE-1  c39a493a37132d308b37469d363d8692<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[bad@headnode ~]$ echo $DISPLAY<u></u><u></u></p>
<p class="MsoNormal">localhost:10.0<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[bad@headnode ~]$ srun --pty -p interactive --x11  --preserve-env /bin/bash<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[bad@compute ~]$ xauth list<u></u><u></u></p>
<p class="MsoNormal"><a href="http://headnode.babraham.ac.uk/unix:10" target="_blank">headnode.babraham.ac.uk/unix:10</a>  MIT-MAGIC-COOKIE-1  c39a493a37132d308b37469d363d8692<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[bad@compute ~]$ echo $DISPLAY<u></u><u></u></p>
<p class="MsoNormal">localhost:10.0<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So the cookie isn’t copied and the DISPLAY isn’t updated.  I can’t see any errors in the logs and I can’t see anything different about this account.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If I do a straight forward ssh -Y from the head node to a compute node from the bad account then that works fine – it’s only whatever is specific about the way that srun forwards X which fails.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any ideas or suggestions for debugging would be appreciated as I’m running out of things to try!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Simon.<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u><u></u><u></u><u></u><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">The Babraham Institute, Babraham Research Campus, Cambridge CB22 3AT
</span><i><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(54,95,145)">Registered Charity No. 1053902.</span></i><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">The information transmitted in this email is directed only to the addressee. If you received this in error, please contact the sender
 and delete this email from your system. The contents of this e-mail are the views of the sender and do not necessarily represent the views of the Babraham Institute.
</span><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(54,95,145)">Full conditions at:
</span><a href="http://www.babraham.ac.uk/terms" target="_blank"><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(54,95,145)">www.babraham.ac.uk</span></a><span style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(54,95,145)"><u></u><u></u></span></p>
</div>

</blockquote></div>