<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Luca,<div><br></div><div>  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":</div><div><br></div><div><div>c-17-29.gp.local/unix:10  MIT-MAGIC-COOKIE-1  c0b1421ae0ad5b5b4e84dbc78030a044</div><div>c-17-29/unix:66  MIT-MAGIC-COOKIE-1  0298d5ce95ad67cb3bbfce549d280dc1</div></div><div><br></div><div>  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:</div><div><br></div><div>xauth add $(hostname)/$(xauth list | grep $(hostname -s)/unix | cut -d/ -f2)<br></div><div><br></div><div>  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.</div><div><br></div><div>-Nate</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 17, 2018 at 12:27 AM Luca Cenzato <<a href="mailto:luca.cenzato@gmail.com">luca.cenzato@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Loris,<div><br></div><div>yes, I am using "-X"; it's aliased and I forgot to wrote "\ssh -X" in the tests. </div><div><br></div><div>I forgot also that:</div><div>all servers are running CentOs 7.5;<br></div><div>I've updated from 17.11.9-2 (not tested, only checked the installation procedure)</div><div><br></div><div>Thanks!</div><div>Luca</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno lun 17 set 2018 alle ore 07:51 Loris Bennett <<a href="mailto:loris.bennett@fu-berlin.de" target="_blank">loris.bennett@fu-berlin.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Luca Cenzato <<a href="mailto:luca.cenzato@gmail.com" target="_blank">luca.cenzato@gmail.com</a>> writes:<br>
<br>
> Hi,<br>
><br>
> I'm trying to deploy slurm scheduler but I'm facing some issue with x11; I got this error :<br>
> srun: error: Cannot forward to local display. Can only use X11 forwarding with network displays.<br>
> when I try to launch a job from a slurm login to a slurm node.<br>
><br>
> Here some tests:<br>
><br>
> from notebook [NB] -> slurm login server [SLS] -> slurm node server [SNS] <br>
><br>
> ###<br>
> ssh<br>
> ###<br>
><br>
> [NB] : ssh -> [SLS] : xeyes <br>
<br>
Shouldn't you be using -X when connecting from NB to SLS?<br>
<br>
> OK<br>
><br>
> [NB] : ssh -> [SLS] : \ssh -X [SNS] : xeyes<br>
> OK<br>
><br>
> [NB] : ssh -> [SLS] : srun --x11 --pty bash -> [SNS] : xeyes <br>
> X11 connection rejected because of wrong authentication.<br>
> Error: Can't open display: localhost:59.0<br>
><br>
> ####<br>
> x2go<br>
> ####<br>
><br>
> [NB] : x2go -> [SLS] : xeyes <br>
> OK<br>
><br>
> [NB] : x2go -> [SLS] : srun --x11 --pty bash<br>
> srun: error: Cannot forward to local display. Can only use X11 forwarding with network displays.<br>
><br>
> [NB] : x2go -> [SLS] : srun --pty bash -> [SNS] : xeyes<br>
> Error: Can't open display: :50<br>
><br>
> [NB] : x2go -> [SLS] : srun --pty bash -> [SNS] : export DISPLAY=[SLS]:50 ; xeyes<br>
> OK<br>
><br>
> {same behaviour as X2go for VNC.}<br>
><br>
> Any hints please ?<br>
><br>
> Thanks,<br>
> Luca<br>
><br>
-- <br>
Dr. Loris Bennett (Mr.)<br>
ZEDAT, Freie Universität Berlin         Email <a href="mailto:loris.bennett@fu-berlin.de" target="_blank">loris.bennett@fu-berlin.de</a><br>
<br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><pre>Dr. Nathan Crawford              <a href="mailto:nathan.crawford@uci.edu" target="_blank">nathan.crawford@uci.edu</a>
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</pre></div></div>