[GH-ISSUE #54] Exception when trying to snapshot #51

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

Originally created by @GamerBene19 on GitHub (Oct 24, 2021).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/54

I'm using the latest version of cv4pve-autosnap (1.11) on Proxmox version 7.0-13. When trying to create snapshots via
cv4pve-autosnap --host=127.0.0.1 --api-token='root@pam!snapshots=<token>' --vmid="all" snap --label=test --keep=1
the script fails and throws an exception with the following output:

ACTION Snap
VMs:              all
Label:            test
Keep:             1
State:            False
Timeout:          30000
Timestamp format: yyMMddHHmmss
----- VM 100 Lxc -----
Create snapshot: autotest211024094007
================ EXCEPTION ================ 
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
'System.Collections.Generic.List<object>' does not contain a definition for 'status'
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at Corsinvest.ProxmoxVE.Api.PveClientBase.TaskIsRunning(String node, String task)
   at Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinish(String node, String task, Int64 wait, Int64 timeOut)
   at CallSite.Target(Closure , CallSite , PveClient , String , Object , Int32 , Int64 )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
   at Corsinvest.ProxmoxVE.Api.Extension.ResultExtension.WaitForTaskToFinish(Result result, VMInfo vm, Int64 timeout)
   at Corsinvest.ProxmoxVE.Api.Extension.VM.Snapshots.Create(String name, String description, Boolean state, Int64 timeout)
   at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.Snap(String vmIdsOrNames, String label, Int32 keep, Boolean state, Int64 timeout, String timestampFormat)
   at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.<Snap>b__1()
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.<OnExecute>b__0(CancellationToken _)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)
Originally created by @GamerBene19 on GitHub (Oct 24, 2021). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/54 I'm using the latest version of cv4pve-autosnap (1.11) on Proxmox version 7.0-13. When trying to create snapshots via `cv4pve-autosnap --host=127.0.0.1 --api-token='root@pam!snapshots=<token>' --vmid="all" snap --label=test --keep=1` the script fails and throws an exception with the following output: ``` ACTION Snap VMs: all Label: test Keep: 1 State: False Timeout: 30000 Timestamp format: yyMMddHHmmss ----- VM 100 Lxc ----- Create snapshot: autotest211024094007 ================ EXCEPTION ================ Microsoft.CSharp.RuntimeBinder.RuntimeBinderException 'System.Collections.Generic.List<object>' does not contain a definition for 'status' at CallSite.Target(Closure , CallSite , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at Corsinvest.ProxmoxVE.Api.PveClientBase.TaskIsRunning(String node, String task) at Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinish(String node, String task, Int64 wait, Int64 timeOut) at CallSite.Target(Closure , CallSite , PveClient , String , Object , Int32 , Int64 ) at System.Dynamic.UpdateDelegates.UpdateAndExecute5[T0,T1,T2,T3,T4,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) at Corsinvest.ProxmoxVE.Api.Extension.ResultExtension.WaitForTaskToFinish(Result result, VMInfo vm, Int64 timeout) at Corsinvest.ProxmoxVE.Api.Extension.VM.Snapshots.Create(String name, String description, Boolean state, Int64 timeout) at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.Snap(String vmIdsOrNames, String label, Int32 keep, Boolean state, Int64 timeout, String timestampFormat) at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>c__DisplayClass9_1.<Snap>b__1() at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.<OnExecute>b__0(CancellationToken _) at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken) at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args) ```
kerem closed this issue 2026-02-26 17:44:10 +03:00
Author
Owner

@franklupo commented on GitHub (Oct 24, 2021):

Hi,
Execute with parm --debug and attach the result.

Best regards

<!-- gh-comment-id:950374681 --> @franklupo commented on GitHub (Oct 24, 2021): Hi, Execute with parm --debug and attach the result. Best regards
Author
Owner

@GamerBene19 commented on GitHub (Oct 24, 2021):

This might sound so stupid, but I just wanted to try and run the command with the --debug option, but tried it "normally" beforehand and it just worked. I have no idea why. I haven't changed anything. Ig this issue can be closed?
I'll reopen when I can reproduce it. As of now it seems resolved. strange...

<!-- gh-comment-id:950403276 --> @GamerBene19 commented on GitHub (Oct 24, 2021): This might sound so stupid, but I just wanted to try and run the command with the --debug option, but tried it "normally" beforehand and it just worked. I have no idea why. I haven't changed anything. Ig this issue can be closed? I'll reopen when I can reproduce it. As of now it seems resolved. strange...
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#51
No description provided.