<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    Hi Pär,<br>
    <br>
    yes , you can -v or e.g. -vvv together with srun. I'm not sure,
    though, if taht shows anything X11-related, but you might try.<br>
    <br>
    <br>
    Best<br>
    Marcus<br>
    <br>
    <div class="moz-cite-prefix">On 2/28/20 3:45 PM, Pär Lundö wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:b8667dd957c342fc8ccb357f3e03c635@foi.se">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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]-->
      <style type="text/css">html { -webkit-text-size-adjust: none; -webkit-touch-callout: none;}</style>
      <div dir="ltr">
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);"><br>
          </span></div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">Hi everyone</span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);"><br>
          </span></div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">Thank you for your support.</span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">I’ve done a few changes and done some further
            testing but it has not solved my problem. </span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">Regardless of the settings for the sshd I can’t
            get it to </span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">I am able to use SSH to the node directly along
            with ”-X”-argument and get the X11 forwarding to work.</span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">Is there a debug output from srun to retrieve
            during the connection to the node?</span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">(Surely the simple answer to that is yes! I’ll try
            and locate that debug-function, or can someone help with
            that?)</span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);"><br>
          </span></div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">Best regards,</span>
        </div>
        <div dir="ltr"><span style="background-color: rgba(255, 255,
            255, 0);">Pär Lundö</span>
        </div>
        <div style="color: black; font-family: Calibri, Tahoma, Arial,
          Helvetica, sans-serif; font-size: 11pt;">
          <br>
        </div>
        <br>
        <hr style="color: black; font-family: Calibri, Tahoma, Arial,
          Helvetica, sans-serif; font-size: 11pt;">
        <b style="color: black; font-family: Calibri, Tahoma, Arial,
          Helvetica, sans-serif; font-size: 11pt;">From:</b>
        <font face="Calibri, Tahoma, Arial, Helvetica, sans-serif"><span
            style="font-size: 11pt;">"slurm-users"
            <a class="moz-txt-link-rfc2396E" href="mailto:slurm-users-bounces@lists.schedmd.com"><slurm-users-bounces@lists.schedmd.com></a></span></font>
        <br>
        <b style="color: black; font-family: Calibri, Tahoma, Arial,
          Helvetica, sans-serif; font-size: 11pt;">Sent:</b>
        <font face="Calibri, Tahoma, Arial, Helvetica, sans-serif"><span
            style="font-size: 11pt;">27 feb. 2020 12:29</span></font>
        <br>
        <b style="color: black; font-family: Calibri, Tahoma, Arial,
          Helvetica, sans-serif; font-size: 11pt;">To:</b>
        <font face="Calibri, Tahoma, Arial, Helvetica, sans-serif"><span
            style="font-size: 11pt;">"Slurm User Community List"
            <a class="moz-txt-link-rfc2396E" href="mailto:slurm-users@lists.schedmd.com"><slurm-users@lists.schedmd.com></a></span></font>
        <br>
        <b style="color: black; font-family: Calibri, Tahoma, Arial,
          Helvetica, sans-serif; font-size: 11pt;">Subject:</b>
        <font face="Calibri, Tahoma, Arial, Helvetica, sans-serif"><span
            style="font-size: 11pt;">Re: [slurm-users] Slurm 19.05
            X11-forwarding</span></font>
        <br>
        <br>
      </div>
      <div class="WordSection1">
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi
            Sean,
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> 
            </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-GB">Thank you for your reply.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-GB">I will test it asap.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-GB"><o:p> 
            </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-GB">Best regards,
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-GB">Pär Lundö
            <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
                  style="font-size:11.0pt;font-family:"Calibri",sans-serif"
                  lang="EN-US">From:</span></b><span
                style="font-size:11.0pt;font-family:"Calibri",sans-serif"
                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>Sean Crosby<br>
                <b>Sent:</b> den 27 februari 2020 10:26<br>
                <b>To:</b> Slurm User Community List
                <a class="moz-txt-link-rfc2396E" href="mailto:slurm-users@lists.schedmd.com"><slurm-users@lists.schedmd.com></a><br>
                <b>Subject:</b> Re: [slurm-users] Slurm 19.05
                X11-forwarding <o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><span lang="EN-GB"><o:p>  </o:p></span></p>
        <div>
          <div>
            <p class="MsoNormal">I remember that we had to add this to
              our /etc/ssh/sshd_config to get X11 to work with Slurm
              19.05
              <o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p>  </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">X11UseLocalhost no <o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p>  </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">We added this to our login nodes (where
              users ssh to), and then restarted the ssh server. You
              would then need to log out and log back in with X11
              forwarding again.
              <o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p>  </o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Sean <o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><o:p>  </o:p></p>
          </div>
          <div>
            <div>
              <div>
                <p class="MsoNormal" style="margin-bottom:12.0pt">--<br>
                  Sean Crosby | Senior DevOpsHPC Engineer and HPC Team
                  Lead<br>
                  Research Computing Services | Business Services<br>
                  The University of Melbourne, Victoria 3010 Australia <o:p></o:p></p>
              </div>
            </div>
            <p class="MsoNormal"><o:p>  </o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>  </o:p></p>
        <div>
          <div>
            <p class="MsoNormal">On Wed, 26 Feb 2020 at 20:52, Pär Lundö
              <<a href="mailto:par.lundo@foi.se"
                moz-do-not-send="true">par.lundo@foi.se</a>> wrote:
              <o:p></o:p></p>
          </div>
          <blockquote style="border:none;border-left:solid #CCCCCC
            1.0pt;padding:0cm 0cm 0cm
            6.0pt;margin-left:4.8pt;margin-right:0cm">
            <p class="MsoNormal" style="margin-bottom:12.0pt">Hi, <br>
              <br>
              Thank you for your quick replies.<br>
              Please bear with me as I am a newbie regarding Slurm and
              Linux.<br>
              My hostname is not a FQDN and I´m running Slurm on a local
              node (slurmctld and slurmuser are the same) just to verify
              that the X11-forwarding is working (amongst other things).<br>
              The output of "xauth list" is as follows:<br>
              "<br>
              parlun-E6540/unix:  MIT-MAGIC-COOKIE-1 
              bcf263421d143e6ba3297dfe926c68b8<br>
              #ffff#7061726c756e2d4536353430#:  MIT-MAGIC-COOKIE-1 
              bcf263421d143e6ba3297dfe926c68b8<br>
              "<br>
              I seem to be missing any ":0", i.e. to wich display or
              Xserver my user (parlun-E6540) uses?<br>
              I´ve tried adding the user "slurm", who is designated
              slurmuser, via "xhost +SI:localuser:slurm" but I still get
              the error stating that the magic cookie could not be
              retrieved.<br>
              <br>
              You are correct, X11Parameters only holds one option
              "home_xauthority".<br>
              Does this setting automatically search in the
              "/home/slurm"-dir for the Xauthority-file? (Given that the
              slurmuser is "slurm").<br>
              Trying to locate the storage where xauthoriy is present, I
              do not find it my home-dir instead it is in some other
              OS-dir.<br>
              <br>
              Searching for additional help I came across a debian
              package (xvfb) for virtual framebuffers. i.e. video/GUI is
              sent to a virtual buffer instead of a physical display.
              Anyone tried that?<br>
              I haven´t not yet installed it, but is curious if that´s a
              way to go.<br>
              <br>
              Best regards,<br>
              Pär Lundö<br>
              <br>
              -----Original Message-----<br>
              From: slurm-users <<a
                href="mailto:slurm-users-bounces@lists.schedmd.com"
                target="_blank" moz-do-not-send="true">slurm-users-bounces@lists.schedmd.com</a>>
              On Behalf Of Ryan Novosielski<br>
              Sent: den 25 februari 2020 21:23<br>
              To: <a href="mailto:slurm-users@lists.schedmd.com"
                target="_blank" moz-do-not-send="true">slurm-users@lists.schedmd.com</a><br>
              Subject: Re: [slurm-users] Slurm 19.05 X11-forwarding<br>
              <br>
              -----BEGIN PGP SIGNED MESSAGE-----<br>
              Hash: SHA1<br>
              <br>
              I seem to remember there being a config option to specify
              rewriting the hostname as well. I thought it was part of
              X11Parameters, but I only see one option there:<br>
              <br>
              <a
href="https://slurm.schedmd.com/archive/slurm-19.05-latest/slurm.conf.html"
                target="_blank" moz-do-not-send="true">https://slurm.schedmd.com/archive/slurm-19.05-latest/slurm.conf.html</a><br>
              <br>
              On 2/25/20 10:55 AM, Tina Friedrich wrote:<br>
              > I remember having issues when I set up X forwarding
              that had to do <br>
              > with how the host names were set on the nodes. I had
              them set (CentOS <br>
              > default) to the fully qualified hostname, and that
              didn't work - with <br>
              > an error message very similar to what you're getting,
              if memory serves <br>
              > right. 'Fixed' it by setting the hostnames on all my
              cluster nodes to <br>
              > the short version.<br>
              ><br>
              > What does 'xauth list' give you on your nodes (and
              the machine you're <br>
              > coming from)?<br>
              ><br>
              > This is/was SLURM 18.08 though, not sure if that
              makes a difference.<br>
              ><br>
              > Tina<br>
              ><br>
              > On 25/02/2020 04:55, Pär Lundö wrote:<br>
              >> Hi,<br>
              >><br>
              >> Thank you for your reply Patrick. I´ve tried that
              but I still get the <br>
              >> error stating that the magic cookie could not be
              retrieved.<br>
              >> Reading Tim´s answer, this bug should have been
              fixed in a release <br>
              >> following 18.08, but I´m using 19.05 thus it
              should have been taken <br>
              >> care of?<br>
              >><br>
              >> Best regards, Pär Lundö<br>
              >><br>
              >> -----Original Message----- From: slurm-users <br>
              >> <<a
                href="mailto:slurm-users-bounces@lists.schedmd.com"
                target="_blank" moz-do-not-send="true">slurm-users-bounces@lists.schedmd.com</a>>
              On Behalf Of Patrick Goetz
              <br>
              >> Sent: den 24 februari 2020 21:38 To:<br>
              >> <a href="mailto:slurm-users@lists.schedmd.com"
                target="_blank" moz-do-not-send="true">slurm-users@lists.schedmd.com</a>
              Subject: Re: [slurm-users] Slurm<br>
              >> 19.05 X11-forwarding<br>
              >><br>
              >> This bug report appears to address the issue
              you're seeing:<br>
              >><br>
              >> <a
                href="https://bugs.schedmd.com/show_bug.cgi?id=5868"
                target="_blank" moz-do-not-send="true">https://bugs.schedmd.com/show_bug.cgi?id=5868</a><br>
              >><br>
              >><br>
              >><br>
              >> On 2/24/20 4:46 AM, Pär Lundö wrote:<br>
              >>> Dear all,<br>
              >>><br>
              >>> I started testing and evaluating Slurm
              roughly a year ago and used <br>
              >>> it succesfully with MPI-programs. I have now
              identified that I need <br>
              >>> to use X-forwarding in order to make use of
              an application needed to <br>
              >>> run a GUI. However I seem not to be able to
              use the "X11Forwarding" <br>
              >>> in Slurm.conf with any sucess. A simple test
              with srun as "srun - <br>
              >>> -x11 <script-to-start>", yields an
              error stating: "srun: error: <br>
              >>> x11_get_xauth: Could not retrieve magic
              cookie. Cannot use X11 <br>
              >>> forwarding." I'm guessing that there some
              additional setting I'm <br>
              >>> missing out on.<br>
              >>> Searching through documentation does not
              reveal anything <br>
              >>> extraordinary to be performed with the
              X11-forwarding. I have <br>
              >>> searched bug-reports and found similiar
              problems but fixes have been <br>
              >>> implemented in Slurm-versions prior to the
              one I am using.<br>
              >>> In addition users have been reporting that
              the implementation made <br>
              >>> by Slurm, now have fixed their issues. I have
              used the <br>
              >>> "export=DISPLAY, HOME" as an additional
              argument for srun but <br>
              >>> without any progress. Anyone with similiar
              problem who can aid or <br>
              >>> advice me on howto use the X11Forward
              feature? Any help is much <br>
              >>> appreciated.<br>
              >>><br>
              >>> I am running Slurm 19.05 and Ubuntu 18.10.<br>
              >>><br>
              >>> Best regards, Pär Lundö<br>
              >>><br>
              >>> This message is from an external sender.
              Learn more about why this <br>
              >>> matters.<br>
              >>> <<a
                href="https://ut.service-now.com/sp?id=kb_article&number=KB0011401"
                target="_blank" moz-do-not-send="true">https://ut.service-now.com/sp?id=kb_article&number=KB0011401</a>><br>
              >>><br>
              >>><br>
              >><br>
              <br>
              - --<br>
               ____<br>
               || <a moz-do-not-send="true">\\UTGERS</a>,   
               |----------------------*O*------------------------<br>
               ||_// the State  |    Ryan Novosielski - <a
                href="mailto:novosirj@rutgers.edu" target="_blank"
                moz-do-not-send="true">
                novosirj@rutgers.edu</a><br>
               || \\ University | Sr. Technologist - 973/972.0922 ~*~
              RBHS Campus<br>
               ||  \\    of NJ  | Office of Advanced Res. Comp. - MSB
              C630, Newark<br>
                    `'<br>
              -----BEGIN PGP SIGNATURE-----<br>
              <br>
iF0EARECAB0WIQST3OUUqPn4dxGCSm6Zv6Bp0RyxvgUCXlWCNgAKCRCZv6Bp0Ryx<br>
vjTSAJ9S7WA/rYjw5ylOljq9IpPqwTsHKACfbn/nnGJvE+QHvJoJ2djkkCQjMok=<br>
              =Ju41<br>
              -----END PGP SIGNATURE----- <o:p></o:p></p>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Marcus Wagner, Dipl.-Inf.

IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
<a class="moz-txt-link-abbreviated" href="mailto:wagner@itc.rwth-aachen.de">wagner@itc.rwth-aachen.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.itc.rwth-aachen.de">www.itc.rwth-aachen.de</a>
</pre>
  </body>
</html>