[GH-ISSUE #40] Snapshot is not created #38

Closed
opened 2026-02-26 17:44:05 +03:00 by kerem · 2 comments
Owner

Originally created by @lipflip on GitHub (Sep 18, 2020).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/40

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.

Originally created by @lipflip on GitHub (Sep 18, 2020). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/40 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.
kerem closed this issue 2026-02-26 17:44:06 +03:00
Author
Owner

@franklupo commented on GitHub (Sep 18, 2020):

The api-token not have permission to esecute snapshot and read info cluster

<!-- gh-comment-id:694756766 --> @franklupo commented on GitHub (Sep 18, 2020): The api-token not have permission to esecute snapshot and read info cluster
Author
Owner

@lipflip commented on GitHub (Sep 18, 2020):

The api-token not have permission to esecute snapshot and read info cluster

Yes indeed, it was an api-token permission problem.
Thanks!

<!-- gh-comment-id:694802295 --> @lipflip commented on GitHub (Sep 18, 2020): > > > The api-token not have permission to esecute snapshot and read info cluster Yes indeed, it was an api-token permission problem. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#38
No description provided.