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

RunFoamX fails

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 20, 2005, 20:12
Default After a few attempts, with mix
  #1
jvn
New Member
 
John Van Norman
Join Date: Mar 2009
Posts: 9
Rep Power: 8
jvn is on a distinguished road
After a few attempts, with mixed results, I got a successful run of foamInstallationTest with no critical errors. Moving on to the tutorials as described in the user guide, however, returns an error when invoking "runFoamX":

[john@gibbon ~]$ runFoamX
ls: /home/john/OpenFOAM/jobControl/runningJobs: No such file or directory
Starting NameServer with inet:gibbon:1234 ...
ls: /home/john/OpenFOAM/jobControl/finishedJobs: No such file or directory

Jobs overview (from $FOAM_JOB_DIR):
Running : 0
Finished : 0

Some of the jobs reported as running might actually no longer be running.
You can these remove old jobInfo using the FoamX ProcessEditor or with the
foamCheckJobs script.

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

Exec : FoamXHostBrowser
Date : May 20 2005
Time : 19:32:31
Host : gibbon
PID : 4251
Root :
Case :
Nprocs : 1
HostBrowser running.....
Using jar /home/john/OpenFOAM/OpenFOAM-1.1/applications/utilities/preProcessing/FoamX/lib/ FoamX.jar
Using jar /home/john/OpenFOAM/OpenFOAM-1.1/applications/utilities/preProcessing/FoamX/lib/ jlfgr-1_0.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/john/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibr aryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoa der.java:38)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.Component.<clinit>(Component.java:506)
/home/john/OpenFOAM/OpenFOAM-1.1/bin/runFoamXHB: line 131: 4251 Killed FoamXHostBrowser -ORBNamingAddr $myIOP
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 4243).
/home/john/OpenFOAM/OpenFOAM-1.1/bin/runFoamXHB: line 66: 4243 Killed nsd -ORBIIOPAddr $myIOP --ior $FOAMX_USER_CONFIG/ns.ref </dev/null


If it is of any consequence, the machine is a stand-alone and is not connected to a network, though a network card is installed anyway.

Any suggestions?

Thanks,
John
jvn is offline   Reply With Quote

Old   May 21, 2005, 07:16
Default Your problem is: Exception
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
Your problem is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/john/OpenFOAM/linux/j2sdk1.4.2_05/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

Try installing libXp.so.6 and see if it works after that.
henry is offline   Reply With Quote

Old   May 23, 2005, 08:36
Default Yes, I found out on the Fedora
  #3
jvn
New Member
 
John Van Norman
Join Date: Mar 2009
Posts: 9
Rep Power: 8
jvn is on a distinguished road
Yes, I found out on the Fedora discussion board that it was in the deprecated x11.org package. Now everything works!
Thanks again,
John
jvn is offline   Reply With Quote

Old   June 16, 2005, 06:30
Default I'm also having a hard time wi
  #4
New Member
 
Giovanni Pavolini
Join Date: Mar 2009
Posts: 6
Rep Power: 8
pavodive is on a distinguished road
I'm also having a hard time with runFoamX... I'm trying it in Fedora 3, but this is what I get:

[pavolo@localhost bin]$ runFoamX
Starting NameServer with inet:localhost.localdomain:1234 ...
uncaught MICO exception: IDL:omg.org/CORBA/INITIALIZE:1.0 (0, not-completed)

Jobs overview (from $FOAM_JOB_DIR):
Running : 0
Finished : 3

Some of the jobs reported as running might actually no longer be running.
You can these remove old jobInfo using the FoamX ProcessEditor or with the
foamCheckJobs script.

/home/pavolo/OpenFOAM/OpenFOAM-1.1/bin/runFoamXHB: line 127: 27580 Aborted nsd -ORBIIOPAddr $myIOP --ior $FOAMX_USER_CONFIG/ns.ref </dev/null


And then it hangs there...

Initially I was having problems with the FOAM_JOB_DIR, but after reading some posts here I managed to have it working. This is the result of ./foamInstallationTest:

[pavolo@localhost bin]$ ./foamInstallationTest
Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: localhost.localdomain
OS: Linux version 2.6.11-1.27_FC3
User: pavolo
User_config: /home/pavolo/.bashrc
Foam_config: /home/pavolo/.OpenFOAM-1.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/pavolo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/pavolo/OpenFOAM/pavolo-1.1 yes no
$FOAM_JOB_DIR /home/pavolo/OpenFOAM/jobControl yes yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/pavolo/OpenFOAM/OpenFOAM-1.1 yes yes yes

$FOAM_USER_APPBIN ...pavolo-1.1/applications/bin/linuxOpt yes yes no
$FOAM_APPBIN ...enFOAM-1.1/applications/bin/linuxOpt yes yes yes
$WM_DIR /home/pavolo/OpenFOAM/OpenFOAM-1.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH .../pavolo/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH ...1/src/mico-2.3.11/platforms/linuxOpt yes yes yes
$LAM_ARCH_PATH ...1.1/src/lam-7.1.1/platforms/linuxOpt yes yes yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...o/OpenFOAM/OpenFOAM-1.1/lib/linuxOpt yes yes yes
$FOAM_USER_LIBBIN ...olo/OpenFOAM/pavolo-1.1/lib/linuxOpt yes yes no
$LAM_ARCH_PATH ...1.1/src/lam-7.1.1/platforms/linuxOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 3.4.3 /home/pavolo/OpenFOAM/linux/gcc-3.4.3/bin/gcc
java 1.4.2_05 /home/pavolo/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.3 /bin/gzip
tar 1.3.3 /bin/tar
icoFoam ...penFOAM/OpenFOAM-1.1/applications/bin/linuxOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
...localhost.localdomain Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

Critical systems ok.


Thanks for your guidance!!

PavoDive
pavodive is offline   Reply With Quote

Old   June 16, 2005, 07:15
Default It looks like your $FOAMX_PATH
  #5
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
It looks like your $FOAMX_PATH variable is not pointing to the correct directory or the directory does not exist.

Please check manually whether this directory exists:
OpenFOAM/OpenFOAM-1.1/applications/utilities/preProcessing/FoamX

If it doesn't, your OpenFOAM installation is incomplete and you might want to try reinstalling.
eugene is offline   Reply With Quote

Old   June 17, 2005, 01:43
Default Eugene, Thanks for your post.
  #6
New Member
 
Giovanni Pavolini
Join Date: Mar 2009
Posts: 6
Rep Power: 8
pavodive is on a distinguished road
Eugene, Thanks for your post.
Effectively there IS a FoamX directory in that location:


[pavolo@localhost ~]$ cd $FOAMX_PATH
[pavolo@localhost FoamX]$ pwd
/home/pavolo/OpenFOAM/OpenFOAM-1.1/applications/utilities/preProcessing/FoamX
[pavolo@localhost FoamX]$ ls -lh
total 68K
-rwxr-x--- 1 pavolo pavolo 71 Jan 6 00:06 Allwmake
drwxrwxr-x 7 pavolo pavolo 4.0K Jun 17 13:11 C++
drwxrwxr-x 7 pavolo pavolo 4.0K Jun 17 13:11 config
-rw-r----- 1 pavolo pavolo 13K Apr 11 2003 current_bugs.txt
drwxrwxr-x 2 pavolo pavolo 4.0K Jun 17 13:11 Idl
drwxrwxr-x 7 pavolo pavolo 4.0K Jun 17 13:11 Java
drwxrwxr-x 2 pavolo pavolo 4.0K Jun 17 13:11 lib

as you can see, it is the same path as FOAMX_PATH...
I reinstalled it clean, but the result is still the same
(This is the relevant part of ~/OpenFOAM/OpenFOAM-1.1/bin/foamInstallationTest
) :

Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/pavolo/OpenFOAM/OpenFOAM-1.1 yes yes yes

$FOAM_USER_APPBIN ...pavolo-1.1/applications/bin/linuxOpt yes yes no
$FOAM_APPBIN ...enFOAM-1.1/applications/bin/linuxOpt yes yes yes
$WM_DIR /home/pavolo/OpenFOAM/OpenFOAM-1.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes

$CEI_HOME /usr/local/ensight/CEI no no


Is there anything else I can do?? I really appreciate your hints!

Thanks again, PavoDive
pavodive is offline   Reply With Quote

Old   June 17, 2005, 07:59
Default My mistake, the "no" entry is
  #7
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
My mistake, the "no" entry is correct as that variable need not be in your PATH, since the directory does not contain executables.
eugene is offline   Reply With Quote

Old   June 21, 2005, 06:12
Default Eugene: Thanks a lot! FoamX i
  #8
New Member
 
Giovanni Pavolini
Join Date: Mar 2009
Posts: 6
Rep Power: 8
pavodive is on a distinguished road
Eugene: Thanks a lot!
FoamX is running beautifully!

PavoDive
pavodive is offline   Reply With Quote

Old   August 10, 2005, 07:32
Default how did ye solve the problem i
  #9
New Member
 
alan fergus
Join Date: Mar 2009
Location: galway, ireland
Posts: 23
Rep Power: 8
alan_fergus is on a distinguished road
how did ye solve the problem its hanging in the same place for me
any help would be greatly recieved
alan
alan_fergus is offline   Reply With Quote

Old   August 10, 2005, 08:23
Default by the way this is the message
  #10
New Member
 
alan fergus
Join Date: Mar 2009
Location: galway, ireland
Posts: 23
Rep Power: 8
alan_fergus is on a distinguished road
by the way this is the message i`m getting
[alan@www alan]$ runFoamX
Starting NameServer with inet:www.nuigalway.ie:1234 ...
ls: /home/alan/OpenFOAM/jobControl/runningJobs: No such file or directory
ls: /home/alan/OpenFOAM/jobControl/finishedJobs: No such file or directory

Jobs overview (from $FOAM_JOB_DIR):
Running : 0
Finished : 0

Some of the jobs reported as running might actually no longer be running.
You can these remove old jobInfo using the FoamX ProcessEditor or with the
foamCheckJobs script.

uncaught MICO exception: IDL:omg.org/CORBA/INITIALIZE:1.0 (0, not-completed)
/home/alan/OpenFOAM/OpenFOAM-1.1/bin/runFoamXHB: line 127: 21433 Aborted
nsd -ORBIIOPAddr $myIOP --ior $FOAMX_USER_CONFIG/ns.ref </dev/null

can anyone give me some advice on what i`ve done or am doing wrong
thanks alan
alan_fergus is offline   Reply With Quote

Old   August 10, 2005, 16:17
Default Mr Fergus I am not a Op
  #11
New Member
 
Michael McWilliam
Join Date: Mar 2009
Location: Waterloo, Ontario, Canada
Posts: 5
Rep Power: 8
pilot is on a distinguished road
Mr Fergus

I am not a OpenFOAM expert like some of the other guys on this discussion board. I had one heck of a time installing OpenFOAM. However I managed to get everything working. So be patient it will work eventually. I want to tell you my thoughts maybe it will help you out. Guys like Eugene Henry and Hrvoje give excellent advice. Look through the posts and see what those guys say about similar problems.

Your problem is a little different than the other guys problem. For you the failure is in MICO. What is going on I don't exactly know.

I am assuming that you have the latest version of OpenFOAM and that you installed everything EXACTLY as it is explained. The bianries and scripts are all set-up perfectly if you install it exactly like it is explained in the instructions. So make sure that you installed the binaries, the source, and the other binaries (gcc, java, and paraview). The OpenFOAM scripts will link to those folders so they have to be there.

Once everything is installed Run the installation test script to ensure that all the environment variables are set correctly. Any incorrect variables for MICO, COBRA or JAVA will give you problems. So that is the first check you can do.

So if everything is installed corectly then you have to look more closely into the MICO system. COBRA seems to be your problem. COBRA is a middleware for distributed systems. You can try different things. Java has Cobra Modules in it, you can make sure that you have the java binaries installed as instructed. Then you can try to recompile the MICO source. Go into the MICO folder and try to recompile. Simply type:

wmake &> compile.out &

When its done if it still fails to work compile.out will tell you about any errors. It might say "such and such lib is missing". Then you know a little more about why it isn't working. Simply find that file on your system and make a symbolic link to it in the appropriate directory. If that file isn't on your system then you may need to install some additional SW.

My original linux instalation was quite lean and was missing a lot of lib files. I eventually reinstalled my linux system with EVERY single component. Then I installed OpenFOAM exactly as instructed and everything worked perfect.

Some Additional advice:

Once you are running tutorials you will find that you get Segmentation Faults occasionally. Usually that is from a mistake that you made. I have yet to find a tutorial where the bug was in the code. After a little reading and investigation I catch my mistake. Every tutorial folder has an Allrun script. Read that to know all the utilities that need to be ran for the tutorial to work properly.

So I wish you good luck. These problems are tricky. Be patient.

Take Care
Mike McW
pilot is offline   Reply With Quote

Old   August 10, 2005, 18:04
Default You could try to create an ali
  #12
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
You could try to create an alias for your system name 'www.nuigalway.ie' and use that instead

(org.omg.CORBA.ORBInitialHost in $FOAMX_USER_CONFIG/FoamXClient.cfg)

There used to be a problem with having '.' in hostnames.
mattijs is offline   Reply With Quote

Old   August 11, 2005, 11:12
Default thanks for the advice seemed t
  #13
New Member
 
alan fergus
Join Date: Mar 2009
Location: galway, ireland
Posts: 23
Rep Power: 8
alan_fergus is on a distinguished road
thanks for the advice seemed to be gcc wasn`t installed properly
alan
alan_fergus 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
RunFoamX doesnbt seem to be installed OpenFOAM 13 richmaes OpenFOAM Pre-Processing 1 January 24, 2007 03:55
RunFoamX error chnrdu OpenFOAM Installation 11 April 11, 2006 21:40
Installation test fails henkw OpenFOAM Installation 4 December 2, 2005 12:01
RunFoamX and IP address billy OpenFOAM Installation 2 July 19, 2005 01:50
SOR Fails Near Walls Chih-Wei Chiu Main CFD Forum 0 May 9, 2002 01:05


All times are GMT -4. The time now is 07:47.