Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster Diagnostic Exception Time #106

Closed
1 of 2 tasks
pepo087 opened this issue Jun 4, 2024 · 7 comments
Closed
1 of 2 tasks

Cluster Diagnostic Exception Time #106

pepo087 opened this issue Jun 4, 2024 · 7 comments
Assignees

Comments

@pepo087
Copy link

pepo087 commented Jun 4, 2024

Bug type

Non so se sia un bug oppure sbaglio qualcosa io, utilizzo docker su una macchina virtuale di Ubuntu Server su proxmox.
Il job per il cluster usage non mi ha dato problemi, questo sì

Component name

Cluster Diagnostic Exception Time

What happened?

The error is for the wrong time resolution

Corsinvest.ProxmoxVE.Api.PveResultException (UBSERVER:1)
got wrong time resolution (60 != 1800)

Corsinvest.ProxmoxVE.Api.PveResultException: got wrong time resolution (60 != 1800)
   at Corsinvest.ProxmoxVE.Api.ResultExtension.ToModel[T](Result result)
   at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensionsAutoGen.GetAsync(PveRrddata item, String timeframe, String cf)
   at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensions.GetAsync(PveRrddata item, RrdDataTimeFrame dataTimeFrame, RrdDataConsolidation dataConsolidation)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadStoragesAsync(PveNodeItem nodeApi)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadNodesAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport)
   at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.CollectAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport)
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Create(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Helper.cs:line 87
   at Corsinvest.ProxmoxVE.Admin.Diagnostic.Job.Create(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Job.cs:line 16
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs
![Schermata 2024-06-04 alle 16 22 06](https://github.com/Corsinvest/cv4pve-admin/assets/48530804/be1fc049-b383-4541-b5b7-a6721f54f1bf)
![Schermata 2024-06-04 alle 16 21 26](https://github.com/Corsinvest/cv4pve-admin/assets/48530804/e325e996-5ae6-4c5b-86d2-f7bb5a6cab29)
(Object obj, BindingFlags invokeAttr)

Expected behavior

The response of cronJob get fail

Relevant log output

No response

Proxmox VE Version

8.2.2

Version (bug)

1.1.1

Version (working)

1.1.1

What browsers are you seeing the problem on?

Chrome

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
@franklupo franklupo self-assigned this Jun 6, 2024
@franklupo
Copy link
Member

Ciao,
Se utilizzi la versione command line https://github.com/Corsinvest/cv4pve-diag da errore?

grazie

@pepo087
Copy link
Author

pepo087 commented Jun 7, 2024

same

pompeo@debian:~$ sudo ./cv4pve-diag --output=Text --host=***.***.***.***:8006 --username=root@pam --password=***** execute
ERROR: got wrong time resolution (60 != 1800)

@franklupo
Copy link
Member

eseguilo con parametro -- debug e allega il file di log.
Attento alle password che sono in chiaro

Grazie

@pepo087
Copy link
Author

pepo087 commented Jun 7, 2024

prima mi ha detto tutto fino a fermarsi qui allego
log.json

} dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://***.***.***.***:8006/api2/json/nodes/pve/storage/back/status dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "used": 0, "shared": 1, "type": "pbs", "total": 0, "content": "backup", "active": 0, "enabled": 1, "avail": 0 } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://***.***.***.***:/api2/json/nodes/pve/storage/back/rrddata?timeframe=day&cf=AVERAGE dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: InternalServerError ReasonPhrase: got wrong time resolution (60 != 1800) IsSuccessStatusCode: False trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": null } ERROR: got wrong time resolution (60 != 1800) ================ EXCEPTION ================ Corsinvest.ProxmoxVE.Api.PveResultException got wrong time resolution (60 != 1800) fail: Program[0] got wrong time resolution (60 != 1800) Corsinvest.ProxmoxVE.Api.PveResultException: got wrong time resolution (60 != 1800) at Corsinvest.ProxmoxVE.Api.ResultExtension.ToModel[T](Result result) at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensionsAutoGen.GetAsync(PveRrddata item, String timeframe, String cf) at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensions.GetAsync(PveRrddata item, RrdDataTimeFrame dataTimeFrame, RrdDataConsolidation dataConsolidation) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadStoragesAsync(PveNodeItem nodeApi) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadNodesAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.CollectAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport) at Program.<>c__DisplayClass0_0.<<<Main>$>g__GetInfo|2>d.MoveNext() --- End of stack trace from previous location --- at Program.<>c__DisplayClass0_0.<<<Main>$>b__5>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() at Corsinvest.ProxmoxVE.Api.ResultExtension.ToModel[T](Result result) at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensionsAutoGen.GetAsync(PveRrddata item, String timeframe, String cf) at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensions.GetAsync(PveRrddata item, RrdDataTimeFrame dataTimeFrame, RrdDataConsolidation dataConsolidation) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadStoragesAsync(PveNodeItem nodeApi) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadNodesAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.CollectAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport) at Program.<>c__DisplayClass0_0.<<<Main>$>g__GetInfo|2>d.MoveNext() --- End of stack trace from previous location --- at Program.<>c__DisplayClass0_0.<<<Main>$>b__5>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()

@pepo087
Copy link
Author

pepo087 commented Jun 7, 2024

il volume back è offline per mia scelta non si potrebbe bypassare?

Corsinvest.ProxmoxVE.Api.PveResultException: RRD error: rrdcached@unix:/var/run/rrdcached.sock: rrd_fetch_r failed: opening '/var/lib/rrdcached/db/pve2-storage/pve/back': No such file or directory at Corsinvest.ProxmoxVE.Api.ResultExtension.ToModel[T](Result result) at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensionsAutoGen.GetAsync(PveRrddata item, String timeframe, String cf) at Corsinvest.ProxmoxVE.Api.Extension.ModelsExtensions.GetAsync(PveRrddata item, RrdDataTimeFrame dataTimeFrame, RrdDataConsolidation dataConsolidation) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadStoragesAsync(PveNodeItem nodeApi) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.ReadNodesAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport) at Corsinvest.ProxmoxVE.Api.Extension.Utils.InfoHelper.CollectAsync(PveClient client, Boolean removeSecurity, Int32 tasksDay, Boolean tasksOnlyErrors, Boolean nodeReport) at Corsinvest.ProxmoxVE.Admin.Diagnostic.Helper.Create(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Helper.cs:line 87 at Corsinvest.ProxmoxVE.Admin.Diagnostic.Job.Create(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.Diagnostic/Job.cs:line 16 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

@franklupo
Copy link
Member

Prova la nuova versione cv4pve-diag nei prossimi giorni aggiorno anche admin.

grazie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants