"Validation of project failed" Date of analysis cannot be other than date of last known analysis

SonarQube v9.4

Getting random errors on Background tasks (see below). Possible bug?? Appears that the logic is not anticipating the rare greater than or equal value.

Error Details
Validation of project failed:
o Date of analysis cannot be older than the date of the last known analysis on this project. Value: “2022-09-27T14:51:45-0400”. Latest analysis: “2022-09-27T14:51:45-0400”. It’s only possible to rebuild the past in a chronological order.

Error Details

Validation of project failed:
o Date of analysis cannot be older than the date of the last known analysis on this project. Value: “2022-08-25T16:17:10-0400”. Latest analysis: “2022-08-25T16:17:11-0400”. It’s only possible to rebuild the past in a chronological order.

1 Like

Hi,

In fact the logic does anticipate this. That’s why you’re getting an error. :smiley:

This can be caused by a date mismatch between CI agent and server, or by multiple, parallel analyses.

 
HTH,
Ann

1 Like

Interesting…didn’t know if it was some sort of race condition or something. When the developers ran again, they were fine. But periodically one will just pop up… Telling them to run it again seems to be “cheating” them out of time.

Hi,

Yeah, that’s fair.

Could you double-check the time sync between the SonarQube server & the build agents to make sure that’s not a cause?

 
Ann

Checked. All managed by the infrastructure. No worries. We’ll watch it to see if we can see any other correlations to report.

Thanks Ann, as always!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.