Closed lipflip closed 4 years ago
I'm using proxmox 6.2
I'm running the script on the host itself (just for now, untill we have another server available to put the script on).
I'm running this command:
/usr/sbin/cv4pve-autosnap --host='localhost' --api-token='MY TOKEN' --vmid='101' snap --label='daily' --keep=14 --debug
This is the output:
Method: GET, Url: https://localhost:8006/api2/json/version StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True { "data": { "version": "6.2-11", "keyboard": "fr-be", "release": "6.2", "repoid": "22fb4983" } } ============================= ACTION Snap VMs: 101 Label: daily Keep: 14 State: False Timeout: 30000 Method: GET, Url: https://localhost:8006/api2/json/cluster/resources?type=vm StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True { "data": [] } ============================= Total execution 00:00:00.0246552
The connection is OK, but the snapshot was not created. I'm not sure why... the VM is online.
The api-token not have permission to esecute snapshot and read info cluster
Yes indeed, it was an api-token permission problem. Thanks!
I'm using proxmox 6.2
I'm running the script on the host itself (just for now, untill we have another server available to put the script on).
I'm running this command:
/usr/sbin/cv4pve-autosnap --host='localhost' --api-token='MY TOKEN' --vmid='101' snap --label='daily' --keep=14 --debug
This is the output:
The connection is OK, but the snapshot was not created. I'm not sure why... the VM is online.