[GH-ISSUE #90] Unhandled exception: RuntimeBinderException during snapshot #86

Closed
opened 2026-02-26 17:44:20 +03:00 by kerem · 1 comment
Owner

Originally created by @ManuelSchmitzberger on GitHub (Aug 8, 2024).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/90

What happened?

I'm running cv4pve-autosnap as a Cron job in my Proxmox environment. Here is the Cron job configuration:

# every 4 hours
0 */4	*	*	*	root	cv4pve-autosnap --host="$SNAP_HOST" --username="$SNAP_USER" --password="$SNAP_PASS" --vmid="$SNAP_VMID" snap --label="hourly" --keep="$SNAP_KEEP_HOURLY" > /dev/null

During a snapshot, I encountered the following error:

Unhandled exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'data'

Unfortunately, this issue occurs sporadically and I have not been able to consistently reproduce it.

Expected behavior

Snapshots should be taken without any errors, ensuring consistent and reliable snapshotting.

Relevant log output

Unhandled exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'data'
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at CallSite.Target(Closure , CallSite , Object )
   at Corsinvest.ProxmoxVE.Api.PveClientBase.TaskIsRunning(String task)
   at Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinish(String task, Int32 wait, Int64 timeout)
   at CallSite.Target(Closure , CallSite , Object )
   at Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinish(Result result, Int32 wait, Int64 timeout)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.SnapshotHelper.RemoveSnapshot(PveClient client, String node, VmType vmType, Int64 vmId, String name, Int64 timeout, Nullable`1 force)
   at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.SnapshotsRemove(IClusterResourceVm vm, String label, Int32 keep, Int64 timeout, String timstampFormat)
   at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.Snap(String vmIdsOrNames, String label, Int32 keep, Boolean state, Int64 timeout, String timestampFormat, Int32 maxPercentageStorage)
   at Corsinvest.ProxmoxVE.AutoSnap.Commands.<>c__DisplayClass12_0.<<Snap>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass18_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass13_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass20_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__19_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__6_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass9_0.<<UseExceptionHandler>b__0>d.MoveNext()

Proxmox VE Version

8.0.4

Version (bug)

1.14.4

Version (working)

No response

On what operating system are you experiencing the issue?

Linux

Pull Request

  • I would like to do a Pull Request
Originally created by @ManuelSchmitzberger on GitHub (Aug 8, 2024). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/90 ### What happened? I'm running cv4pve-autosnap as a Cron job in my Proxmox environment. Here is the Cron job configuration: ``` # every 4 hours 0 */4 * * * root cv4pve-autosnap --host="$SNAP_HOST" --username="$SNAP_USER" --password="$SNAP_PASS" --vmid="$SNAP_VMID" snap --label="hourly" --keep="$SNAP_KEEP_HOURLY" > /dev/null ``` During a snapshot, I encountered the following error: ``` Unhandled exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'data' ``` Unfortunately, this issue occurs sporadically and I have not been able to consistently reproduce it. ### Expected behavior Snapshots should be taken without any errors, ensuring consistent and reliable snapshotting. ### Relevant log output ```shell Unhandled exception: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.Dynamic.ExpandoObject' does not contain a definition for 'data' at CallSite.Target(Closure , CallSite , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at CallSite.Target(Closure , CallSite , Object ) at Corsinvest.ProxmoxVE.Api.PveClientBase.TaskIsRunning(String task) at Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinish(String task, Int32 wait, Int64 timeout) at CallSite.Target(Closure , CallSite , Object ) at Corsinvest.ProxmoxVE.Api.PveClientBase.WaitForTaskToFinish(Result result, Int32 wait, Int64 timeout) at Corsinvest.ProxmoxVE.Api.Extension.Utils.SnapshotHelper.RemoveSnapshot(PveClient client, String node, VmType vmType, Int64 vmId, String name, Int64 timeout, Nullable`1 force) at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.SnapshotsRemove(IClusterResourceVm vm, String label, Int32 keep, Int64 timeout, String timstampFormat) at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.Snap(String vmIdsOrNames, String label, Int32 keep, Boolean state, Int64 timeout, String timestampFormat, Int32 maxPercentageStorage) at Corsinvest.ProxmoxVE.AutoSnap.Commands.<>c__DisplayClass12_0.<<Snap>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass18_0.<<UseParseErrorReporting>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass13_0.<<UseHelp>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseVersionOption>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass20_0.<<UseTypoCorrections>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__19_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<<UseParseDirective>b__0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__6_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass9_0.<<UseExceptionHandler>b__0>d.MoveNext() ``` ### Proxmox VE Version 8.0.4 ### Version (bug) 1.14.4 ### Version (working) _No response_ ### On what operating system are you experiencing the issue? Linux ### Pull Request - [ ] I would like to do a Pull Request
kerem 2026-02-26 17:44:20 +03:00
Author
Owner

@franklupo commented on GitHub (Aug 8, 2024):

Hi,
try to update to the latest version. if you can enable --debug to have the full log.

Best regards

<!-- gh-comment-id:2275397117 --> @franklupo commented on GitHub (Aug 8, 2024): Hi, try to update to the latest version. if you can enable --debug to have the full log. Best regards
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#86
No description provided.