[slurm-users] Slurm 18.08 X11 Errors

Luca Cenzato luca.cenzato at gmail.com
Fri Oct 5 10:19:37 MDT 2018


Hi Nathan,

we follow your input but we weren't able to succeed only changing xauth.


Current status (we've updare to 18.08.1)
is that we log in with X2go; DISPLAY is =:50 (for example)
we set it to DISPLAY=$HOSTNAME:50.0
and after stopping firewalld, disabling SELinux and changing a bit
sshd_config
we've obtained a working X11.

We'll go on to narrow the changes; I'll update if something useful comes
out.

Bye,
Luca

Il giorno lun 17 set 2018 alle ore 20:51 Nathan R.M. Crawford <
nrcrawfo at uci.edu> ha scritto:

> Hi Luca,
>
>   I hit something similar with 17.11.9-2 (and earlier 17.11 releases) on
> CentOS 7.5, but it may not be your issue. For us, the xauth entry generated
> through "srun --x11" only has the short hostname, but the entry created
> with "ssh -X" has the full host name. Example lines from "xauth list":
>
> c-17-29.gp.local/unix:10  MIT-MAGIC-COOKIE-1
> c0b1421ae0ad5b5b4e84dbc78030a044
> c-17-29/unix:66  MIT-MAGIC-COOKIE-1  0298d5ce95ad67cb3bbfce549d280dc1
>
>   The long hostname works, the short doesn't. Unitl I can figure out where
> I mis-configured something (suggestions welcome!), this is the one-liner I
> have people use:
>
> xauth add $(hostname)/$(xauth list | grep $(hostname -s)/unix | cut -d/
> -f2)
>
>   It has the side effect of accumulating xauth entries (srun normally
> deletes the one it creates), so I hope to find a fix before that becomes a
> problem.
>
> -Nate
>
> On Mon, Sep 17, 2018 at 12:27 AM Luca Cenzato <luca.cenzato at gmail.com>
> wrote:
>
>> Hi Loris,
>>
>> yes, I am using "-X"; it's aliased and I forgot to wrote "\ssh -X" in the
>> tests.
>>
>> I forgot also that:
>> all servers are running CentOs 7.5;
>> I've updated from 17.11.9-2 (not tested, only checked the installation
>> procedure)
>>
>> Thanks!
>> Luca
>>
>>
>> Il giorno lun 17 set 2018 alle ore 07:51 Loris Bennett <
>> loris.bennett at fu-berlin.de> ha scritto:
>>
>>> Luca Cenzato <luca.cenzato at gmail.com> writes:
>>>
>>> > Hi,
>>> >
>>> > I'm trying to deploy slurm scheduler but I'm facing some issue with
>>> x11; I got this error :
>>> > srun: error: Cannot forward to local display. Can only use X11
>>> forwarding with network displays.
>>> > when I try to launch a job from a slurm login to a slurm node.
>>> >
>>> > Here some tests:
>>> >
>>> > from notebook [NB] -> slurm login server [SLS] -> slurm node server
>>> [SNS]
>>> >
>>> > ###
>>> > ssh
>>> > ###
>>> >
>>> > [NB] : ssh -> [SLS] : xeyes
>>>
>>> Shouldn't you be using -X when connecting from NB to SLS?
>>>
>>> > OK
>>> >
>>> > [NB] : ssh -> [SLS] : \ssh -X [SNS] : xeyes
>>> > OK
>>> >
>>> > [NB] : ssh -> [SLS] : srun --x11 --pty bash -> [SNS] : xeyes
>>> > X11 connection rejected because of wrong authentication.
>>> > Error: Can't open display: localhost:59.0
>>> >
>>> > ####
>>> > x2go
>>> > ####
>>> >
>>> > [NB] : x2go -> [SLS] : xeyes
>>> > OK
>>> >
>>> > [NB] : x2go -> [SLS] : srun --x11 --pty bash
>>> > srun: error: Cannot forward to local display. Can only use X11
>>> forwarding with network displays.
>>> >
>>> > [NB] : x2go -> [SLS] : srun --pty bash -> [SNS] : xeyes
>>> > Error: Can't open display: :50
>>> >
>>> > [NB] : x2go -> [SLS] : srun --pty bash -> [SNS] : export
>>> DISPLAY=[SLS]:50 ; xeyes
>>> > OK
>>> >
>>> > {same behaviour as X2go for VNC.}
>>> >
>>> > Any hints please ?
>>> >
>>> > Thanks,
>>> > Luca
>>> >
>>> --
>>> Dr. Loris Bennett (Mr.)
>>> ZEDAT, Freie Universität Berlin         Email loris.bennett at fu-berlin.de
>>>
>>>
>
> --
>
> Dr. Nathan Crawford              nathan.crawford at uci.edu
> Modeling Facility Director
> Department of Chemistry
> 1102 Natural Sciences II         Office: 2101 Natural Sciences II
> University of California, Irvine  Phone: 949-824-4508
> Irvine, CA 92697-2025, USA
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20181005/5e2391df/attachment-0001.html>


More information about the slurm-users mailing list