CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Unable to run pvserver in parallel

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 17, 2010, 12:17
Default Unable to run pvserver in parallel
  #1
New Member
 
Join Date: May 2010
Posts: 6
Rep Power: 7
md_lieber is on a distinguished road
Has anybody had any success running a parallel instance of pvserver as it is included with FOAM 1.7? I compiled FOAM and ParaFoam from the git repository (1.7.x) and everything works as expected except for pvserver.

I should be able to execute "mpirun -np 8 pvserver" to start a ParaView server on a single computer with multiple CPUs (8). When I do that, however, I get 8 lines, the first of which indicates the pvserver has been started:

Listen on port: 11111
Waiting for client.....

But the following 7 lines repeat:

Listen on port: 11111
ERROR: In /home/user/OpenFOAM/ThirdParty-1.7.x/paraview-3.8.0/Servers/Common/vtkProcessModuleConnectionmanager.cxx, line 191
vtkProcessModuleConnectionManager : Failed to set up server socket.

I've found sources online that tell me that exact error message is produced when the port chosen (11111) is being used by another program. So "mpirun -np 8 pvserver" is actually launching 8 instances of pvserver, the first of which successfully grabs port 11111 and the last 7 which spit out errors because port 11111 has already been taken by the first instance.

Has anybody seen behavior like this before, and/or does anybody have any suggestion on how I could fix it? Is there anything special that needs to be done to enable MPI during paraFoam compilation? THANKS!!
md_lieber is offline   Reply With Quote

Old   August 17, 2010, 19:59
Default
  #2
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 11
7islands is on a distinguished road
Hi md_lieber,
It's because the ParaView was not compiled with MPI support. Try compiling ParaView by yourself with MPI support. Also, PV3FoamReader is not compatible with client/server mode of ParaView. Try the builtin reader of ParaView 3.8 instead (create a stub file with .foam extension under your case directory and open it from ParaView).

Additionally, you might take a look at another thread that deals with the same topic.

T
7islands is offline   Reply With Quote

Old   August 18, 2010, 00:00
Default
  #3
New Member
 
Join Date: May 2010
Posts: 6
Rep Power: 7
md_lieber is on a distinguished road
Brilliant find; my apologies for missing something so obvious already on the forums. I'm going to go read up and look into recompiling ParaView.

Thank you!
md_lieber is offline   Reply With Quote

Old   November 18, 2010, 08:12
Default
  #4
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 7
jose_rodrig is on a distinguished road
Hi,

I am having the exact same problem.

1. Did the recompilation with MPI worked out for you?

2. And after starting the servers, how should i proceed to read a OpenFOAM Case file?

THX
jose_rodrig is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Call for help! Cfx error in Parallel run. yq11ys CFX 4 July 27, 2009 10:09
Need help with the error cfdproject OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 0 April 14, 2009 15:45
Parallel Run Problems Jason CD-adapco 1 November 24, 2008 13:32
Minimum number of nodes to run CFX in parallel Rui CFX 3 April 11, 2005 20:46
How to run parallel in ICEM_CFD? Kiddo Main CFD Forum 2 January 24, 2005 09:53


All times are GMT -4. The time now is 18:29.