[GH-ISSUE #108] Unable to perform Auto Shapshot on Pools #44

Closed
opened 2026-02-26 17:37:00 +03:00 by kerem · 10 comments
Owner

Originally created by @BobDubbya on GitHub (Jul 1, 2024).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/108

Bug type

Component

Component name

Autosnap

What happened?

Created an Autosnap job, in the Vm Ids field, selected a pool that contains virtual machines.
Snapshots will not be created for any of the virtual machines in that pool.

Ex.

Pool name: Important
Virtual Machines: DC1
DC2

Neither DC1 or DC2 have snapshots created.

The API user has full access.
Administrator role granted to / in the Datacenter
The linux user has sudo privileges

Expected behavior

When creating an Autosnap job and using a Pool in the Vm Ids field, I would like all of the machines in the pool to have snapshots taken at the scheduled cadence.

Relevant log output

ACTION Snap
PVE Version:      8.2.4
VMs:              @pool-DCs
Label:            dctest
Keep:             2
State:            True
Only running:     True
Timeout:          30 sec.
Timestamp format: yyMMddHHmmss
Max % Storage :   95%
----- VMs with '@pool-DCs' NOT FOUND -----
----- POSSIBLE PROBLEM PERMISSION 'VM.Audit' -----
----- POSSIBLE PROBLEM PERMISSION 'Datastore.Audit' -----
Total execution 00:00:00.0271045

Proxmox VE Version

8.2.4

Version (bug)

1.1.1

Version (working)

No response

What browsers are you seeing the problem on?

Firefox, Chrome

On what operating system are you experiencing the issue?

Windows, Linux

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @BobDubbya on GitHub (Jul 1, 2024). Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/108 ### Bug type Component ### Component name Autosnap ### What happened? Created an Autosnap job, in the Vm Ids field, selected a pool that contains virtual machines. Snapshots will not be created for any of the virtual machines in that pool. Ex. Pool name: Important Virtual Machines: DC1 DC2 Neither DC1 or DC2 have snapshots created. The API user has full access. Administrator role granted to / in the Datacenter The linux user has sudo privileges ### Expected behavior When creating an Autosnap job and using a Pool in the Vm Ids field, I would like all of the machines in the pool to have snapshots taken at the scheduled cadence. ### Relevant log output ```shell ACTION Snap PVE Version: 8.2.4 VMs: @pool-DCs Label: dctest Keep: 2 State: True Only running: True Timeout: 30 sec. Timestamp format: yyMMddHHmmss Max % Storage : 95% ----- VMs with '@pool-DCs' NOT FOUND ----- ----- POSSIBLE PROBLEM PERMISSION 'VM.Audit' ----- ----- POSSIBLE PROBLEM PERMISSION 'Datastore.Audit' ----- Total execution 00:00:00.0271045 ``` ### Proxmox VE Version 8.2.4 ### Version (bug) 1.1.1 ### Version (working) _No response_ ### What browsers are you seeing the problem on? Firefox, Chrome ### On what operating system are you experiencing the issue? Windows, Linux ### Pull Request - [ ] I would like to do a Pull Request ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
kerem closed this issue 2026-02-26 17:37:00 +03:00
Author
Owner

@franklupo commented on GitHub (Jul 2, 2024):

Hi,
can you try to use the command line with parameter --debug and attach the log? be careful with clear passwords
https://github.com/Corsinvest/cv4pve-autosnap

Best regards

<!-- gh-comment-id:2202883325 --> @franklupo commented on GitHub (Jul 2, 2024): Hi, can you try to use the command line with parameter --debug and attach the log? be careful with clear passwords https://github.com/Corsinvest/cv4pve-autosnap Best regards
Author
Owner

@BobDubbya commented on GitHub (Jul 2, 2024):

I don't see a way to run autosnap via the command line from the docker container, when I attached to the docker container I only find the dll for autosnap. Could you tell me where cvepve-autosnap is located in the container?

<!-- gh-comment-id:2203788983 --> @BobDubbya commented on GitHub (Jul 2, 2024): I don't see a way to run autosnap via the command line from the docker container, when I attached to the docker container I only find the dll for autosnap. Could you tell me where cvepve-autosnap is located in the container?
Author
Owner

@franklupo commented on GitHub (Jul 2, 2024):

download https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.14.10 and esecuto from your sistem with command line. See the documentation https://github.com/Corsinvest/cv4pve-autosnap
root@debian:~# cv4pve-autosnap --host=192.168.0.100 --username=root@pam --password=fagiano --vmid=111 snap --label=daily --keep=2

<!-- gh-comment-id:2203795981 --> @franklupo commented on GitHub (Jul 2, 2024): download https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.14.10 and esecuto from your sistem with command line. See the documentation https://github.com/Corsinvest/cv4pve-autosnap `root@debian:~# cv4pve-autosnap --host=192.168.0.100 --username=root@pam --password=fagiano --vmid=111 snap --label=daily --keep=2`
Author
Owner

@BobDubbya commented on GitHub (Jul 2, 2024):

Please see attached

snap.output.txt

<!-- gh-comment-id:2203924814 --> @BobDubbya commented on GitHub (Jul 2, 2024): Please see attached [snap.output.txt](https://github.com/user-attachments/files/16072332/snap.output.txt)
Author
Owner

@franklupo commented on GitHub (Jul 3, 2024):

can you attach the command line used

<!-- gh-comment-id:2205400917 --> @franklupo commented on GitHub (Jul 3, 2024): can you attach the command line used
Author
Owner

@BobDubbya commented on GitHub (Jul 3, 2024):

cv4pve-autosnap --host=node2.company.com --username=Something@pam --password=Something --vmid=@pool-DCs snap --label=test --keep=2 --state --debug

Here it is:

<!-- gh-comment-id:2207453645 --> @BobDubbya commented on GitHub (Jul 3, 2024): cv4pve-autosnap --host=node2.company.com --username=Something@pam --password=Something --vmid=@pool-DCs snap --label=test --keep=2 --state --debug Here it is:
Author
Owner

@franklupo commented on GitHub (Jul 10, 2024):

We are still checking the problem

bets regards

<!-- gh-comment-id:2220050482 --> @franklupo commented on GitHub (Jul 10, 2024): We are still checking the problem bets regards
Author
Owner

@franklupo commented on GitHub (Jul 15, 2024):

Try adding quotes to parameter --vmid="@pool-DCs"

<!-- gh-comment-id:2228381145 --> @franklupo commented on GitHub (Jul 15, 2024): Try adding quotes to parameter `--vmid="@pool-DCs"`
Author
Owner

@BobDubbya commented on GitHub (Jul 16, 2024):

No change.

I've switched to using tags for selection, which oddly enough, does work.

<!-- gh-comment-id:2231506898 --> @BobDubbya commented on GitHub (Jul 16, 2024): No change. I've switched to using tags for selection, which oddly enough, does work.
Author
Owner

@franklupo commented on GitHub (Sep 27, 2024):

try add permission for Datastore.Audit

<!-- gh-comment-id:2379152041 --> @franklupo commented on GitHub (Sep 27, 2024): try add permission for `Datastore.Audit`
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-admin#44
No description provided.