Closed MartinHanewald closed 8 months ago
Now it comes to my mind, that during the annotation process I ran into diskspace issues and had to restart the service. The backend server had IO errors in its log. Could it be, that this corrupted something? However, as I stated I can access the tasks via the API without problems. Could there be something frontend specific in the database which needs to be re-initialized to fix this error?
On another note: I could also use some hints on how to debug this further...
Ok, I am one step further with this...actually it does not seem to have to do with the automatic annotation, but with the connected GIT repo of the other tasks. The error which is displayed via toast shows
And one of the requests to https://cvat-host/git/repository/get/44
shows
{"url": {"value": "https://github.com/MartinHanewald/tg-poc-training [annotation/Erdaushub_(Set_130)_v2.zip]"}, "status": {"value": null, "error": "Local repository is failed"}, "format": {"format": null}}
So how can I fix or remove a broken local repository?
Ok, so I actually solved my acute problem, but it is still not very desirable behaviour.
Seems like somehow the remotes from all git repos in the subfolders /home/django/data/tasks/<id>/artifacts/repos
got deleted, hence they were reported as "broken" and the GUI crashed hard.
I have no idea, how that happened in the first place.
My fix was to login manually to the PostgreSQL DB and delete all entries from dataset_repo_gitdata
. Now my tasks of course are not connected to git anymore, but I can access them again, which is more important. I guess there is an API endpoint for adding a git repo after task creation. As this is not documented and I have only seen it in the utils/CLI code I have no time right now to try it out.
Anyways, I hesitate to close this issue, since actually the GUI should not fail hard when repos are broken. So this should be fixed.
Keep up the good work :)
@MartinHanewald , thanks for your investigation. We will try to address the issue in our future releases.
Functionality removed
My actions before raising this issue
I ran automatic annotation with a custom model over the night. All annotations were inserted into the task successfully. But now all other tasks cannot be opened in the UI and I get a React error message.
Expected Behaviour
I should be able to open tasks in the project without UI error message.
Current Behaviour
That error message decodes to
Objects are not valid as a React child (found: object with keys {format}). If you meant to render a collection of children, use an array instead.
I can however access the tasks and all their information via the REST API endpoint, so it does not seem to be a backend issue. I already tried restarting all containers to no avail.
Possible Solution
I have no clue whatever caused this, so I have no suggestion.
Steps to Reproduce (for bugs)
I created a custom model in a nuclio function and ran automatic annotation on a large task with > 2000 images. The tasks creation I also did via REST API. I did not touch the other tasks. But every single one of them (apart from the automatic annotated one) throws that error in the UI.
Context
...
Your Environment
GCP compute engine, 150GB SSD, 16 GB RAM, 4 Cores, Nvidia T4 GPU CVAT runs with docker-compose
CVAT version Server: 1.7 Core: 3.17.0 Canvas: 2.8.0 UI: 1.25.0