Validation of project failed (date/time issue)


I’m doing a scan of codes via SonarScanner and submitting the result to SonarQube running version 9.4.0.

I keep on getting FAILED result with the following error message,

 "status": "FAILED",
    "submittedAt": "2022-09-02T08:29:00+0000",
    "submitterLogin": "test",
    "startedAt": "2022-09-02T08:29:13+0000",
    "executedAt": "2022-09-02T08:29:17+0000",
    "executionTimeMs": 3893,
    "errorMessage": "Validation of project failed:\n  o Date of analysis cannot be older than the date of the last known analysis on this project. Value: \"2022-09-02T08:24:21+0000\". Latest analysis: \"2022-09-02T08:24:33+0000\". It\u0027s only possible to rebuild the past in a chronological order."

I’ve been trying to search similar issues but no luck so far.

Anyone has any ideas on how to tackle this issue?

Thank you!


Do you have multiple jobs running in parallel? If so, it looks like a race condition may have been created with a later-starting job completing and submitted before an earlier one.

Does this sound right?


Anecdotally, this can also be caused by the system time being out of sync between build agents.

1 Like

Hi, there is only 1 job running at 1 time and it just keeps on failing with that same error message.



What about what Colin suggested?


How can we check if there’s a time out of sync between the build agents?


That’s going to vary by OS. It should be a pretty easy search.