CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   RunFoamX fails (http://www.cfd-online.com/Forums/openfoam-installation/57727-runfoamx-fails.html)

jvn May 20, 2005 20:12

After a few attempts, with mix
 
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

henry May 21, 2005 07:16

Your problem is: Exception
 
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.

jvn May 23, 2005 08:36

Yes, I found out on the Fedora
 
Yes, I found out on the Fedora discussion board that it was in the deprecated x11.org package. Now everything works!
Thanks again,
John

pavodive June 16, 2005 06:30

I'm also having a hard time wi
 
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

eugene June 16, 2005 07:15

It looks like your $FOAMX_PATH
 
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.

pavodive June 17, 2005 01:43

Eugene, Thanks for your post.
 
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 http://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif
(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

eugene June 17, 2005 07:59

My mistake, the "no" entry is
 
My mistake, the "no" entry is correct as that variable need not be in your PATH, since the directory does not contain executables.

pavodive June 21, 2005 06:12

Eugene: Thanks a lot! FoamX i
 
Eugene: Thanks a lot!
FoamX is running beautifully!

PavoDive

alan_fergus August 10, 2005 07:32

how did ye solve the problem i
 
how did ye solve the problem its hanging in the same place for me
any help would be greatly recieved
alan

alan_fergus August 10, 2005 08:23

by the way this is the message
 
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

pilot August 10, 2005 16:17

Mr Fergus I am not a Op
 
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

mattijs August 10, 2005 18:04

You could try to create an ali
 
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.

alan_fergus August 11, 2005 11:12

thanks for the advice seemed t
 
thanks for the advice seemed to be gcc wasn`t installed properly
alan


All times are GMT -4. The time now is 11:57.