Hi Rakesh,

It sounds as though the compute node cannot see your workstation across the network. This is a common situation.

for debugging the issue see if you could follow these steps:
http://paraview.org/Wiki/Reverse_connection_and_port_forwarding#A_Forward_Connection_Over_an_ssh_Tunnel

If that works you probably would like to automate the process using a ParaView client side pvsc script to establish a reverse ssh tunnel to the cluster's login node, which is presumably visible from the compute nodes, and then tell the pv server to connect to this tunnel in a server side startup script, which submits a batch job using a batch script. I'm attaching an example from NERSC's Cray called franklin, take a look and see if it helps.

Burlen

On 02/20/2012 08:53 AM, Rakesh Hammond wrote:
Hi,
I am trying to get ParaView-3.12.0 working on our visualisation cluster. However I am getting errors such as the following
"Socket error in call to conect : Connection refused"
As a bit of a background, I have ParaView-3.10.1 working in client-server mode on the same cluster. On the server, we have IntelMPI-4.0.1 and Slurm as the scheduler. I tried debugging the problem by printing stuff out in vtkSocket.cxx file - I always get the message which says "Connected" from slurm out file. The ParaView-3.12.0 client then just hangs. I did get it to work by using a machinefile (ie outside slurm) and it worked in client-server to my work station. I am not really sure what is the cause of this - my suspicion is that this either to do with IntelMPI-4.0.1 and ParaView-3.12.0 or with Slurm-2.1.4 (which is what is available on the cluster).
Can some one please give me some hints how I can debug this further?
Any pointers are greately appreciated.
Given my level of desperation, I tried with Paraview-3.14.0-RC2 and things have really changed here - for example, what happend to the PV_CLIENT_HOST variable? Is this no longer set? I also note that when you set up a profile to connect to the server in reverse-connection mode, it no longer allows you to specifiy host name - is this intentional?
Regards,
Rakesh


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

<Servers>
  <Server name="franklin" resource="csrc://">
    <CommandStartup>
      <Options>
        <Option name="REMOTE_USER" label="user name" save="true">
          <String default="bloring"/>
        </Option>
        <Option name="PV_SERVER_PORT" label="tunnel port" save="true">
          <Range type="int" min="1" max="65535" step="1" default="11111"/>
        </Option>
        <Option name="NCPUS" label="number of processes" save="true">
          <Range type="int" min="1" max="38128" step="1" default="8"/>
        </Option>
        <Option name="NCPUS_PER_NODE" label="process per node" save="true">
          <Range type="int" min="1" max="4" step="1" default="4"/>
        </Option>
        <Option name="WALLTIME" label="job wall time" save="true">
          <String default="HH:MM:SS"/>
        </Option>
        <Option name="PV_PATH" label="paraview version" save="true">
          <Enumeration default="/usr/common/graphics/ParaView/3.12.0-so">
            <Entry value="/usr/common/graphics/ParaView/3.12.0-so" 
label="3.12.0"/>
            <Entry value="/usr/common/graphics/ParaView/3.10.0-so" 
label="3.10.0"/>
            <Entry value="/usr/common/graphics/ParaView/3.8.1-so" 
label="3.8.1"/>
          </Enumeration>
        </Option>
        <Option name="QUEUE" label="queue" save="true">
          <Enumeration default="interactive">
            <Entry value="regular" label="regular"/>
            <Entry value="computation" label="computation"/>
            <Entry value="interactive" label="interactive"/>
            <Entry value="debug" label="debug"/>
            <Entry value="premium" label="premium"/>
          </Enumeration>
        </Option>
        <Option name="SSH_PATH" label="/path/to/ssh" save="true">
          <File default="/usr/bin/ssh"/>
        </Option>
        <Option name="XTERM_PATH" label="/path/to/xterm" save="true">
          <File default="/usr/bin/xterm"/>
        </Option>
      </Options>
      <Command exec="$XTERM_PATH$" timeout="0" delay="0" Arguments="0">
        <Arguments>
          <Argument value="-T"/>
          <Argument value="ParaView $REMOTE_USER$@Franklin"/>
          <Argument value="-e"/>
          <Argument value="$SSH_PATH$"/>
          <Argument value="-t"/>
          <Argument value="-R"/>
          <Argument value="$PV_SERVER_PORT$:localhost:$PV_SERVER_PORT$"/>
          <Argument value="$REMOTE_USER$@franklin.nersc.gov"/>
          <Argument value="$PV_PATH$/start_pvserver.sh"/>
          <Argument value="$NCPUS$"/>
          <Argument value="$NCPUS_PER_NODE$"/>
          <Argument value="$WALLTIME$"/>
          <Argument value="$QUEUE$"/>
          <Argument value="$PV_SERVER_PORT$"/>
        </Arguments>
      </Command>
    </CommandStartup>
  </Server>
</Servers>
#PBS -j eo
#PBS -V

echo "Starting ParaView..."
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo "PATH=$PATH"
echo "PV_NCPUS=$PV_NCPUS"
echo "PV_NCPUS_PER_NODE=$PV_NCPUS_PER_NODE"
echo "PV_LOGIN_PORT=$PV_LOGIN_PORT"
echo "PV_LOGIN_HOST=$PV_LOGIN_HOST"

aprun -n $PV_NCPUS -N $PV_NCPUS_PER_NODE pvserver --reverse-connection 
--use-offscreen-rendering --server-port=$PV_LOGIN_PORT 
--client-host=$PV_LOGIN_HOST

Attachment: start_pvserver.sh
Description: application/shellscript

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to