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

paraview: cannot connect to X server :0.0

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

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By kkpal

Reply
 
LinkBack Thread Tools Display Modes
Old   November 26, 2013, 12:14
Question paraview: cannot connect to X server :0.0
  #1
Member
 
Join Date: Apr 2011
Posts: 38
Rep Power: 7
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!
amanbearpig is offline   Reply With Quote

Old   November 26, 2013, 16:42
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 38
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 38
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 38
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: 111
Rep Power: 5
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: 111
Rep Power: 5
kkpal is on a distinguished road
running
Code:
xhost +
as root simply solves this problem.
wyldckat likes this.
kkpal 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
DieselFoam spray thumthae OpenFOAM Running, Solving & CFD 98 December 24, 2014 16:55
Problem with restart solution in shape_optimization.py robyTKD SU2 Shape Design 21 May 29, 2013 09:26
Urgent Naca4415 ck3 FLUENT 3 June 9, 2012 08:36
Correction of KIVA ITAPE hama Main CFD Forum 1 December 2, 2011 14:47
correction of KIVA Itape hama Main CFD Forum 0 May 2, 2006 03:41


All times are GMT -4. The time now is 03:55.