I am having problems to connect live to a simulation running on a Linux cluster. Say that I have a simulation job 9876 running in one of the compute nodes of the cluster, and a pvserver job 1234 running on another compute node. The pvserver being used is the headless (osmesa) 5.7.0, as downloaded from ParaView’s website. I start by a shell in my local machine:
From this point on, I am able to connect my local ParaView GUI (version 5.7.0, as downloaded from ParaView’s website) to the pvserver running on compute node 1234 of the cluster. Then comes the next commands:
But then it starts to print the following line on the shell, multiple times until the simulation is finished:
connect_to localhost port 22222: failed.
ParaView GUI doesn’t crash, neither disconnects from the pvserver neither outputs any further message.
Could you help me figure out what is going on? The simulation is built with Catalyst 5.7.0 (built from source) and successfully generates the post-mortem VTK files.
Why is this needed? Can’t node9876 (assuming that’s the one running the simulation) directly connect back to node1234 (node running pvserver)? If so, you should just edit the Catalyst Python script to change the host name for the ParaView server to be node1234.
I am not entirely sure where this error is coming from? I cannot find any error message in ParaView (or VTK) code base that begins with “connect_to”.
for the name of the compute node, but we use Slurm in our cluster: every time you submit a job (be it the simulation or the pvserver), it goes to a different compute node. We don’t want to have to manually modify the python script every time we want to see the simulation live. Futhermore, we would like to be able to start the pvserver after the simulation (which itself can last for days), connect to it live, see how it is going, disconnect, repeat the following day, etc. So we came up with the approach above, which worked for ParaView 5.5.2. We would like to upgrade everything related to ParaView / Catalyst, but it fails to connect live to the simulation with this message above (printed on terminal, on the same shell you run the ssh commands).
I’d still debug this in steps. First, set the pvserver hostname explicitly in the python script and make sure that that works. If so, then the issue is with the ssh -R …`.
FWIW, the pvserver will open a server-socket on the port 2222 on node1234 and await connections back from Catalyst script.
Thanks Utkarsh. Doing your way, I can see the simulation’s input appear in ParaView’s pipeline browser; but as soon as I click on it, the pvserver crashes and ParaView’s GUI closes with the following output:
( 380.357s) [paraview ]vtkSocketCommunicator.c:808 ERR| vtkSocketCommunicator (0x17159a0): Could not receive tag. 1
On its turn, the following is printed on the shell where I started the pvserver: