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

[OpenFOAM] paraview: cannot connect to X server :0.0

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By amanbearpig
  • 1 Post By wyldckat
  • 1 Post By kkpal
  • 1 Post By StyroFoam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2013, 12:14
Question paraview: cannot connect to X server :0.0
  #1
Member
 
Join Date: Apr 2011
Posts: 57
Rep Power: 15
amanbearpig is on a distinguished road
Hello, I am fairly new to Linux and OpenFOAM, and have followed the instructions from OpenFOAMWiki for installation of OpenFOAM on a RHEL6 machine. The installation went just fine, and running a test case icoFoam/cavity from the tutorials worked just fine as well. However, when I try and run paraFoam, I get the following error:

"No protocol specified
paraview: cannot connect to X server :0.0"

I'm not sure how to proceed, I asked the system admin here and they were unsure as well. Has anyone seen this error before, or know of a way to resolve this issue?

Please forgive me if this is a very simple issue or if I am simply doing something incorrectly, as I said I am quite new to Linux and OF in general, and am the first person to use OF at my location. Thank you!
Vinay94 likes this.
amanbearpig is offline   Reply With Quote

Old   November 26, 2013, 16:42
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Greetings amanbearpig (South Park reference? ),

Are you working directly on the machine with RHEL 6?
If not, which commands/applications are you using to connect to it and from which Operating System?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 27, 2013, 09:47
Default
  #3
Member
 
Join Date: Apr 2011
Posts: 57
Rep Power: 15
amanbearpig is on a distinguished road
Hello Bruno,

Yes, it is a South Park reference - an old username, and for simplicity I have continued to use it for many things (harder to forget!).

I am working directly on the RHEL 6 machine. Thanks for all your help!
amanbearpig is offline   Reply With Quote

Old   November 27, 2013, 18:10
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi amanbearpig,

Quote:
Originally Posted by amanbearpig View Post
Yes, it is a South Park reference - an old username, and for simplicity I have continued to use it for many things (harder to forget!).
Nice!


OK, I should have left what I had originally written in the post I was going to do yesterday, so I'll try to recall what I wrote back then:
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 2, 2013, 10:46
Default
  #5
Member
 
Join Date: Apr 2011
Posts: 57
Rep Power: 15
amanbearpig is on a distinguished road
Hi Bruno,

I tried your suggestion, but it seems to have no effect, I still get the exact same error:

"No protocol specified
paraview: cannot connect to X server :0.0"

Thanks for all your time and help!
amanbearpig is offline   Reply With Quote

Old   December 8, 2013, 15:39
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi amanbearpig,

Sorry, very busy week.

I know I've seen this problem before... but usually the problem occurs when we try to use a GUI over an "ssh -X" connection.

Try running this command:
Code:
echo $DISPLAY
If it gives you:
Code:
:0.0
then try running a graphical text editor from the command line, such as gedit:
Code:
gedit
It should give you the same error as ParaView did.

Beyond this, it would help to either see an image of what you're seeing or a description of the steps you take up until you run paraview.

Best regards,
Bruno
amanbearpig likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 12, 2013, 14:22
Default
  #7
Member
 
Join Date: Apr 2011
Posts: 57
Rep Power: 15
amanbearpig is on a distinguished road
Hi Bruno,

Thanks for the help. Yes, echo $DISPLAY shows :0.0, and trying to run gedit also gives an error. I think this error is related to my user permissions, because if I login as root I can run gedit just fine. I'll have to speak to the admins here about that.

However, logging in as root did not fix my Paraview issue. (OpenFOAM is installed under my user account). When I login as root, since my bashrc is different, I can't simply enter "paraFoam", so I went to the folder where paraview is located and entered ./paraview (as root). This gives me a completely different error:

/home/*username*/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/lib/paraview-3.12/paraview: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /home/*username*/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc45/paraview-3.12.0/lib/paraview-3.12/libvtkPVServerManager.so)

I checked into this a bit, and it appears that the libstdc++.so.6 with RHEL6 here only has up through GLIBCXX_3.4.13. I found similar errors searching online (for other programs) and one of the suggestions was to download a newer libstdc++.so and link it (I think the only I have linked here is .13, I downloaded a .17 that I found online in the aforementioned discussion, though it was not a native RHEL file, it was for Debian instead - the online help indicated this wouldn't be an issue, and I am new to Linux so I took their word for it).

When I linked the libstdc++.so.6 to this newer version, Paraview worked! However, it broke other things - the man command no longer worked, and I could no longer open Firefox, for example.

I then deleted the newer libstdc++ version 17 file and relinked it to the original v13 one. After thinking about it awhile I went and downloaded an older version of Paraview (v 3.10). When I installed this, I could run Paraview as root! Because it only works as root, and is a different install and is not setup to work with OpenFOAM yet, I can't run the paraFoam command, but at least I have paraview itself working! I've just been running the foamToVTK command and then opening up the files as root to do visualization. I will speak to the admins here about the apparent permissions issue with my user account.

Do you have any thoughts or suggestions? I'm just glad to have a working version of paraview, regardless of whether or not I can run it through paraFoam or not. It's a bit more of a hassle but it works. Like I said I am new to Linux, so there may be a very simple solution I am overlooking or not understanding! Thank you!
amanbearpig is offline   Reply With Quote

Old   December 15, 2013, 13:01
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi amanbearpig,

Running ParaView and OpenFOAM as root is a veeeery bad idea.

I'm guessing that your user-name does not have "video" permissions... but it's really weird. If you are logged in locally, I assume that you are logged in graphically and not with only a terminal text window. And if you are graphically logged in and are able to launch GUI applications from the desktop with the mouse, then you should also be able to launch GUI applications from the command line.

My guess is that the "DISPLAY" variable is incorrectly defined. Check the contents of the folder "/tmp/.X11-unix/". It should indicate which displays are being used. If only the "X0" file is present, then the "DISPLAY" variable is probably properly defined.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 6, 2015, 02:05
Default
  #9
Senior Member
 
Join Date: Jan 2013
Posts: 135
Rep Power: 13
kkpal is on a distinguished road
Dear amanbearpig
I've met the same problem with you. Have you solved the problem?
Best regards!
kkpal is offline   Reply With Quote

Old   March 7, 2015, 01:52
Default
  #10
Senior Member
 
Join Date: Jan 2013
Posts: 135
Rep Power: 13
kkpal is on a distinguished road
running
Code:
xhost +
as root simply solves this problem.
wyldckat likes this.
kkpal is offline   Reply With Quote

Old   May 25, 2018, 23:19
Default
  #11
New Member
 
Join Date: May 2018
Posts: 1
Rep Power: 0
StyroFoam is on a distinguished road
I solved the same problem by installing XMing from https://sourceforge.net/projects/xming/
then everything works fine.

Hope it helps!
wyldckat likes this.
StyroFoam 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
Segmentation fault in tutorial NACA0012 shape optimization lazzini SU2 Shape Design 3 March 16, 2018 05:41
Running shape_optimized.py with multiple compute nodes in parallel compute Zetrov SU2 1 March 2, 2016 21:10
[blockMesh] Another cylinder question bendel_boy OpenFOAM Meshing & Mesh Conversion 5 January 6, 2015 06:09
[OpenFOAM.org] ParaVIEW: cannot connect to X server :0.0 samuel_cfd OpenFOAM Installation 3 December 29, 2014 20:57
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 08:43


All times are GMT -4. The time now is 00:41.