CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] OpenFoam V6 via Docker: "Could not connect to any X display"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Arpitkm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2019, 05:02
Default OpenFoam V6 via Docker: "Could not connect to any X display"
  #1
New Member
 
Boom
Join Date: Feb 2019
Posts: 6
Rep Power: 7
Boomessh is on a distinguished road
Hi,

I have installed OpenFoam V6 (via Docker) in a Virtual Machine running Cent OS 7.

The installation was successful and I was able to run a sample case "airFoil2D".

Once it ran successfully, I tried to open parFoam

But it gave the following error message as shown below:

[
Created temporary 'airFoil2D.OpenFOAM'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.screen: QXcbConnection: Could not connect to display localhost:11.0
Could not connect to any X display.
]

How to resolve this issue. Kindly let me know.

Note:
I am able to open GEDIT.

Thanks,
Boomessh V
Boomessh is offline   Reply With Quote

Old   March 12, 2019, 18:04
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: What?

I'm a bit confused by your description... if I understood you correctly, you have:
  • In the real machine, you have some operating system that you didn't mention.
    • Inside that you have a virtual machine that is running CentOS 7.
      • And inside that you have Docker with OpenFOAM v6 installed inside it?
Did I understand you correctly?

I ask this because this level of complexity is way too much trouble... making ParaView work within that level of complexity is a good way to have nightmares for a few weeks...

The simplest is to reduce at least one level of complexity: Install OpenFOAM 6 from source code in CentOS 7, you can find step-by-step installation instructions here: https://openfoamwiki.net/index.php/I...7.5_.281804.29


On the other hand, if you are using CentOS 7 in real machine, with OpenFOAM 6 installed within a Docker container (which on Linux is should not count as "running within a VM"), then:
  1. Update the OpenFOAM 6 docker container, to have the latest Deb packages.
  2. Make sure to start the container with the option "-x", assuming you are using the script that is provided at openfoam.org
__________________
wyldckat is offline   Reply With Quote

Old   March 18, 2019, 23:32
Default
  #3
New Member
 
Boom
Join Date: Feb 2019
Posts: 6
Rep Power: 7
Boomessh is on a distinguished road
Hi wildcat,

Thanks for your reply and apologies for delayed reply.

As you mentioned I have now installed OpenFoam V6 in a separate machine (not VM) with Cent OS 7 successfully based on the link which you provided.

We checked it with an actual case and it worked fine.Thanks for that

Now still when I go and run Paraview I get the following error. I have opened the putty with X11 forwarding.

"Aborted (core dumped)"

Not sure where to check the logs, if you could state me which all logs file do I need to post I can check it and post it.

Thanks
Boomessh V
Boomessh is offline   Reply With Quote

Old   March 19, 2019, 17:17
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: The problem is likely that ParaView was not able to use OpenGL 3.x on your machine from which you used Putty.
You can try rebuilding ParaView with the older OpenGL support that ParaView 5.4 allows to be used. This can be done by appending the option "-rendering OpenGL" to the makeParaView command line, e.g.:
Code:
./makeParaView -mpi -python -qmake $(which qmake-qt4) -rendering OpenGL > log.makePV 2>&1
wyldckat is offline   Reply With Quote

Old   March 20, 2019, 04:23
Default
  #5
New Member
 
Boom
Join Date: Feb 2019
Posts: 6
Rep Power: 7
Boomessh is on a distinguished road
Hi wyldcat,

Just a quick question, do I need to run ./Allwmake from the openfoam directory after running the command you mentioned? (as this is the last step after running paraview).

Thanks,
Boomessh V
Boomessh is offline   Reply With Quote

Old   March 21, 2019, 04:59
Default
  #6
New Member
 
Boom
Join Date: Feb 2019
Posts: 6
Rep Power: 7
Boomessh is on a distinguished road
Hi wyldcat,

Thanks for your reply and it worked though I did not run the allwmake.
Now when I run paraview, it opens the GUI but it's slow, is there anything (like accelerating the GPU) by which I can increase the user interface speed. Now, if I click "File" it take 3-4 seconds to open it.

Thanks,
Boomessh V
Boomessh is offline   Reply With Quote

Old   March 24, 2019, 14:13
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You might need to rebuild the OpenFOAM reader add-on libraries, by running:
Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PVReaders
./Allwclean
./Allwmake
As for being slow, it's somewhat natural that it acts slow over an SSH connection.

You could try installing VirtualGL and using TurboVNC to connect to the remote machine. I've never fully installed it myself, so I don't know of any good installation instructions

That said, you could install X2Go (server on the remote and client on the local machine), which the ParaView build that you now have, might work with it, because it doesn't have proper graphics card acceleration support, but might work with X2Go's basic OpenGL support.... but I can't remember correctly if it is meant to work or not
wyldckat is offline   Reply With Quote

Old   March 24, 2019, 23:52
Default
  #8
New Member
 
Boom
Join Date: Feb 2019
Posts: 6
Rep Power: 7
Boomessh is on a distinguished road
Hi Wyldcat,

I will run the add-on libraries and regarding the X2GO will first install it separately in another system and then check it.

Thanks a lot for your help and suggestions. It all worked.

Thanks,
Boomessh V
Boomessh is offline   Reply With Quote

Old   July 4, 2019, 06:04
Default
  #9
New Member
 
Join Date: Jul 2019
Posts: 1
Rep Power: 0
Arpitkm is on a distinguished road
I have a docker based install in Manjaro and faced the exact problem resolved it by the following command

xhost +local:docker

FYI, xorg-xhost is not default on Manjaro, so you may need to install it.
wyldckat likes this.
Arpitkm is offline   Reply With Quote

Old   April 26, 2021, 20:32
Default
  #10
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
Code:
6451c6a70cbf: ~>> cd run/
6451c6a70cbf: run>> cd rivuletPanel/
6451c6a70cbf: rivuletPanel>> paraFoam
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-openfoam'
qt.qpa.screen: QXcbConnection: Could not connect to display 192.168.15.17:0
Could not connect to any X display.
I cannot start paraFoam in Mac OSX Big Sur.

I am inside docker and it is installed.
aerothermal is offline   Reply With Quote

Old   April 30, 2021, 11:42
Default
  #11
Senior Member
 
aerothermal's Avatar
 
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 118
Rep Power: 16
aerothermal is on a distinguished road
Send a message via Skype™ to aerothermal
I managed to make paraFoam work in MacOSx after the installation of Paraview. Now I can use Paraview or ParaFoam.

ParaFoam is slower than Paraview.

To use Paraview I had to change the extension .OpenFoam to .foam

However, in SUSE SLES 15 Paraview does not work after installation. It appears to be a conflict between the OpenGL in the software and the NVIDIA driver of the OS.

And I cannot install the new driver from NVIDIA because it says that GUI or NVIDIA persistenced or smi is being used.
aerothermal 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
error: connect failed destroy FLUENT 7 March 18, 2018 14:59
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker rt08 OpenFOAM Installation 1 February 28, 2016 19:00
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 07:43


All times are GMT -4. The time now is 21:34.