<div dir="ltr">Yes, the network environment in TianHe-2 is weird.<div><br></div><div>However, the problem can be solved manually by set ssh port forwarding like this:<div><br></div><div>1. start pvserver on cn123 in direct connection mode and let it listen to port 11111</div><div>2. manually modify the local port forward in my PC as: -L11111:<internal ip of cn123>:11111</div><div>3. use paraview gui in my PC to connect to localhost:11111</div><div><br></div><div>I think it makes sense.</div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">程迪</font></div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">研发中心 工程师</font></div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">中国航天空气动力技术研究院</font></div><div style="line-height:21px"><font size="1" face="arial, helvetica, sans-serif" color="#000000"><font style="line-height:1.5">电话:+86-</font><span style="line-height:22.5px">l58Ol5949ll</span></font></div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">地址:<span style="border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:rgb(171,171,171)">北京市丰台区云岗西路17号院</span></font></div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">邮编:100074</font></div><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">Di Cheng</font><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">Engineer of Research Center</font></div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">China Academy of Aerospace Aerodynamics</font></div><div style="line-height:21px"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">Phone: +86-l58Ol5949ll</font></div><div style="line-height:21px"><p style="line-height:1.7;padding:0px;margin:0px;font-stretch:normal"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">Address: No.17, YunGang West Road, Fengtai District, Beijing, China</font></p><p style="line-height:1.7;padding:0px;margin:0px;font-stretch:normal"><font size="1" style="line-height:1.5" face="arial, helvetica, sans-serif" color="#000000">Zip Code:100074</font></p></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Nov 20, 2017 at 12:30 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px">---</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This syntax isn't clear to me:</div><div style="font-size:12.8px"><span class=""><div style="font-size:12.8px">> srun -n 24 pvserver -sp=15801 --mesa --use-offscreen-rendering --disable-xdisplay-test</div><div style="font-size:12.8px">---ssh -N -f -L15801:localhost:15801 though internal connection--></div></span><div style="font-size:12.8px">Where are you trying to run ssh on to open up this second (between login and compute) tunnel?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">---</div><div style="font-size:12.8px"><span class=""><div dir="ltr" style="font-size:12.8px">ERROR: In /HOME/pp569/soft/ParaView-v5.4<wbr>.1/VTK/Common/System/vtkSocket<wbr>.cxx, line 206</div><div dir="ltr" style="font-size:12.8px">vtkServerSocket (0x20e9c20): Socket error in call to bind. Address already in use.</div><div dir="ltr" style="font-size:12.8px"><br></div></span><div style="font-size:12.8px">Indicates that pvserver is trying to grab a socket that some other process owns. You might be competing with one of your other pvserver processes (from an earlier run or perhaps a misconfigured non-mpi pvserver task running on the same node from this srun invocation) or possibly your ssh tunnel process.</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">---</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">F<span style="font-size:12.8px">orward connections from desktop to login to compute are harder to setup in most cases because in general you don't know what compute node (and sometimes login node) you will get.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">---</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">I recommend using something simple like netcat to send and receive messages across each tunnel. If you can type on one side and see the text on the other, then paraview should be able to use the connection.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">---</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px">Please let us know how it goes. We would love to see ParaView running on Tianhe-2!</div></div></div><div class="gmail_extra"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div class="m_-1570997193161728558gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer<br><a href="https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g">21 Corporate Drive</a><br><a href="https://maps.google.com/?q=21+Corporate+Drive+Clifton+Park,+NY+12065&entry=gmail&source=g">Clifton Park, NY 12065</a>-8662<br>Phone: <a href="tel:(518)%20881-4909" value="+15188814909" target="_blank">518-881-4909</a></div></div></div></div></div></div></font></span><div><div class="h5">
<br><div class="gmail_quote">On Mon, Nov 20, 2017 at 11:23 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Di,<br>
<br>
While it's not entirely obvious to me what could be going wrong, you<br>
may to check these docs out instead:<br>
<a href="https://www.paraview.org/Wiki/Reverse_connection_and_port_forwarding#A_Forward_Connection_Over_an_ssh_Tunnel" rel="noreferrer" target="_blank">https://www.paraview.org/Wiki/<wbr>Reverse_connection_and_port_fo<wbr>rwarding#A_Forward_Connection_<wbr>Over_an_ssh_Tunnel</a><br>
<br>
Utkarsh<br>
<div><div class="m_-1570997193161728558h5"><br>
On Sat, Nov 18, 2017 at 7:04 AM, 程迪 <<a href="mailto:chengdi123000@gmail.com" target="_blank">chengdi123000@gmail.com</a>> wrote:<br>
> Hi everyone,<br>
><br>
> I just compiled the OSMesa version of paraview 5.4.1 on Tianhe-2<br>
> supercomputer. My trouble is to connect the pvserver running on computing<br>
> nodes while I am on login node with ssh tunnelling (-L).<br>
><br>
> Here is what I did<br>
><br>
> My computer (win7 64 bit)<br>
> ---ssh -L15801:localhost:15801 through VPN---><br>
> LN31 (login node, RHEL maybe, using slurm)<br>
>> srun -n 24 pvserver -sp=15801 --mesa --use-offscreen-rendering<br>
>> --disable-xdisplay-test<br>
> ---ssh -N -f -L15801:localhost:15801 though internal connection--><br>
> CNxxxx (computing node)<br>
><br>
> And here is the error:<br>
><br>
> ```<br>
> Waiting for client...<br>
> Connection URL: cs://cn10687:15801<br>
> ERROR: In /HOME/pp569/soft/ParaView-v5.4<wbr>.1/VTK/Common/System/vtkSocket<wbr>.cxx,<br>
> line 206<br>
> vtkServerSocket (0x20e9c20): Socket error in call to bind. Address already<br>
> in use.<br>
><br>
> ERROR: In<br>
> /HOME/pp569/soft/ParaView-v5.4<wbr>.1/ParaViewCore/ClientServerCo<wbr>re/Core/vtkTCPNetworkAccessMan<wbr>ager.cxx,<br>
> line 349<br>
> vtkTCPNetworkAccessManager (0x14ad080): Failed to set up server socket.<br>
><br>
> Exiting...<br>
> ```<br>
><br>
> It seems not working. I am pretty sure that the PC -- ssh -L through VPN --><br>
> LN works well. What happend in LN -- ssh -L --> CNxxx link?<br>
><br>
> I have searched the internet for something, I found that LLNL did some work<br>
> on it<br>
> [<a href="https://hpc.llnl.gov/data-vis/vis-software/paraview/running-paraview-in-client-server-mode" rel="noreferrer" target="_blank">https://hpc.llnl.gov/data-vis<wbr>/vis-software/paraview/running<wbr>-paraview-in-client-server-<wbr>mode</a>].<br>
><br>
> They used `ssh -R` to map from LN to CN, rather than `ssh -L` and run<br>
> paraview in RC mode, does it make any sense?<br>
><br>
> However, in Tianhe-2, the `ssh -R` is forbidden. So I cannot use this<br>
> method.<br>
><br>
> Di Cheng<br>
> Visting scholar at UConn ME Combustion Diagnostic Lab<br>
> Engineer of Research Center of China Academy of Aerospace Aerodynamics<br>
> Phone: +86-l58Ol5949ll<br>
><br>
> Address: <a href="https://maps.google.com/?q=No.17,+YunGang+West+Road,+Fengtai+District,+Beijing,+China+%0D+%3E+%0D+%3E+Zip+Code%EF%BC%9A100074&entry=gmail&source=g">No.17, YunGang West Road, Fengtai District, Beijing, China</a><br>
><br>
> <a href="https://maps.google.com/?q=No.17,+YunGang+West+Road,+Fengtai+District,+Beijing,+China+%0D+%3E+%0D+%3E+Zip+Code%EF%BC%9A100074&entry=gmail&source=g">Zip Code:100074</a><br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>