cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
13.89k stars 3.26k forks source link

No Data on Analytics Page #9417

Closed azad96 closed 3 weeks ago

azad96 commented 1 month ago

Actions before raising this issue

Steps to Reproduce

  1. Go to 'Analytics' page
  2. See the 'Templating [X]' errors on the right side

Image

Expected Behavior

We've been collaboratively using the CVAT, and I expect to see some analytics about the usage of the tool.

Possible Solution

No response

Context

No response

Environment

- Git hash commit:
commit e41d2e9093a5291ec6d4283566f052278683d0b2 (HEAD -> develop, origin/develop, origin/HEAD)
Author: Kirill Lakhov <kirill.lakhov@cvat.ai>
Date:   Tue Apr 8 07:50:39 2025 +0300

    Improve rotation on 3D canvas (#9301)

    Made 3D canvas rotation responsive to mouse movement speed for smoother interaction.
- docker --version
Docker version 28.0.4, build b8034c0
- No Docker Swarm/Kubernetes
- Linux OS
bsekachev commented 1 month ago

Hello, Please, make sure all the services up in your deployment and there is no request errors on Network tab in the browser dev tools

Please, fill environment section. Is it out-of-the-box CVAT instance or with customizations? If it is out-of-the-box, how can we reproduce the issue on our side? (what version, what deployment steps have you done?)

azad96 commented 1 month ago

Thanks for the quick reply, There are just slight customizations such as changing the default values of imageQuality, and showDeletedFrames. I deployed the tool with the steps below

docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.https.yml build
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.https.yml up -d
bsekachev commented 1 month ago

Please, make sure all the services up in your deployment and there is no request errors on Network tab in the browser dev tools

azad96 commented 3 weeks ago

Hi @bsekachev , after opening the network tool in the browser, I saw the error below

"error": "error querying the database: Post \"http://user:***@clickhouse:8123?database=cvat&default_format=Native&max_execution_time=64\": dial tcp: lookup clickhouse on 127.0.0.11:53: no such host"

Then, I checked the output of the docker ps command, and I saw that

CONTAINER ID   IMAGE                                       COMMAND           CREATED        STATUS                         NAMES
68c7bd4725d3   clickhouse/clickhouse-server:23.11-alpine   "/entrypoint.sh"  23 hours ago   Restarting (183) 9 seconds ago cvat_clickhouse

Something is off with the clickhouse container. Do you have any idea?

bsekachev commented 3 weeks ago

docker logs cvat_clickhouse

azad96 commented 3 weeks ago
<jemalloc>: Number of CPUs detected is not deterministic. Per-CPU arena disabled.
Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
Processing configuration file '/etc/clickhouse-server/config.xml'.
Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/config.xml'.
Processing configuration file '/etc/clickhouse-server/users.xml'.
Merging configuration file '/etc/clickhouse-server/users.d/default-user.xml'.
Saved preprocessed configuration to '/var/lib/clickhouse/preprocessed_configs/users.xml'.
ClickHouse Database directory appears to contain a database; Skipping initialization
azad96 commented 3 weeks ago

I stopped the containers and then ran docker-compose down -v cvat_clickhouse. This seems to fix the issue. I don't get the errors at least after opening the analytics page. I'll wait and see if the analytics data pops up there soon. Thank you for the help. I'll close the issue