Personal tools
You are here: Home Forum Install & build Running SALOME using Docker

Running SALOME using Docker

Up to Install & build

Running SALOME using Docker

Posted by Ashish Kumar at November 21. 2020

Hi,

 

I want to run SALOME using Docker. I found SALOME docker container from this link https://hub.docker.com/u/trophime

I pulled using the command docker pull trophime/salome.

Then I ran the salome docker image using the following command.

 docker run -it --rm -e DISPPLAY=$IP:0 trophime/salome:9.5.0

After that when I run the command salome, I am getting the following error.

 

 

feelpp@6fcae431e6a9:~$ salome

runSalome running on 6fcae431e6a9

Searching for a free port for naming service: 2810 - OK

Searching Naming Service  + found in 0.1 seconds

SALOME_Session_Server: error while loading shared libraries: libqwt-qt5.so.6: cannot open shared object file: No such file or directory

th. 139686347477120 COMPILED with /home/feelpp/salome/SOURCES/KERNEL/src/Launcher/SALOME_LauncherServer.cxx [95] : g++, Sep 14 2020 at 12:50:41

th. 139686347477120 ------- /home/feelpp/salome/SOURCES/KERNEL/src/Launcher/SALOME_LauncherServer.cxx [96] : Begin of: SALOME_LauncherServer

Traceback (most recent call last):

  File "/opt/SALOME-9.5.0-UB20.04/BINARIES-UB20.04/KERNEL/bin/salome/orbmodule.py", line 181, in waitNSPID

    os.kill(thePID,0)

ProcessLookupError: [Errno 3] No such process


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/opt/SALOME-9.5.0-UB20.04/BINARIES-UB20.04/KERNEL/bin/salome/runSalome.py", line 680, in useSalome

    clt = startSalome(args, modules_list, modules_root_dir)

  File "/opt/SALOME-9.5.0-UB20.04/BINARIES-UB20.04/KERNEL/bin/salome/runSalome.py", line 625, in startSalome

    session=clt.waitNSPID("/Kernel/Session",mySessionServ.PID,SALOME.Session)

  File "/opt/SALOME-9.5.0-UB20.04/BINARIES-UB20.04/KERNEL/bin/salome/orbmodule.py", line 183, in waitNSPID

    raise RuntimeError("Process %d for %s not found" % (thePID,theName))

RuntimeError: Process 27 for /Kernel/Session not found

Searching /Kernel/Session in Naming Service


--- Error during Salome launch ---

feelpp@6fcae431e6a9:~$ th. 139686347477120 - Trace /home/feelpp/salome/SOURCES/KERNEL/src/Launcher/SALOME_Launcher.cxx [63] : SALOME_Launcher constructor

Warning, no type found for resource "localhost", using default value "single_machine"

************************************************

Resource localhost found:

Name: localhost

HostName: 6fcae431e6a9

Type: single_machine

NbOfNodes: 1

NbOfProcPerNode: 1

CPUFreqMHz: 0

MemInMB: 0

Protocol: ssh

ClusterInternalProtocol: ssh

Batch: none

mpi: no mpi

UserName:

AppliPath:

OS:

batchQueue:

userCommands:

use:

NbOfProc: 1

Can Launch Batch Jobs: 0

Can Run Containers: 0

Working Directory:

************************************************

th. 139686347477120 - Trace /home/feelpp/salome/SOURCES/KERNEL/src/ResourcesManager/SALOME_ResourcesManager.cxx [99] : SALOME_ResourcesManager constructor

th. 139686347477120 - Trace /home/feelpp/salome/SOURCES/KERNEL/src/ResourcesManager/SALOME_ResourcesManager.cxx [116] : SALOME_ResourcesManager constructor end

th. 139686347477120 - Trace /home/feelpp/salome/SOURCES/KERNEL/src/Container/SALOME_ContainerManager.cxx [87] : constructor

th. 139686347477120 - Trace /home/feelpp/salome/SOURCES/KERNEL/src/Container/SALOME_ContainerManager.cxx [155] : constructor end

th. 139686347477120 - Trace /home/feelpp/salome/SOURCES/KERNEL/src/Launcher/SALOME_Launcher.cxx [78] : SALOME_Launcher constructor end

Re: Running SALOME using Docker

Posted by Gregor Simic at November 22. 2020

As stated from the error,

libqwt-qt5.so.6

is missing from LD_LIBRARY_PATH. You should contact the author of the docker. As I understand the point of a docker is to have everything required for running an image. Otherwise search for the package for your system and install it.


Best regardf

Powered by Ploneboard
Document Actions