CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

FoamX Error after upgrade to Fedora Core 6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2006, 16:20
Default Hello, Good day! I i
  #1
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello,
Good day!

I installed the latest Fedora Core (FC6) a day ago, and reinstalled the OpenFOAM 1.3 system as I had done in my previous linux version (Fedora Core 5).

Everything works fine, except for FoamX. When I run "FoamX", the system successfully starts the FoamXHB and creates a name server with:

inet:localhost.localdomain:1234

Once the HostBrowser is up, it continues to load the Java CaseBrowser. At this stage, it quits with the error:

"Default name service could not be contacted"

I tried running just "runFoamXHB" in one console.... it ran fine, and then used the administrative tools.... "iordump" and "nsadmin", to see if there was anything amiss.... everything seems to be fine.

Then when I run FoamX from another console, it finds the running server (from nsd.ref), and tries to connect to it, but exits with the same error.

Does anyone have any suggestions on what this might be? I have opened the port 1234 as both tcp and udp in the firewall, and looked through SELinux for anything obvious which might be blocking access... but have not found anything so far.

Any leads will be welcome :-) While I continue snooping around under the hood!

Have a nice weekend!

Philippose
philippose is offline   Reply With Quote

Old   October 29, 2006, 05:42
Default Hi again, Looks like perse
  #2
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi again,
Looks like perseverance does pay off after all :-)! Got it working finally! As it is with most problems, once it is solved one wonders why the solution didnt strike you straight-away!

Anyway, it was just a question of setting a hostname alias. A change using "hostname <name>" in the console did not help, because that change somehow does not get reflected to the system.

I had to set the hostname using the network settings in KDE (or Gnome too I am sure!), and it worked.

Was wondering.... is there a specific reason why the CORBA name service does not work when the hostname is set to "localhost" or "localhost.localdomain" ?

So... have a working OpenFOAM 1.3 on Fedora Core 6 now!

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   October 30, 2006, 04:59
Default > is there a specific reason .
  #3
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
> is there a specific reason ... "localhost"

Guess since it is not unique. The IOR might get picked up by a process running on another machine who interprets localhost again.
mattijs is offline   Reply With Quote

Old   October 30, 2006, 13:51
Default Hi Mattijs, That does make
  #4
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi Mattijs,
That does make sense.... it would be ambiguous in an environment with more than one Host running the Foam name service...

Maybe we should make a simple change to the FoamX script which lets the user know when a Hostname is not valid, and quits before creating the CORBA name service

Currently, the problem is, that the Host runs, and successfully creates a CORBA name service using "localhost", but the Java Host Browser fails to find it, and quits with a very cryptic error message.

Since the FoamX script is a normal bash script, it is easy to make this change which would save people a lot of trouble :-) (I turned the screws on every possible network related thing I could :-)!)

What do you think?

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   October 31, 2006, 04:57
Default Good idea but how do I know a
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Good idea but how do I know a hostname is not valid? If localhost is not valid then why has nsd no problems with it and only the Java bit? Is 10.0.0.127 acceptable?

For now I added a check for 'localhost' to the runFoamXHB script.
mattijs is offline   Reply With Quote

Old   October 31, 2006, 13:36
Default Hi Mattijs, You have a val
  #6
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi Mattijs,
You have a valid point there, but thing is, suppose you tell CORBA that the hostname is "10.0.0.127" for example... and it cannot find this IP address... it will quit with an error even before the name service is created by nsd.

On the other hand, "localhost" would be something which CORBA will always find to be theoretically valid, because most (if not all) unix based systems have localhost set to 127.0.0.1, and pinging "localhost" will most definitely give a valid response.

So under most circumstances, giving a simple check for "localhost" as you have done will be good enough, since other errors are detected by nsd.

When someone installs Linux for example on a standalone system, he/she wouldnt really bother to set a special hostname, since it is not required. So a check for "localhost" in my view, would be quite helpful.

Its an interesting question as to why nsd has no problem creating a name service on "localhost", but later when the CORBA system is called from within Java, it fails to find that name service.

I couldnt find any references to such a limitation in any of the CORBA documentation I came across while trying to solve that problem a few days ago.

Maybe we should look a little deeper into some form of CORBA programming documentation.

Have a nice day, and let me know if you find something interesting.

Philippose
philippose is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 13 FoamX libelfso0 and Fedora Core 4 crosby OpenFOAM Pre-Processing 23 June 24, 2008 03:01
FoamX starting on Fedora 8 x86_64 and i386 Error nsd ORBIIOPAddr %24myIOP ior %24FOAMX_CONFIGnsref %2360 devnull rationaalinen OpenFOAM Pre-Processing 6 December 2, 2007 12:40
fluent on fedora core 6 Jeferson FLUENT 7 February 9, 2007 15:43
fluent amd 64 and fedora core 5 nikos FLUENT 1 April 11, 2006 10:21
FEDORA core 2 and FLUENT tuks FLUENT 2 July 13, 2005 01:23


All times are GMT -4. The time now is 09:31.