Authentication is required for the SPICE connection

Afox

Renowned Member
Dec 18, 2014
257
12
83
Hello,

I get this error when triggering SPICE Session via webinterface. Interesting is: It´s not for all VMs, only 2.

Machines are KVM, qxl driver is selected. I use virt-viewer on Linux.

Any idea to solve this? What password is needed here?

Regards,

Afox
 
check your system time.?
 
hello, for me this error did not show up for a long time now. I also checked system time and saw nothing remarkable. I thought they fixed it in an update. If your system is not up to date, maybe updating can fix the issue.

Regards,

Afox
 
hello, for me this error did not show up for a long time now. I also checked system time and saw nothing remarkable. I thought they fixed it in an update. If your system is not up to date, maybe updating can fix the issue.

Regards,

Afox
Good morning ... I'm using the latest version of Proxmox, 4.3 ... when Proxmox restart, returns to work, you open the file .vv smoothly, but the minute when I try to re-enter the same VM, asks authentication.
 
Same problem here. Latest updates installed, system time correct and in sync on both client and server.
Anyone has a solution? As a workaround I am currently circumventing the problem by adding
args: -spice port=6301,addr=0.0.0.0,disable-ticketing
to the config file in /etc/pve/qemu-server/ddd.conf and connecting directly to the VM.

It would be nice to hear about a proper solution for this problem, though.
 
the ticket is only valid for 30 seconds, so if it asks for authentication, it is most likely a time problem. AFAIK there were no spice related changes in any of the recent updates..
 
Thank you for your reply, Fabian.

I can guarantee though, that the time between requesting a ticket via GUI and the connect between the client and spiceproxy is definitely well below 5 secs (both client and server are in the same LAN).

This timeframe is even less when I use the script, which requests a ticket and then immediately launches remote-viewer.


Funny thing is, it affects only some VMs.

It seems it will remain a mystery for the time being.

p.s.
This problem affects two different pve-Installations on different Platforms at different premises.

Best regards
 
I've the same problem and i change the SCSI Controller Type to the default LSI 53C895A and now no password needing for spice connexion to the VM. Maybe resolve your problem too.
 
Thanks Dorkhian, but I doubt it is in any way related to the controller type chosen. It's a spiceproxy ticket problem and I guess your problem disappeared (for the time being) because you had to restart the VM.

But thanks anyway.
 
We have the same problem with Proxmox VE 4.3. I think the problem is in the SPICE port allocation algorithm. Under certain conditions PVE creates two virtual machines using the same port for SPICE, one listening on IPv4 address, and one on IPv6.

Example:
Code:
# netstat -lpn | grep 61003
tcp  0  0 127.0.0.1:61003  0.0.0.0:*  LISTEN  6316/kvm
tcp6  0  0 ::1:61003  :::*  LISTEN  3206/kvm

In this situation virt-viewer can connect to VM running with PID 6316 and can not connect to VM with PID 3206. If I stop the first VM virt-viewer will connect to the second VM.

I think this problem occures when several VMs are starting at the same time, for example at host startup.
 
We have the same problem with Proxmox VE 4.3. I think the problem is in the SPICE port allocation algorithm. Under certain conditions PVE creates two virtual machines using the same port for SPICE, one listening on IPv4 address, and one on IPv6.

Example:
Code:
# netstat -lpn | grep 61003
tcp  0  0 127.0.0.1:61003  0.0.0.0:*  LISTEN  6316/kvm
tcp6  0  0 ::1:61003  :::*  LISTEN  3206/kvm

In this situation virt-viewer can connect to VM running with PID 6316 and can not connect to VM with PID 3206. If I stop the first VM virt-viewer will connect to the second VM.

I think this problem occures when several VMs are starting at the same time, for example at host startup.

could you file a bug report at bugzilla.proxmox.com ? thanks!
 
the ticket is only valid for 30 seconds, so if it asks for authentication, it is most likely a time problem. AFAIK there were no spice related changes in any of the recent updates..
Thanks, this helped me a lot and saved from going crazy!
But I think, it would be very helpful if there is a message that the downloaded file is only valid for that time (pre-download message?).
I've tried to get the console resolution of an Ubuntu VM to a reasonable value what failed for the default viewer and ended up to find a solution to access the console via SPICE - but didn't know there is a timeout for the generated access files
 

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!