Open davidediruscio opened 4 years ago
Sorry @MarcioMateus for the late reply, I missed this issue.
Sometimes I have a similar problem (no projects listed in the UI). What I do is to delete oss-app container, and if the problem is not fixed I delete the oss-db container too. In my case, once the data is in elasticsearch it's fine, I can delete the oss-db.
Checking the code of AnalysisTaskService.java, the line that it is having the issue is AnalysisTask analysisTask = this.repository.getAnalysisTasks().findById(taskRef.getId()).iterator().next();
, which I'm guessing that somehow the query to MongoDB is returning null or an empty iterator. Which would mean that the entry of the project that stores the task has been modified somehow.
I don't have a clear idea of why this would happen, but have you modified (metrics to do, dates) at any point the task that was analyzing the project with the issue? Maybe that can help us to get an idea of what it is happening.
In today's build of the platform (30/8/2019), we are getting a server error when accessing the api {oss-app_address}:8182/analysis/tasks/project/{project}:
The problem seems to be in handling of the results of the mongodb was you can see in:
Does anyone else have a similar problem? Any idea of what may be causing this behaviour?