Problems with Spice Unable to Connect to Graphics Server

Not sure if this helps, but I was able to fix my issue with DNS. I checked syslog after a failed connection, and was seeing the following:
Code:
[COLOR=#000000][FONT=tahoma]Mar 10 08:21:35 C6100-1-N1 spiceproxy[100182]: WARNING: unable to get IP for node 'c6100-1-n4' - node offline?[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Mar 10 08:21:35 C6100-1-N1 spiceproxy[100182]: problem with client 10.1.6.1; unable to get IP for node 'c6100-1-n4' - node offline?[/FONT][/COLOR]
Which made me realize that spiceproxy is looking up hosts based on domain name, not IP. So I added my nodes to the hostfile, and that fixed my issues.
 
Hello,
I am having the same issue


(remote-viewer.exe:4860): remote-viewer-DEBUG: Opening connection to display at
c:\Users\kat\Downloads\download.vv
(remote-viewer.exe:4860): remote-viewer-DEBUG: New spice channel 00000000008648B
0 SpiceMainChannel 0
(remote-viewer.exe:4860): remote-viewer-DEBUG: notebook show status 000000000082
9090

(remote-viewer.exe:4860): GSpice-WARNING **: HTTP proxy connection failed: 401 i
nvalid ticket
(remote-viewer.exe:4860): remote-viewer-DEBUG: main channel: failed to connect
(remote-viewer.exe:4860): remote-viewer-DEBUG: Disposing window 00000000007CD0A0


(remote-viewer.exe:4860): remote-viewer-DEBUG: Set connect info: (null),(null),(
null),-1,(null),(null),(null),0

Is there anyone fixed this?

Thank you
 
Hello I found the solution that fix the problem for me:

here the solution: http://forum.proxmox.com/threads/145...rface-Problems

There was this message in the syslog:

May 12 16:23:19 proxmox2 pveproxy[3139]: problem with client 192.168.10.92; ssl3_read_bytes: tlsv1 alert unknown ca
May 12 16:23:19 proxmox2 pveproxy[3139]: WARNING: Can't call method "on_read" on an undefined value at /usr/share/perl5/PVE/HTTPServer.pm line 155.

I ran the following command:

pvecm updatecerts --force

and after a reboot Spice start to work Bye Sergio
 
Last edited:
Same error here.

But i do some test: it works on ubuntu trusty 64bit and works on windows 7 32bit OS. But did not work on windows 7 64bit OS. I tested virt-viewer-x64-0.6.0.msi, virt-viewer-x86-0.6.0.msi, virt-viewer-x64-0.5.7.msi and virt-viewer-x86-0.5.7.msi on win7 64bit. None of them worked. :(

Clean proxmox 3.2 install. No firewall issue (because ubuntu and 32bit win7 work), and if i tcpdumped the the 61000 port on proxmox, i see some packets.

What sould i do to hunt down this bug?

Elbandi
 
I also must mention there is still exactly the same bug when using Proxmox VE 4.0 Beta-26 with Firefox and Opera browsers in Windows 7 x64 and with VirViewer 2.0 (both x86 and x64). If the one start spice console in FF in Win 7 x86 or CentOS 7 x64 remote desktop appears to start up ok.

I've tcpdumped the packets of those conversations between the pve host and client's browser. So here they are.

1. The packets recorded between pve machine and CentOS7 box:

**************************************************
cos7.eno.garant.ru.39491 > pve.eno.garant.ru.8006: Flags [.], cksum 0x3b13 (correct), seq 29709, ack 70538, win 331, options [nop,nop,TS val 103804453 ecr 25429180], length 0
pve.eno.garant.ru.3128 > cos7.eno.garant.ru.51163: Flags [P.], cksum 0x96bb (incorrect -> 0x3d20), seq 774212:774483, ack 1538, win 260, options [nop,nop,TS val 25429269 ecr 103804312], length
271
cos7.eno.garant.ru.51163 > pve.eno.garant.ru.3128: Flags [.], cksum 0xf19a (correct), seq 1538, ack 774483, win 363, options [nop,nop,TS val 103804808 ecr 25429269], length 0
pve.eno.garant.ru.3128 > cos7.eno.garant.ru.57020: Flags [P.], cksum 0x1756 (incorrect -> 0x947f), seq 261581:261687, ack 1983, win 269, options [nop,nop,TS val 25429337 ecr 103792359], length
106
**********************************************

Here the one can see that after connection to the web port 8006 a new connection (redirection) is coming up to the spiceproxy port 3128. And that's it. The Spice console successfully launched with remote desktop of the spice VM!

2. If the one tries to do that while sitting in Windows 7 x64 the result will be unsuccessful because there won't be a redirection to the spiceproxy port 3128 absolutely rather than the only one 8006 port. We always see an error message with "I/O Timeout".

Please fix this very inconvenient bug!

spice-error.png

The below is a good spice connection from Win7x86 client to Fedora 23 deskop VM:

spice_win7x86_ok.jpg
 
Last edited:
I also must mention there is still exactly the same bug when using Proxmox VE 4.0 Beta-26 with Firefox and Opera browsers in Windows 7 x64 and with VirViewer 2.0 (both x86 and x64). If the one start spice console in FF in Win 7 x86 or CentOS 7 x64 remote desktop appears to start up ok.

I've tcpdumped the packets of those conversations between the pve host and client's browser. So here they are.

1. The packets recorded between pve machine and CentOS7 box:

**************************************************
cos7.eno.garant.ru.39491 > pve.eno.garant.ru.8006: Flags [.], cksum 0x3b13 (correct), seq 29709, ack 70538, win 331, options [nop,nop,TS val 103804453 ecr 25429180], length 0
pve.eno.garant.ru.3128 > cos7.eno.garant.ru.51163: Flags [P.], cksum 0x96bb (incorrect -> 0x3d20), seq 774212:774483, ack 1538, win 260, options [nop,nop,TS val 25429269 ecr 103804312], length
271
cos7.eno.garant.ru.51163 > pve.eno.garant.ru.3128: Flags [.], cksum 0xf19a (correct), seq 1538, ack 774483, win 363, options [nop,nop,TS val 103804808 ecr 25429269], length 0
pve.eno.garant.ru.3128 > cos7.eno.garant.ru.57020: Flags [P.], cksum 0x1756 (incorrect -> 0x947f), seq 261581:261687, ack 1983, win 269, options [nop,nop,TS val 25429337 ecr 103792359], length
106
**********************************************

Here the one can see that after connection to the web port 8006 a new connection (redirection) is coming up to the spiceproxy port 3128. And that's it. The Spice console successfully launched with remote desktop of the spice VM!

2. If the one tries to do that while sitting in Windows 7 x64 the result will be unsuccessful because there won't be a redirection to the spiceproxy port 3128 absolutely rather than the only one 8006 port. We always see an error message with "I/O Timeout".

Please fix this very inconvenient bug!

View attachment 2805

The below is a good spice connection from Win7x86 client to Fedora 23 deskop VM:

View attachment 2806


The same problem. The versions are:
VM win7 x64
virt-viewer x64-7.0 on Win7 x64
Proxmox VE 5.2-1

I got the debug message:
==============
C:\Users\pc\Downloads>C:\"Program Files"\"VirtViewer v7.0-256"\bin\remote-viewer.exe download.vv --debug

C:\Users\pc\Downloads>
(remote-viewer.exe:4200): Gtk-WARNING **: Could not find signal handler 'virt_viewer_window_menu_change_cd_activate'. Did you compile with -rdynamic?
(remote-viewer.exe:4200): virt-viewer-DEBUG: Opening display to download.vv
(remote-viewer.exe:4200): virt-viewer-DEBUG: Guest (NULL) has a spice display

(remote-viewer.exe:4200): GSpice-CRITICAL **: _usbdk_hider_update: assertion 'priv->usbdk_api != NULL' failed

(remote-viewer.exe:4200): GSpice-WARNING **: Error initializing USB support: Entity not found [-5]

(remote-viewer.exe:4200): GSpice-CRITICAL **: _usbdk_hider_clear: assertion 'priv->usbdk_api != NULL' failed
(remote-viewer.exe:4200): virt-viewer-DEBUG: ignoring [ovirt] section content as URL, VM GUID are missing from the .vv file
(remote-viewer.exe:4200): virt-viewer-DEBUG: After open connection callback fd=-1
(remote-viewer.exe:4200): virt-viewer-DEBUG: Opening connection to display at download.vv
(remote-viewer.exe:4200): virt-viewer-DEBUG: New spice channel 000000000463EF30
SpiceMainChannel 0
(remote-viewer.exe:4200): virt-viewer-DEBUG: notebook show status 00000000044C9C50
(remote-viewer.exe:4200): virt-viewer-DEBUG: main channel: failed to connect socket I/O timeout
(remote-viewer.exe:4200): virt-viewer-DEBUG: Destroy SPICE channel SpiceMainChannel 0
(remote-viewer.exe:4200): virt-viewer-DEBUG: zap main channel

===========

What should I do?

Thanks.
 
It seems that using SPICE with Proxmox is broken .. I've tried it in the past (years ago) and it didn't work. I just tried it now and it still doesn't work. I have the 3128 port forwarded for IPv4 and a rule for IPv6 to allow and still no dice. It would be helpful if there were some clear instructions on how to get this work.
Error - unable to connect to the graphic server
I've tried it on both Linux and Windows as clients and same response.
 
Hello,

yes, I also did some failing tests with Spice in the past. It seems to be picky. Then, a few weeks ago I found this:
It has detailed screenshots for every step. And for me it works as documented. I've tested it on a Win10 Laptop accessing a Windows 10 VM and an Ubuntu Gnome VM.

For Linux I found this similar article:
This also works for me. (While I do not remember if I tested Win+Ubuntu I definitely did test accessing one of them on my physical Ubuntu 20.04 Wayland Workstation.)

Just another 2 €¢ - good luck!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!