scripted spice access gives: 595 Invalid argument

androme

New Member
Sep 21, 2017
4
0
1
123
I´m using https://git.proxmox.com/?p=pve-manager.git;a=blob_plain;f=spice-example-sh;hb=HEAD as pve-virt-viewer_v2.sh
on
root@kvm01:~# pveversion
pve-manager/5.0-30/5ab26bc (running kernel: 4.10.17-2-pve)

but getting a 595 Invalid argument response.

root@schreibzugang-1:~# ./pve-virt-viewer_v2.sh -u 'spicer@pve' -p password 101 192.168.222.53
AUTH OK
curl: (22) The requested URL returned error: 595 Invalid argument

/var/log/syslog
Sep 21 00:28:02 kvm01 pvedaemon[28193]: <root@pam> successful auth for user 'spicer@pve'

/var/log/pveproxy/access.log
10.10.0.22 - - [21/09/2017:00:28:02 +0200] "POST /api2/json/access/ticket HTTP/1.1" 200 615
10.10.0.22 - spicer@pve [21/09/2017:00:28:02 +0200] "POST /api2/spiceconfig/nodes/192/qemu/101/spiceproxy HTTP/1.1" 595 -

The exact https Request cites as follows
+ curl -f -s -S -k -b PVEAuthCookie=PVE:spicer@pve:59C2F28C::e7CJoY1TvCiPqmBZrlYdewEwPFnzcxmOfzmimde35tVe55tYTvcGxBwfW39NE8bNuyudtLPyqjv3JO30Fu5xJlNnu/XbO3AXni2kdeJw2SoEsZN+q0OeuoFtEjxyRYpI2dzuf2wCLkyeFE/It+kgT4b35tap0T3GP58IyaQukpDZg1uKy2wGeFjkOlBDKb7xI+6YBBBHc9dRlMqxUDVW8KSxB23rUJe203lrbp+a/u1OsljYTAUbQ6KRh+5Ai0vOVb1G4erW58nKaRHseOIPAO9+vpdAFPk3stzcF5M/3YqQynyGRQkeG92PFnsIhKjF27zWjOVPndsaVAlS1AnZAg== -H 'CSRFPreventionToken: 59C2F28C:M7YElIkgLJE+gJZ2j9/hGY9ywdA' https://192.168.222.53:8006/api2/spiceconfig/nodes/192/qemu/101/spiceproxy -d proxy=192.168.222.53
curl: (22) The requested URL returned error: 595 Invalid argument

Are there any API changes?
Any hints?

How can I rise the loglevel of pveproxy?


 
Last edited:
I´m using https://git.proxmox.com/?p=pve-manager.git;a=blob_plain;f=spice-example-sh;hb=HEAD as pve-virt-viewer_v2.sh
on
root@kvm01:~# pveversion
pve-manager/5.0-30/5ab26bc (running kernel: 4.10.17-2-pve)

but getting a 595 Invalid argument response.

root@schreibzugang-1:~# ./pve-virt-viewer_v2.sh -u 'spicer@pve' -p password 101 192.168.222.53
AUTH OK
curl: (22) The requested URL returned error: 595 Invalid argument

Hostname is missed in

Code:
./pve-virt-viewer_v2.sh -u 'spicer@pve' -p password 101 192.168.222.53


Correct:
Code:
./pve-virt-viewer_v2.sh -u 'spicer@pve' -p password 101 <hostname> 192.168.222.53
 

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!