Corsinvest / cv4pve-autosnap

Automatic snapshot tool for Proxmox VE
https://www.corsinvest.it/cv4pve
GNU General Public License v3.0
413 stars 51 forks source link

Proxmox 7.2-11 issues #69

Closed thost96 closed 1 year ago

thost96 commented 2 years ago

What happened?

Hi, Cronjob execution throws this error again and again, but snapshots do get created successfully:

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.CreateSnapshot(PveClient client, String node, VmType vmType, Int64 vmId, 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, 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__DisplayClass17_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_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__DisplayClass19_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()

Command used to run the snapshots is cv4pve-autosnap --host="$SNAP_HOST" --username="$SNAP_USER" --password="$SNAP_PASS" --timestamp-format="_yyyyMMdd_HHmmss" --vmid="$SNAP_VMID" snap --label="hourly" --state --keep="$SNAP_KEEP_HOURLY" --debug > /dev/null All Variables get filled in correctly. Same error if running this manually.

Standalone Proxmos Host ~ 10 VMs ~ 10 LXCs Kernel Version Linux 5.15.53-1-pve #1 SMP PVE 5.15.53-1 (Fri, 26 Aug 2022 16:53:52 +0200) PVE Manager Version pve-manager/7.2-11/b76d3178

Expected behavior

Successful snapshots without this error message.

Relevant log output

No response

Proxmox VE Version

7.2-11

Version (bug)

v1.14.6

Version (working)

No response

On what operating system are you experiencing the issue?

Linux

Pull Request

franklupo commented 2 years ago

Hi, you can execute with paramter --debug and attach log.

Best regards

thost96 commented 2 years ago

Hi, attached you can find the requested log. Some data has been removed for privacy.

debug_log.txt

franklupo commented 2 years ago

HI, in this case there are no errors