Error when connecting with pvserver

Hello everyone,

because I am working with large models a colleague recommended me to work with a paraview server where I can use multiple cores. I found an instruction online how to setup up paraview for working remotely which is the following:

Make sure you install the same version on the client and on the server. Then you can run on your server:

<paraview_install>/bin/mpiexec -np 4 <paraview_install>/bin/pvserver

Than you can use your client to connect to this server.

<paraview_install>bin/paraview --url=

I have to say that my server and client is the same machine. The first time I followed the instruction everything worked fine. But when I closed paraview and opened it again I got following error and it is not possible to connect to the server and work with paraview on multiple cores anymore.

Waiting for client...
Connection URL: xxx
Accepting connection(s): xxx
Waiting for client...
Connection URL: xxx
Exiting...
(   0.064s) [pvserver        ]          vtkSocket.cxx:187    ERR| vtkServerSocket (0x56270f1acbd0): Socket error in call to bind. Address already in use.
(   0.064s) [pvserver        ]vtkTCPNetworkAccessMana:440    ERR| vtkTCPNetworkAccessManager (0x56270f0e8c90): Failed to set up server socket.
Waiting for client...
Connection URL: xxx
(   0.065s) [pvserver        ]          vtkSocket.cxx:187    ERR| vtkServerSocket (0x55cf1c3dac00): Socket error in call to bind. Address already in use.
(   0.065s) [pvserver        ]vtkTCPNetworkAccessMana:440    ERR| vtkTCPNetworkAccessManager (0x55cf1c316c90): Failed to set up server socket.
Waiting for client...
Connection URL: xxx
Exiting...
(   0.065s) [pvserver        ]          vtkSocket.cxx:187    ERR| vtkServerSocket (0x55d56baafc00): Socket error in call to bind. Address already in use.
(   0.065s) [pvserver        ]vtkTCPNetworkAccessMana:440    ERR| vtkTCPNetworkAccessManager (0x55d56b9ebc90): Failed to set up server socket.
Exiting...

Do I need to close my first connection? If so, how is that possible? Could somebody please help me? I appreciate any kind of help. If you need additional information, feel free to ask.

Many thanks and best regards,
Daniel

Hi Daniel,

Are you using paraview binaries from paraview.org or did you build it yourself?

It looks like your build of paraview does not have MPI support. What I mean here is that the PARAVIEW_USE_MPI flag was likely off during cmake configuration. It is by default off.

Please try reconfiguring it with cmake -DPARAVIEW_USE_MPI=ON <other flags>

Edit: If it worked the first time, then it has nothing to do with what I said above. You have to quit the pvserver process for it to work again because the server tries to use the same port again. Normally, if you close the paraview application window, the pvserver exits. It appears as though the pvserver did not exit for some reason.

Hi Jaswant,

exactly. The first time it did work for me … But for some reason it did not close the pvserver. Is it possible to quit the server manually or to connect to another port?

Thanks for your help.
Daniel

Did you try killing the pvserver process with kill? Usually, Ctrl-C should interrupt and quit pvserver.

or to connect to another port?

Launch pvserver with the -p argument and specify port number

-p,--sp,--server-port INT=11111
                                Port number to use to listen for connections from the client.

Hi Jaswant, thank you for your help. I was able to kill the pvserver. Now it is working fine again.

Best regards,
Daniel