mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 08:55:49 +03:00
[GH-ISSUE #104] Ambiguous method call error in cv4pve-autosnap when creating snapshots #93
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Perfeitor on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/104
What happened?
I'm encountering an issue when attempting to create snapshots using cv4pve-autosnap on Proxmox VE 8.4.1. The command fails with the following error:
The call is ambiguous between the following methods or properties: 'Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinishAsync(Corsinvest.ProxmoxVE.Api.Result, int, long)' and 'Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinishAsync(string, int, long)'Expected behavior
The snapshot should be created successfully without encountering the ambiguity error between the two WaitForTaskToFinishAsync methods.
Relevant log output
Proxmox VE Version
8.4.1
Version (bug)
1.16.0
Version (working)
No response
On what operating system are you experiencing the issue?
Linux
Pull Request
@franklupo commented on GitHub (Apr 30, 2025):
Hi,
could you give more details? I can't reproduce the error.
best regards
@Perfeitor commented on GitHub (Apr 30, 2025):
Hi again,
Just wanted to follow up with additional environment information that may help reproducing the issue:
cv4pve-autosnap Version: 1.16.0
Proxmox VE Host Version: 8.4.1
Running inside LXC container on the same host
OS inside container: Debian 12 (Bookworm)
Output of cat /etc/os-release:
LXC Container Configuration:
How the tool was installed:
I did not install it via pip or build from source. Instead, I downloaded the prebuilt release archive from GitHub, extracted it, and ran the executable (cv4pve-autosnap) directly.
If you need any other specific information to help reproduce the issue, let me know and I’ll gladly provide it.
@franklupo commented on GitHub (Apr 30, 2025):
Can you rum from your computer?
Best regards
@Perfeitor commented on GitHub (Apr 30, 2025):
Could you please let me know exactly which additional information or logs you need?
@franklupo commented on GitHub (Apr 30, 2025):
If you run it from your local computer does it give you the same errors? I don't want it to be a lxc problem
@Perfeitor commented on GitHub (Apr 30, 2025):
I have tested running cv4pve-autosnap directly on my Proxmox VE 8.4.1 host (not inside a container), and the exact same error occurs.
@franklupo commented on GitHub (Apr 30, 2025):
Hi @Perfeitor,
run with parameter with --debug
WARNING!! The credentials will also be present in the logs, remove them.
Attach the log
Best regards
@Perfeitor commented on GitHub (May 1, 2025):
Apologies for the delayed reply.
After running with the --debug flag, I discovered another issue related to missing VM.Snapshot permission. Once I added the required permission, everything ran smoothly.
Thank you for your support. I can confirm that there were two issues displayed. Initially, without --debug, I only saw the WaitForTaskToFinishAsync ambiguous error. It wasn’t until I used --debug that the missing permission error appeared. After adding the missing permission, the WaitForTaskToFinishAsync ambiguous issue was no longer relevant, and the command ran successfully.
Here’s the detailed output:
Best regards.
@franklupo commented on GitHub (May 1, 2025):
https://github.com/Corsinvest/cv4pve-autosnap?tab=readme-ov-file#permission
@Perfeitor commented on GitHub (May 1, 2025):
Thank you very much for your support. Everything is working perfectly now. The mistake was on my side - I granted all necessary permissions but overlooked VM.Snapshot.