While checking the details of some old Deployments, the following Server Error appears:
Release Automation 6.8.4 (and older) and 6.9
Checking logs at the time the error appeared, the following can be seen:
INFO (com.nolio.platform.server.dataservices.services.execution.cache.JobDatabaseLoaderImpl:46) - loading online job [12345] from Database.
WARN (com.nolio.platform.server.dataservices.services.execution.cache.JobsCacheImpl:70) - Failed to load ExecutionJob[id=12345] to cache
com.nolio.platform.server.dataservices.services.execution.cache.NoItemToLoadException: job id[12345]
INFO (com.nolio.platform.server.dataservices.services.execution.cache.JobDatabaseLoaderImpl:34) - loading offline job [12345] from Database.
ERROR (com.nolio.releasecenter.designer.controllers.execution.ProcessExecutionController:125) - Controller method error occurred.
java.lang.IllegalArgumentException: job [id=12345] was not found in jobs cache, nor in online and offline jobs DB tables.
This error message appears because a cleanup script was previously executed, in order to delete execution jobs:
When this is done, deployments information is kept in the database, but all the associated execution jobs of these deployments are removed, which causes the error. Currently, there is no way to cleanup old deployments.
At the moment this article was written, DEV team confirmed that there is a feature being built which will include a way to also cleanup Deployments from the database, it's expected to be in release 6.9.1.