[GH-ISSUE #127] scan job error after update to 1.2.0 #54

Closed
opened 2026-02-26 17:37:03 +03:00 by kerem · 12 comments
Owner

Originally created by @tradeitsolutions on GitHub (Feb 7, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/127

Originally assigned to: @franklupo on GitHub.

Bug type

Component

Component name

Corsinvest.ProxmoxVE.Admin.ReplicationTrend

What happened?

Job.Scan
An exception occurred during performance of the job. [Fewer details...](http://10.x

Image

:5000/BackgroundJobs-HangFire/jobs/failed#)
an hour ago
System.ArgumentOutOfRangeException
Index and length must refer to a location within the string. (Parameter 'length')

System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length')
at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
at Corsinvest.ProxmoxVE.Admin.ReplicationTrend.Helper.PopulateDb(PveClient client, ModuleClusterOptions moduleClusterOptions, IRepository`1 replicationResultRepo, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.ReplicationTrend/Helper.cs:line 60
at Corsinvest.ProxmoxVE.Admin.ReplicationTrend.Helper.Scan(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.ReplicationTrend/Helper.cs:line 31
at Corsinvest.ProxmoxVE.Admin.ReplicationTrend.Job.Scan(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.ReplicationTrend/Job.cs:line 16
at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Expected behavior

succeded

Relevant log output


Proxmox VE Version

8.3.3

Version (bug)

1.2.0

Version (working)

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
Originally created by @tradeitsolutions on GitHub (Feb 7, 2025). Original GitHub issue: https://github.com/Corsinvest/cv4pve-admin/issues/127 Originally assigned to: @franklupo on GitHub. ### Bug type Component ### Component name Corsinvest.ProxmoxVE.Admin.ReplicationTrend ### What happened? [Job.Scan](http://10.x:5000/BackgroundJobs-HangFire/jobs/details/87) An exception occurred during performance of the job. [Fewer details...](http://10.x ![Image](https://github.com/user-attachments/assets/afffbef0-bea7-43e6-9239-43ff75f8caaf) :5000/BackgroundJobs-HangFire/jobs/failed#) an hour ago System.ArgumentOutOfRangeException Index and length must refer to a location within the string. (Parameter 'length') System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length) at Corsinvest.ProxmoxVE.Admin.ReplicationTrend.Helper.PopulateDb(PveClient client, ModuleClusterOptions moduleClusterOptions, IRepository`1 replicationResultRepo, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.ReplicationTrend/Helper.cs:line 60 at Corsinvest.ProxmoxVE.Admin.ReplicationTrend.Helper.Scan(IServiceScope scope, String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.ReplicationTrend/Helper.cs:line 31 at Corsinvest.ProxmoxVE.Admin.ReplicationTrend.Job.Scan(String clusterName) in /src/src/Corsinvest.ProxmoxVE.Admin.ReplicationTrend/Job.cs:line 16 at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) ### Expected behavior succeded ### Relevant log output ```shell ``` ### Proxmox VE Version 8.3.3 ### Version (bug) 1.2.0 ### Version (working) 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 - [x] I agree to follow this project's Code of Conduct
kerem closed this issue 2026-02-26 17:37:03 +03:00
Author
Owner

@franklupo commented on GitHub (Feb 7, 2025):

Delete old job and retry

<!-- gh-comment-id:2642810534 --> @franklupo commented on GitHub (Feb 7, 2025): Delete old job and retry
Author
Owner

@tradeitsolutions commented on GitHub (Feb 7, 2025):

hi, thanks for your help. Ive upgraded 2 weeks ago and try to delete job many times without result. do i have to check something else ?

<!-- gh-comment-id:2642901802 --> @tradeitsolutions commented on GitHub (Feb 7, 2025): hi, thanks for your help. Ive upgraded 2 weeks ago and try to delete job many times without result. do i have to check something else ?
Author
Owner

@franklupo commented on GitHub (Feb 7, 2025):

I'm investigating if there is a bug

<!-- gh-comment-id:2643005221 --> @franklupo commented on GitHub (Feb 7, 2025): I'm investigating if there is a bug
Author
Owner

@franklupo commented on GitHub (Feb 7, 2025):

the replication fails on proxmox?

<!-- gh-comment-id:2643033436 --> @franklupo commented on GitHub (Feb 7, 2025): the replication fails on proxmox?
Author
Owner

@tradeitsolutions commented on GitHub (Feb 7, 2025):

no, it seem ok

<!-- gh-comment-id:2643051774 --> @tradeitsolutions commented on GitHub (Feb 7, 2025): no, it seem ok
Author
Owner

@franklupo commented on GitHub (Feb 7, 2025):

Hi,
could you attach the replication logs?

best regards

<!-- gh-comment-id:2643098086 --> @franklupo commented on GitHub (Feb 7, 2025): Hi, could you attach the replication logs? best regards
Author
Owner

@tradeitsolutions commented on GitHub (Feb 7, 2025):

hi, in attach first 100 exported rows (5665 total) dome days ago i had a strage row with date 1970 but now i cannot find it

Jobs.xlsx

Image

<!-- gh-comment-id:2643129886 --> @tradeitsolutions commented on GitHub (Feb 7, 2025): hi, in attach first 100 exported rows (5665 total) dome days ago i had a strage row with date 1970 but now i cannot find it [Jobs.xlsx](https://github.com/user-attachments/files/18708143/Jobs.xlsx) ![Image](https://github.com/user-attachments/assets/0311e652-8e8b-43e6-9a32-1efc318a551f)
Author
Owner

@franklupo commented on GitHub (Feb 7, 2025):

log in proxmox

<!-- gh-comment-id:2643147740 --> @franklupo commented on GitHub (Feb 7, 2025): log in proxmox
Author
Owner

@tradeitsolutions commented on GitHub (Feb 7, 2025):

somethin like attached ?

logs.tar.gz

<!-- gh-comment-id:2643214008 --> @tradeitsolutions commented on GitHub (Feb 7, 2025): somethin like attached ? [logs.tar.gz](https://github.com/user-attachments/files/18708535/logs.tar.gz)
Author
Owner

@tradeitsolutions commented on GitHub (Feb 7, 2025):

hi, perhaps i found the problem
there was 2 replication disabled but in progress to be removed. i deleted it and for now the error disappear

<!-- gh-comment-id:2643283347 --> @tradeitsolutions commented on GitHub (Feb 7, 2025): hi, perhaps i found the problem there was 2 replication disabled but in progress to be removed. i deleted it and for now the error disappear
Author
Owner

@franklupo commented on GitHub (Feb 10, 2025):

Hi,
wow many jobs had problems?

best regards

<!-- gh-comment-id:2647150581 --> @franklupo commented on GitHub (Feb 10, 2025): Hi, wow many jobs had problems? best regards
Author
Owner

@tradeitsolutions commented on GitHub (Feb 10, 2025):

seem no real problems only error on scan jobs (see attached) if i requeue all run ok

Image

<!-- gh-comment-id:2648010523 --> @tradeitsolutions commented on GitHub (Feb 10, 2025): seem no real problems only error on scan jobs (see attached) if i requeue all run ok ![Image](https://github.com/user-attachments/assets/e6d3eb3f-285e-4fde-a608-2f57d2985fb4)
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#54
No description provided.