Hello all forum,
I have cluster proxmox with CEPH. I am doing a NOVNC function, but have some errors.
Debug:
$response = $pve2->post("/nodes/host001/qemu/26252625/vncproxy",$parameters);
--> POST HTTP/1.1 200 OK Cache-Control: max-age=0 Connection: close Connection: Keep-Alive Date: Thu, 13 Apr 2017 07:09:17 GMT Pragma: no-cache Server: pve-api-daemon/3.0 Content-Length: 2588 Content-Type: application/json;charset=UTF-8 Expires: Thu, 13 Apr 2017 07:09:17 GMT {"data":{"ticket":"PVEVNC:58EF241D::rsuSry0AsciSoPT2lC6Y6qjagMyReADGdUBUHTvBQUeMTePRjpiJWi3F0sHlDKS4Fe+71g40AQGnJTv3ID0+jhbkwgXLJLpwt6OS1brk+ZEvBmlHGe4WjOwDNNEX2QQHxLhF+PTu1IEZ/ANr6uQBBwXuyUZcsP1caNu3Sv47BMFdJdBeBUb/qwcU49wyeTpD317s41OiVgqsiCKhO1Nj9rNEyr8+wVNjAE2MKP2dVjr2yOBygpw8jl2SFeEeblEwZo+kgZ/YgPazp+FUTW1l24kD7iRdBNlRge5jIIM27ETYH3d5P+CTc9S7nSnPaxoy6lvVDk/dkGGzNjTvEPT9Jw==","cert":"-----BEGIN CERTIFICATE-----\nMIIFvzCCA6egAwIBAgIJAMe30FITxpIrMA0GCSqGSIb3DQEBCwUAMHYxJDAiBgNV\nBAMMG1Byb3htb3ggVmlydHVhbCBFbnZpcm9ubWVudDEtMCsGA1UECwwkMjlkOWY0\nYTYtOWI2MS00MzliLWIwMDAtYWIzNDJjOTlhMmQ1MR8wHQYDVQQKDBZQVkUgQ2x1\nc3RlciBNYW5hZ2VyIENBMB4XDTE3MDMwODA2NDQwN1oXDTI3MDMwNjA2NDQwN1ow\ndjEkMCIGA1UEAwwbUHJveG1veCBWaXJ0dWFsIEVudmlyb25tZW50MS0wKwYDVQQL\nDCQyOWQ5ZjRhNi05YjYxLTQzOWItYjAwMC1hYjM0MmM5OWEyZDUxHzAdBgNVBAoM\nFlBWRSBDbHVzdGVyIE1hbmFnZ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XrEkJIJa8CHZon4y3Eok27r3Wo3RsmXSo/amr0MvGRFibk9JjGfbhNKU18ASwF0Q\nDXFFwirYzMOO9bOZTsmRevieJne69jPrnmadSAGDiH3KGPI2gFN4PaZahCSwISYo\nhflpNWfVv9Dz5M5NJmB0U7GB/wfwL1SIc4ZTNlYJ85IcJFnA2Y2k63coYq2sVHBc\nm7pHHzkklqlWI6eqbc5mhFyOoyX447BlRLSuTE7keEMLMFKYfBP3890ifSF4KHAG\nDpi+dAFpCP+TD6nh0i9JSJtzTysEzuqllkzPn1sC2tukR0vAkVbNqC7jncKTm6ID\nfliSo82AJ/tdU3Cn6WgqTIorBu5YE4lgxhvuzB3HJwha0dEhUxFCYY2sakQj4+Z1\nz2zp/bgr7Di2hgpHulrJ4QY124pLITmFzlDUvNgpHzh6y16B/B16sj7eqdtYPdN+\nN+hFzh4y0mJQ4NFE6W6kiwRY4FfStl7kE989BBinPIWdb6E=\n-----END CERTIFICATE-----\n","upid":"UPID:host001:00003B5B:055A3CED:58EF241D:vncproxy:26252625:root@pam:","user":"root@pam","port":"5900"}}
$string="/nodes/host001/qemu/26252625/vncwebsocket?port=".$response["port"]."&vncticket=".$response["ticket"];
$pr = $pve2->get($string);
--> GET HTTP/1.1 403 Permission check failed (permission denied - invalid PVEVNC ticket) Cache-Control: max-age=0 Connection: close Date: Thu, 13 Apr 2017 07:09:17 GMT Pragma: no-cache Server: pve-api-daemon/3.0 Content-Length: 13 Content-Type: application/json;charset=UTF-8 Expires: Thu, 13 Apr 2017 07:09:17 GMT {"data":null}
bool(false)
Can anyone help me ?
Thanks.
I have cluster proxmox with CEPH. I am doing a NOVNC function, but have some errors.
Debug:
$response = $pve2->post("/nodes/host001/qemu/26252625/vncproxy",$parameters);
--> POST HTTP/1.1 200 OK Cache-Control: max-age=0 Connection: close Connection: Keep-Alive Date: Thu, 13 Apr 2017 07:09:17 GMT Pragma: no-cache Server: pve-api-daemon/3.0 Content-Length: 2588 Content-Type: application/json;charset=UTF-8 Exp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447BlRLSuTE7keEMLMFKYfBP3890ifSF4KHAG\nDpi+dAFpCP+TD6nh0i9JSJtzTysEzuqllkzPn1sC2tukR0vAkVbNqC7jncKTm6ID\nfliSo82AJ/tdU3Cn6WgqTIorBu5YE4lgxhvuzB3HJwha0dEhUxFCYY2sakQj4+Z1\nz2zp/bgr7Di2hgpHulrJ4QY124pLITmFzlDUvNgpHzh6y16B/B16sj7eqdtYPdN+\nN+hFzh4y0mJQ4NFE6W6kiwRY4FfStl7kE989BBinPIWdb6E=\n-----END CERTIFICATE-----\n","upid":"UPID:host001:00003B5B:055A3CED:58EF241D:vncproxy:26252625:root@pam:","user":"root@pam","port":"5900"}}
$string="/nodes/host001/qemu/26252625/vncwebsocket?port=".$response["port"]."&vncticket=".$response["ticket"];
$pr = $pve2->get($string);
--> GET HTTP/1.1 403 Permission check failed (permission denied - invalid PVEVNC ticket) Cache-Control: max-age=0 Connection: close Date: Thu, 13 Apr 2017 07:09:17 GMT Pragma: no-cache Server: pve-api-daemon/3.0 Content-Length: 13 Content-Type: application/json;charset=UTF-8 Expires: Thu, 13 Apr 2017 07:09:17 GMT {"data":null}
bool(false)
Can anyone help me ?
Thanks.