<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div>I remember that we had to add this to our /etc/ssh/sshd_config to get X11 to work with Slurm 19.05</div>
<div><br>
</div>
<div>X11UseLocalhost no</div>
<div><br>
</div>
<div>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.<br>
</div>
<div><br>
</div>
<div>Sean</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<br>
Sean Crosby | Senior DevOpsHPC Engineer and HPC Team Lead<br>
Research Computing Services | Business Services<br>
The University of Melbourne, Victoria 3010 Australia<br>
<br>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, 26 Feb 2020 at 20:52, Pär Lundö <<a href="mailto:par.lundo@foi.se">par.lundo@foi.se</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">
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">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">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" rel="noreferrer" target="_blank">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">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">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" rel="noreferrer" target="_blank">
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" rel="noreferrer" target="_blank">https://ut.service-now.com/sp?id=kb_article&number=KB0011401</a>><br>
>>><br>
>>><br>
>><br>
<br>
- --<br>
 ____<br>
 || \\UTGERS,     |----------------------*O*------------------------<br>
 ||_// the State  |    Ryan Novosielski - <a href="mailto:novosirj@rutgers.edu" target="_blank">
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-----<br>
<br>
</blockquote>
</div>
</body>
</html>