[GH-ISSUE #48] Corsinvest.ProxmoxVE.Admin.Diagnostic.Job-pve-cluster error #18

Closed
opened 2026-02-26 17:36:53 +03:00 by kerem · 4 comments
Owner

Originally created by @maxilee on GitHub (Jun 19, 2023).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/48

Bug type

Component

Component name

Corsinvest.ProxmoxVE.Admin.Diagnostic.Job-pve-cluster

What happened?

after enabled scheduled job Corsinvest.ProxmoxVE.Admin.Diagnostic.Job-pve-cluster there is a error.

Expected behavior

job finish ok.

Relevant log output

2023-06-19 08:20:58.348 +02:00 [INF] Job 193 has been performed   <s:Corsinvest.AppHero.HangFire.LogJobFilter>                                                                                
2023-06-19 08:20:58.363 +02:00 [WRN] Job '193' has been failed due to an exception System.NullReferenceException: Object reference not set to an instance of an object.                       
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.<>c__9`2.<CheckCommonVm>b__9_4(ClusterBackup a)                                                                                         
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()                                                                                                                    
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)                                                                                                             
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckCommonVm[TDetail,TConfig](Info info, List`1 result, SettingsThresholdHost thresholdHost, VmBaseInfo`2 vm, DiagnosticResultContext c
ontext, NodeInfo node, String id)                                                                                                                                                             
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckQemu(Info info, List`1 result, IEnumerable`1 resources, Settings settings)                                                         
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.Analyze(Info info, Settings settings, List`1 ignoredIssues)                                                                             
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Analyze(ExecutionData executionData, ModuleClusterOptions moduleClusterOptions, IEnumerable`1 ignoreIssues) in /src/src/Corsinvest.ProxmoxV
E.Admin.Diagnostic/Helper.cs:line 71                                                                                                                                                          
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Create(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Helper.cs:line 128                       
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Job.Create(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Job.cs:line 16                                                   
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)                                                                                                                               
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)   <s:Corsinvest.AppHero.HangFire.LogJobFilter>                                                
2023-06-19 08:20:58.376 +02:00 [WRN] Failed to process the job '193': an exception occurred. Retry attempt 1 of 10 will be performed in 00:00:24.   <s:Hangfire.AutomaticRetryAttribute>      
System.NullReferenceException: Object reference not set to an instance of an object.                                                                                                          
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.<>c__9`2.<CheckCommonVm>b__9_4(ClusterBackup a)                                                                                         
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()                                                                                                                    
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)                                                                                                             
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckCommonVm[TDetail,TConfig](Info info, List`1 result, SettingsThresholdHost thresholdHost, VmBaseInfo`2 vm, DiagnosticResultContext c
ontext, NodeInfo node, String id)                                                                                                                                                             
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckQemu(Info info, List`1 result, IEnumerable`1 resources, Settings settings)                                                         
   at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.Analyze(Info info, Settings settings, List`1 ignoredIssues)                                                                             
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Analyze(ExecutionData executionData, ModuleClusterOptions moduleClusterOptions, IEnumerable`1 ignoreIssues) in /src/src/Corsinvest.ProxmoxV
E.Admin.Diagnostic/Helper.cs:line 71                                                                                                                                                          
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Create(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Helper.cs:line 128                       
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Job.Create(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Job.cs:line 16                                                   
   at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)                                                                                                                                  at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Proxmox VE Version

7.4

Version (bug)

1.0.0-rc.2

Version (working)

No response

What browsers are you seeing the problem on?

Firefox

On what operating system are you experiencing the issue?

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 @maxilee on GitHub (Jun 19, 2023). Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/48 ### Bug type Component ### Component name Corsinvest.ProxmoxVE.Admin.Diagnostic.Job-pve-cluster ### What happened? after enabled scheduled job Corsinvest.ProxmoxVE.Admin.Diagnostic.Job-pve-cluster there is a error. ### Expected behavior job finish ok. ### Relevant log output ```shell 2023-06-19 08:20:58.348 +02:00 [INF] Job 193 has been performed <s:Corsinvest.AppHero.HangFire.LogJobFilter> 2023-06-19 08:20:58.363 +02:00 [WRN] Job '193' has been failed due to an exception System.NullReferenceException: Object reference not set to an instance of an object. at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.<>c__9`2.<CheckCommonVm>b__9_4(ClusterBackup a) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckCommonVm[TDetail,TConfig](Info info, List`1 result, SettingsThresholdHost thresholdHost, VmBaseInfo`2 vm, DiagnosticResultContext c ontext, NodeInfo node, String id) at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckQemu(Info info, List`1 result, IEnumerable`1 resources, Settings settings) at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.Analyze(Info info, Settings settings, List`1 ignoredIssues) at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Analyze(ExecutionData executionData, ModuleClusterOptions moduleClusterOptions, IEnumerable`1 ignoreIssues) in /src/src/Corsinvest.ProxmoxV E.Admin.Diagnostic/Helper.cs:line 71 at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Create(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Helper.cs:line 128 at Corsinvest.ProxmoxVE.Admin.Diagnostic.Job.Create(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Job.cs:line 16 at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) <s:Corsinvest.AppHero.HangFire.LogJobFilter> 2023-06-19 08:20:58.376 +02:00 [WRN] Failed to process the job '193': an exception occurred. Retry attempt 1 of 10 will be performed in 00:00:24. <s:Hangfire.AutomaticRetryAttribute> System.NullReferenceException: Object reference not set to an instance of an object. at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.<>c__9`2.<CheckCommonVm>b__9_4(ClusterBackup a) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckCommonVm[TDetail,TConfig](Info info, List`1 result, SettingsThresholdHost thresholdHost, VmBaseInfo`2 vm, DiagnosticResultContext c ontext, NodeInfo node, String id) at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.CheckQemu(Info info, List`1 result, IEnumerable`1 resources, Settings settings) at Corsinvest.ProxmoxVE.Diagnostic.Api.Application.Analyze(Info info, Settings settings, List`1 ignoredIssues) at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Analyze(ExecutionData executionData, ModuleClusterOptions moduleClusterOptions, IEnumerable`1 ignoreIssues) in /src/src/Corsinvest.ProxmoxV E.Admin.Diagnostic/Helper.cs:line 71 at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Create(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Helper.cs:line 128 at Corsinvest.ProxmoxVE.Admin.Diagnostic.Job.Create(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Job.cs:line 16 at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) ``` ### Proxmox VE Version 7.4 ### Version (bug) 1.0.0-rc.2 ### Version (working) _No response_ ### What browsers are you seeing the problem on? Firefox ### On what operating system are you experiencing the issue? 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:36:53 +03:00
Author
Owner

@franklupo commented on GitHub (Jun 19, 2023):

Hi,
can esecute command and attach output?
pvesh get /cluster/backup --output-format json-pretty

best reagrds

<!-- gh-comment-id:1596811394 --> @franklupo commented on GitHub (Jun 19, 2023): Hi, can esecute command and attach output? `pvesh get /cluster/backup --output-format json-pretty` best reagrds
Author
Owner

@maxilee commented on GitHub (Jun 19, 2023):

Hi.
ok:

root@pve-3:~# pvesh get /cluster/backup  --output-format json-pretty
[
   {
      "compress" : "zstd",
      "enabled" : 0,
      "id" : "6e3db65d0e925f0314fbbdadf9c8808801be0c85:2",
      "mailnotification" : "failure",
      "mode" : "snapshot",
      "next-run" : 1687503600,
      "node" : "pve-1",
      "prune-backups" : {
         "keep-last" : "4",
         "keep-weekly" : "4"
      },
      "quiet" : 1,
      "schedule" : "fri 09:00",
      "storage" : "local-templ-iso",
      "type" : "vzdump",
      "vmid" : "102"
   },
   {
      "enabled" : 1,
      "id" : "a44de41ac2062aca2fcf6c9d3157519f21075123:1",
      "mailnotification" : "failure",
      "mailto" : "maxilee@gmail.com",
      "mode" : "snapshot",
      "next-run" : 1687201440,
      "notes-template" : "{{cluster}}, {{guestname}}, {{node}}, {{vmid}}",
      "pool" : "backup-24h",
      "prune-backups" : {
         "keep-daily" : "7",
         "keep-monthly" : "4",
         "keep-weekly" : "4",
         "keep-yearly" : "1"
      },
      "quiet" : 1,
      "schedule" : "21:04",
      "storage" : "pve-backup",
      "type" : "vzdump"
   }
]

<!-- gh-comment-id:1596816800 --> @maxilee commented on GitHub (Jun 19, 2023): Hi. ok: ``` root@pve-3:~# pvesh get /cluster/backup --output-format json-pretty [ { "compress" : "zstd", "enabled" : 0, "id" : "6e3db65d0e925f0314fbbdadf9c8808801be0c85:2", "mailnotification" : "failure", "mode" : "snapshot", "next-run" : 1687503600, "node" : "pve-1", "prune-backups" : { "keep-last" : "4", "keep-weekly" : "4" }, "quiet" : 1, "schedule" : "fri 09:00", "storage" : "local-templ-iso", "type" : "vzdump", "vmid" : "102" }, { "enabled" : 1, "id" : "a44de41ac2062aca2fcf6c9d3157519f21075123:1", "mailnotification" : "failure", "mailto" : "maxilee@gmail.com", "mode" : "snapshot", "next-run" : 1687201440, "notes-template" : "{{cluster}}, {{guestname}}, {{node}}, {{vmid}}", "pool" : "backup-24h", "prune-backups" : { "keep-daily" : "7", "keep-monthly" : "4", "keep-weekly" : "4", "keep-yearly" : "1" }, "quiet" : 1, "schedule" : "21:04", "storage" : "pve-backup", "type" : "vzdump" } ] ```
Author
Owner

@franklupo commented on GitHub (Jun 19, 2023):

Problem found. Fixed in next release

Bets regards

<!-- gh-comment-id:1596862616 --> @franklupo commented on GitHub (Jun 19, 2023): Problem found. Fixed in next release Bets regards
Author
Owner

@franklupo commented on GitHub (Jun 19, 2023):

Hi,
if you want test a cmd tool without gui
https://github.com/Corsinvest/cv4pve-diag/releases/tag/v1.4.8

<!-- gh-comment-id:1596880377 --> @franklupo commented on GitHub (Jun 19, 2023): Hi, if you want test a cmd tool without gui https://github.com/Corsinvest/cv4pve-diag/releases/tag/v1.4.8
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#18
No description provided.