CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Problme to open FoamX (https://www.cfd-online.com/Forums/openfoam-installation/57404-problme-open-foamx.html)

yoshikiy February 6, 2006 20:37

Hi everyone, When I opened
 
Hi everyone,

When I opened FoamX window by typing "FoamX", the FoamX window appered, but told that "Default name service could not contacted"

I am using 64bit Fedora core 4. I installed all 5 files of AMD Linux 64bit version. Also I found one of the OpenFOAM discussion saying that "for fedora core 4 users you need to install xorg-deprecated-libs, just do yum install libXp.so.6" So I did this.

When I opened FoamX, I first typed
export WM_64="on"
and type
. .bashrc
and type
FoamX

Then it tells "Defult name service could not contacted" and also shows the following messages

Starting NameServer with inet:localhost.localdomain:1234 ...
Starting FoamX Host Browser with inet:localhost.localdomain:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.2 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Feb 06 2006
Time : 15:00:59
Host : localhost.localdomain
PID : 24614
Root :
Case :
Nprocs : 1
HostBrowser running.....
Using jar /home/yoshikiy/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX/ lib/FoamX.jar
Using jar /home/yoshikiy/OpenFOAM/OpenFOAM-1.2/applications/utilities/preProcessing/FoamX/ lib/jlfgr-1_0.jar
FoamX.Exceptions.FoamXException: Default name service could not be contacted.
at FoamX.App.initialiseHostBrowser(App.java:512)
at FoamX.App.initialise(App.java:343)
at FoamX.App.main(App.java:186)
/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/bin/runFoamXHB: line 131: 24614 Killed FoamXHostBrowser -ORBNamingAddr $myIOP
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 24610).
/home/yoshikiy/OpenFOAM/OpenFOAM-1.2/bin/runFoamXHB: line 66: 24610 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref </dev/null

Could someone give me advice to solve this problem?

Thank you for your time.

jens_klostermann February 7, 2006 02:20

Hi Yoshiki, Did you install
 
Hi Yoshiki,

Did you install j2sdk1.4.2_05.linux.tgz for java? FoamX needs java tor run. Maybe this is the problem?

Regards Jens

yoshikiy February 7, 2006 03:37

Yes, I installed j2sdk1.4.2=05
 
Yes, I installed j2sdk1.4.2=05.linuxAMD64.tgz in $HOME/OpenFOAM/linuxAMD64.

And when I executed the 'foamInstallationTest', there was no error.

mattijs February 7, 2006 04:55

Probably your nsd isn't runnin
 
Probably your nsd isn't running. This is the Mico name server that gets started by the runFoamX script. Put some print statements around the invocation and see with what arguments it gets called and if it runs after that.

I don't tend to run FoamX in 64 bit mode so cannot comment any more specific.

bill February 16, 2006 21:53

I had the same message on a 32
 
I had the same message on a 32bit machine with Fedora 4. If you turn off the SELinux security (and reboot), FoamX will work. Desktop->System settings->Security Level. No doubt it is possible to more selectively open up whatever FoamX needs...

mss November 6, 2006 10:13

Hej , I did some changes.
 
Hej ,
I did some changes.
I have add the IP address in two files:

/etc/hosts
and in
/etc/resolve.conf

and made the link:

ln -s hosts /etc/sysconfig/networking/profile/default/hosts

but I still recive the same error message.
--------------------------------------------------
FoamX.Exceptions.FoamXException: Default name service could not be contacted.
-------------------------------------------------

Do you have any idea what I am doing wrong?

Thank you for help,
Rita

P.S: and I switched of FireWall.

philippose November 7, 2006 12:06

Hello, Yoshiki, FoamX and t
 
Hello,
Yoshiki, FoamX and the Foam Host Browser (runFoamXHSB) does not run with the computer name set to "localhost". You need to provide your computer with a name other than "localhost".

Rita... You need to have something like this in your /etc/hosts file:

127.0.0.1 localhost.localdomain localhost <name_you_choose>

And you dont need any reference to your local computer IP address in /etc/resolv.conf

Now... if you make this change to only your /etc/hosts file, I think it will be overwritten at the next reboot... to prevent this, make the same change also to the file:

/etc/sysconfig/networking/profile/default/hosts

And again, you dont need any reference to your local IP address in the copy of the resolv.conf file which also exists in

/etc/sysconfig/networking/profile/default

Also, you need to remove the symbolic link you made for the hosts file....

Try this out, it should work.

As for those who run Fedora linux systems with SELinux enabled.... there is no need to disable SELinux, all you need to do is, to go to:

Administration-> Security Level and Firewall-> the SELinux tab-> Modify SELinux Policy

And under that... in the list.. go to:

Memory Protection, and put a tick next to the option:

"Allow all unconfined executables to use libraries requiring text relocation that are not labeled textrel_shlib_t"

Close and restart your computer, and that should solve the remaining problems (provided your hostname is not set to "localhost" or "localhost.localdomain" :-)!!)


Philippose

ibird November 17, 2006 16:55

Sorry for my english I am o
 
Sorry for my english

I am on Linux Fedora Core 4

I have se same problem of Yoshiki Yamazaki

"Defult name service could not contacted"

Server start on localhost.localdomain 1234

i have added to etc/host
127.0.0.1 localhost.localdomain localhost ibird
so DNS resolve 127.0.0.1 for ibird.

I haven' t Memory Protection into Modify SELinux Policy
i have items like

Compatibility
FTP
HTTPD Service
Kerberos
Name Service
.......
.......

but no Memory menagement

So i have started FoamX, don' t work

Now i have thiked that i should insert ibird somewhere saying FoamX to connect with ibird name changing the file FoamXClient.cfg

the lines

#org.omg.CORBA.ORBInitialPort=1234
#org.omg.CORBA.ORBInitialHost=penfold

with

I am on Linux Fedora Core 4

I have se same problem of Yoshiki Yamazaki

"Defult name service could not contacted"

Server start on localhost.localdomain 1234

i have added to etc/host
127.0.0.1 localhost.localdomain localhost ibird
so DNS resolve 127.0.0.1 for ibird.

I haven' t Memory Protection into Modify SELinux Policy
i have

Compatibility
FTP
HTTPD Service
Kerberos
Name Service
.......
.......

So i have started FoamX, don' t work

Now i have thiked that i should insert ibird somewhere saying FoamX to connect with ibird name changing the file FoamXClient.cfg

the lines

#org.omg.CORBA.ORBInitialPort=1234
#org.omg.CORBA.ORBInitialHost=ibird

Don' t work i have tried to change the port with
1235, but the nsd server start always with 1234 and localhost.localdomain, i have also controlled
the variable FOAMX_CONFIG and point to the folder
with FoamXClient.cfg, but it seem that changing this file has no effect

where is my mistake ?

ibird November 17, 2006 18:16

OK i have solved the problem w
 
OK i have solved the problem with the hostname

now i have the problem with SELinux, if i don' t disable it FoamX don' t work, and i don' t have the item Memory protection into SELinux policy

Any ideas ?

philippose November 18, 2006 17:19

Hello Pietro, Sorry for th
 
Hello Pietro,
Sorry for the delay.... wasnt at home! So... You are using a Fedora Core 4 installation.

In this case, you need to go to SELinux->Modify SELinux Policy -> "Compatibility" , and put a tick next to the option...:

"Allow the use of Shared Libraries with Text Relocation"

But, just to be sure, can you probably give me more information regarding the error message which FoamX puts out before it quits?

Have a nice weekend!

Philippose

ibird November 18, 2006 19:41

Is checked but don' t work
 
Is checked but don' t work

the messages are

Starting NameServer with inet:ibird:1234 ...
Starting FoamX Host Browser with inet:ibird:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Nov 19 2006
Time : 03:44:30
Host : ibird
PID : 13830
Root :
Case :
Nprocs : 1
HostBrowser running.....
Using jar /home/I-BIRD/OpenFOAM/OpenFOAM-1.3/applications/utilities/preProcessing/FoamX/li b/FoamX.jar
Using jar /home/I-BIRD/OpenFOAM/OpenFOAM-1.3/applications/utilities/preProcessing/FoamX/li b/jlfgr-1_0.jar
FoamX.Exceptions.FoamXException: Default name service could not be contacted.
at FoamX.App.initialiseHostBrowser(App.java:512)
at FoamX.App.initialise(App.java:343)
at FoamX.App.main(App.java:186)


then the message box with Default name service could not be contacted is displayed

closing the program

/home/I-BIRD/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 131: 13830 Killed FoamXHostBrowser -ORBNamingAddr $myIOP
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 13825).
/home/I-BIRD/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 66: 13825 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_CONFIG/ns.ref </dev/null


with SELinux disabled work

philippose November 19, 2006 04:31

Hi Pietro, Looks like your
 
Hi Pietro,
Looks like your default SELinux settings are not allowing the FoamX system to start up as it should..

One thing you can try is.... enable SELinux again, and reboot your system (to re-enable all the SELinux policies).

Then... run FoamX. After FoamX quits with the "Unable to contact Name Server" error, login as root in a console.

And then, at the prompt... try:

audit2allow -M local < /var/log/messages

This command looks into your log file, and tries find the different requests which were blocked by SELinux, and creates a set of policies to allow thse requests in the future.

Once the command is run, you need to run the following command:

/usr/sbin/semodule -i local.pp

And then... reboot the computer.

When you run "audit2allow" if it comes up with an error asking you to install the checkpolicy rpm package... use yum to install it using:

yum install checkpolicy

Hope this helps.... I havent tried it myself, but theoretically this should work :-)!

Philippose

7islands November 25, 2006 18:32

Do your Linux distribution use
 
Do your Linux distribution use nscd (the name service cache daemon) by default? If so make sure nscd is up and running. I got the same 'Default name service could not be contacted' GUI message box when I turned off nscd on SUSE 10.1.

ianz8802 March 10, 2007 13:30

where would i find the nscd op
 
where would i find the nscd option? i use fedora core 6.

7islands March 10, 2007 20:27

I'm not sure because I'm not a
 
I'm not sure because I'm not a Fedora user... anyone else?

sega April 15, 2008 12:37

I have the same problem. When
 
I have the same problem.
When starting FoamX there is this message:

A server already seems to be running.
(Detected server reference /home/sega/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/FoamX/ns.ref)
Do you want to kill this server? (n)

I cant do anything except typing "n".
Then the message "Default name service could not contacted" is displayed in the FoamX-GUI.

What is the problem?
FoamX was working well until today ...

platopus April 15, 2008 15:10

Sebastian, It sounds like
 
Sebastian,

It sounds like the name server isn't responding to requests.

Try

killall -w -9 nsd

in a shell session, then try to run FoamX again.


Regards, Graeme.

platopus April 15, 2008 15:19

Sebastian, Perhaps that sho
 
Sebastian,

Perhaps that should be

killall -w -s SIGKILL nsd

or

killall -w -s 9 nsd


Regards, Graeme.

platopus April 15, 2008 15:36

Sebastian, on a closer read
 
Sebastian,

on a closer reading of the man pages, I was right the first time, and the first option in my second message here was okay too. The second option in my second email might not work.

You might ask why you are getting this error in the first place, and why FoamX won't kill nsd for you.

The answer is that a normal kill uses the SIGTERM signal (15), which can be blocked. There are a couple of signals which cannot be blocked, and this SIGKILL, number 9, is one of them.

Which makes me think that perhaps this isn't your problem. When you say "I cant do anything except typing "n"." do you mean that you don't get any further if you type 'y'? What happens, exactly?


Regards, Graeme.

sega April 15, 2008 16:35

Well, I could solve this probl
 
Well, I could solve this problem by deleting (renaming) the /home/sega/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/apps/FoamX/ns.ref file.

Now everything is running as usual.

When I was typing "y" the program was simply quitting.

platopus April 15, 2008 17:51

I see, I think. Probably some
 
I see, I think. Probably some type of lock file.

Have you rebooted since you started having the problem?


Regards, Graeme.

sega April 16, 2008 02:00

Yes. All is working properly n
 
Yes. All is working properly now.

Greetings.


All times are GMT -4. The time now is 20:40.