Documentation not complete
Closed this issue · 13 comments
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/lib/xpra/xpra/xposix/gui.py:15: GtkWarning: IA__gdk_display_get_name: assertion `GDK_IS_DISPLAY (display)' failed
_display = gtk.gdk.get_display()
Traceback (most recent call last):
File "/usr/bin/xpra", line 7, in
xpra.scripts.main.main(file, sys.argv)
File "/usr/lib/xpra/xpra/scripts/main.py", line 232, in main
run_client(parser, options, args, mode)
File "/usr/lib/xpra/xpra/scripts/main.py", line 367, in run_client
from xpra.client import XpraClient
File "/usr/lib/xpra/xpra/client.py", line 25, in
from xpra.platform.gui import ClientExtras
File "/usr/lib/xpra/xpra/platform/gui.py", line 16, in
from xpra.xposix.gui import *
File "/usr/lib/xpra/xpra/xposix/gui.py", line 16, in
assert _display, "cannot open the display with GTK, is DISPLAY set?"
AssertionError: cannot open the display with GTK, is DISPLAY set?
On the node I run
python -c "import pygtk;pygtk.require('2.0');
import gtk;print(gtk.gdk.get_display())"
And I get the following.
(process:296): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
-c:1: GtkWarning: IA__gdk_display_get_name: assertion `GDK_IS_DISPLAY (display)' failed
Any ideas what additional setup is required to get this to work?
First error is what I get when I try and attach the xpra to the docker session.
hi @onekilo79,
Could you please connect to the container through ssh and type: ps ax
to check if the docker session is really runnnig?
Hello @rogaha,
Thanks for the quick response! Here is px ax | grep docker. Have I started too many docker requests?
133 ? S 0:00 /usr/bin/python /usr/bin/xpra start :10 --start-child=Xephyr -ac -screen 800x600 -query localhost -host-cursor -reset -terminate :11 --xvfb=Xvfb +extension Composite -screen 0 800x600x24+32 -nolisten tcp -noreset -auth /home/docker/.Xauthority
134 ? S 0:00 Xvfb-for-Xpra-:10 +extension Composite -screen 0 800x600x24+32 -nolisten tcp -noreset -auth /home/docker/.Xauthority :10
306 ? Ss 0:00 sshd: docker [priv]
347 ? S 0:00 sshd: docker@pts/1
359 pts/1 S+ 0:00 grep --color=auto docker
Hi @onekilo79,
The session seems to be started. Now, when you try to attach to it using: xpra --ssh="ssh -p port_number" attach ssh:docker@ip_number:10
it shows that error message?
Please check the xpra version of the client machine as well. Are you trying to access it from Windows, Linux or Mac?
usr/lib/python2.7/dist-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
/usr/lib/xpra/xpra/xposix/gui.py:15: GtkWarning: IA__gdk_display_get_name: assertion `GDK_IS_DISPLAY (display)' failed
_display = gtk.gdk.get_display()
Traceback (most recent call last):
File "/usr/bin/xpra", line 7, in
xpra.scripts.main.main(file, sys.argv)
File "/usr/lib/xpra/xpra/scripts/main.py", line 232, in main
run_client(parser, options, args, mode)
File "/usr/lib/xpra/xpra/scripts/main.py", line 367, in run_client
from xpra.client import XpraClient
File "/usr/lib/xpra/xpra/client.py", line 25, in
from xpra.platform.gui import ClientExtras
File "/usr/lib/xpra/xpra/platform/gui.py", line 16, in
from xpra.xposix.gui import *
File "/usr/lib/xpra/xpra/xposix/gui.py", line 16, in
assert _display, "cannot open the display with GTK, is DISPLAY set?"
AssertionError: cannot open the display with GTK, is DISPLAY set?
Then it has 3 lines of entering the password for the docker user.
Permission denied, please try again.
Then
Permission denied (publickey,password).
I then tried to pass the password via the command line and got the same error without the permission denied errors.
sshpass -p 'DockerPwdFromCmdLine' xpra --ssh="ssh -p port_number" attach ssh:docker@ip_number:10
Are you accessing it from a Linux client? Can you please check its version?
vagrant client on a mac. Have had same experience on ubuntu client: 12.04 -> server: ubuntu 12.10
Client:
ubuntu: 12.04 from standard docker install.
xpra v0.0.7.36.
docker version:
Client version: 0.6.3
Go version (client): go1.1.2
Git commit (client): b0a49a3
Server version: 0.6.3
Git commit (server): b0a49a3
Go version (server): go1.1.2
Last stable version: 0.6.3
Server:
ubuntu 12.10
xpra v0.3.11
That's why. You are trying to access you virtual desktop from a virtual machine, without GUI (graphical user interface). You should access it either from your Mac or from a complete VM can be a Linux or Windows box.
Try to install xpra on your mac. Then from you terminal on Mac type: /Applications/Xpra.app/Contents/Helpers/xpra --ssh="ssh -p port_number" attach ssh:docker@ip_number:10
Make sure that you are able to access the container from you Mac. Try to connect to the container via ssh from a mac terminal.
@rogaha thanks for all your help. I will close this as I was just being a bit stupid. I need to get my vm was created with nat networking so I have to get bridged networking working.
Ok! Please let me know if you need any help!
Thanks
Wrote up 2 blog posts on the things I was having problems with but did manage to get it up and running on both os x and ubuntu 12.04.
http://onekilo79.wordpress.com/2013/10/16/docker-desktop-and-ubuntu-12-04/ <- very old xpra version
http://onekilo79.wordpress.com/2013/10/16/osx-and-docker-desktop-via-vagrant/ <- docker vagrant issue
Hi
Im trying to access remote desktop using xpra on windows.It works fine .But the Xpra display disappears when I do a commit to my running container which is causing a problem.Can you please suggest a solution to this error.