PVserver locally

Hi,

I was trying to setup paraview with MPI locally running

mpirun -np 4 pvserver

but I got this error

(   0.503s) [pvserver        ]          vtkSocket.cxx:202    ERR| vtkServerSocket (0x5572ec0904c0): Socket error in call to bind. Address already in use.
(   0.503s) [pvserver        ]vtkTCPNetworkAccessMana:453    ERR| vtkTCPNetworkAccessManager (0x5572ebd6b220): Failed to set up server socket.
Exiting...
Waiting for client...
Connection URL: cs://navier:11111
(   0.481s) [pvserver        ]          vtkSocket.cxx:202    ERR| vtkServerSocket (0x55b0cf810160): Socket error in call to bind. Address already in use.
(   0.481s) [pvserver        ]vtkTCPNetworkAccessMana:453    ERR| vtkTCPNetworkAccessManager (0x55b0cf2bf220): Failed to set up server socket.
Exiting...
Waiting for client...
Connection URL: cs://navier:11111
(   0.514s) [pvserver        ]          vtkSocket.cxx:202    ERR| vtkServerSocket (0x55d6a30d2a90): Socket error in call to bind. Address already in use.
(   0.514s) [pvserver        ]vtkTCPNetworkAccessMana:453    ERR| vtkTCPNetworkAccessManager (0x55d6a1ea5220): Failed to set up server socket.
Exiting...

Any idea on how to solve?

Best

How did you install ParaView ?
Is ParaView built with MPI ?
Is a pvserver already running in the background ?

Hi @mwestphal

Is ParaView built with MPI ?

I just downloaded paraview from
https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.13&type=binary&os=Linux&downloadFile=ParaView-5.13.2-MPI-Linux-Python3.10-x86_64.tar.gz

and then executing pvserver from its /bin folder

Is a pvserver already running in the background ?

No, there’s no pvserver already running

Best

what is the output of ps -ef | grep pvserver ?

when running

pvserver

the output is:

user  1862220 1862117  0 15:16 pts/9    00:00:00 /scratch/user/Apps/ParaView-5.13.1-MPI-Linux-Python3.10-x86_64/bin/pvserver
user  1862221 1862220 10 15:16 pts/9    00:00:00 /scratch/user/Apps/ParaView-5.13.1-MPI-Linux-Python3.10-x86_64/bin/pvserver-real
user  1862310 1862265  0 15:16 pts/10   00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv pvserver

So you are not running pvserver before starting mpirun -np 4 pvserver I suppose ?

Do you have services running on 11111 port ?

This is the output when I run

mpirun -np 4 pvserver
user  1864882 1854334  0 15:29 pts/7    00:00:00 mpirun -np 4 pvserver
user  1864884 1864883 19 15:29 ?        00:00:00 pvserver
user  1865037 1862265  0 15:29 pts/10   00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv pvserver

Do you have services running on 11111 port ?

How do I check that?

Wait, what about mpirun -np 4 ./bin/pvserver ?

Isn’t it the same? I have aliased pvserver to ../bin/pvserver

Is it maybe because locally I have 1 GPU and paraview is trying to use 4?

Please make sure you are actually using the pvserver from bin, in this results we see:

user  1864882 1854334  0 15:29 pts/7    00:00:00 mpirun -np 4 pvserver
user  1864884 1864883 19 15:29 ?        00:00:00 pvserver
user  1865037 1862265  0 15:29 pts/10   00:00:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv pvserver

Which is not /scratch/user/Apps/ParaView-5.13.1-MPI-Linux-Python3.10-x86_64/bin/pvserver-real as expected.

My bad… I do really apologize. It works, thanks a lot!

1 Like

:slight_smile: