[GH-ISSUE #21541] issue: On Analytics Tab Base Model Chats returns empty for both backend and UI and Token Count always 0 for All Messages #19512

Closed
opened 2026-04-20 01:59:00 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ctolon on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21541

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.8.3

Ollama Version (if applicable)

No response

Operating System

RHEL 8.10 (On K3S)

Browser (if applicable)

Google Chrome

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

After upgrading OpenWebUI from v0.7.1 to v0.8.2 — including applying all required database and configuration migrations — the Analytics → Base Model Chats section appears empty on both the backend and UI (Custom Workspace models shows them very well).

Additionally, the Token Count metric consistently shows 0 for all messages, indicating that analytics data is either not being recorded or not being retrieved correctly after the upgrade.

Due to regulatory restrictions, I am unable to share screenshots of the issue, but the behavior is fully reproducible immediately after completing the migration and update process.

This situation might be due to a migration or configuration error, I'm not sure.

Actual Behavior

Base Model Chats should display historical and newly generated chat analytics.

Token Count should reflect the actual token usage per message/chat.

Steps to Reproduce

  1. Start with a working OpenWebUI v0.7.1 instance containing existing chat history.

  2. Upgrade the application to v0.8.2.

  3. Apply all required database/configuration migrations.

  4. Open Analytics → Base Model Chats.

Observe:

No chats listed for Base Models.

Token Count = 0 for all messages, including new chats created after upgrade.

Logs & Screenshots

.

Additional Information

I'll try to share more information if you need it

Originally created by @ctolon on GitHub (Feb 17, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21541 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.8.3 ### Ollama Version (if applicable) _No response_ ### Operating System RHEL 8.10 (On K3S) ### Browser (if applicable) Google Chrome ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior After upgrading OpenWebUI from v0.7.1 to v0.8.2 — including applying all required database and configuration migrations — the Analytics → Base Model Chats section appears empty on both the backend and UI (Custom Workspace models shows them very well). Additionally, the Token Count metric consistently shows 0 for all messages, indicating that analytics data is either not being recorded or not being retrieved correctly after the upgrade. Due to regulatory restrictions, I am unable to share screenshots of the issue, but the behavior is fully reproducible immediately after completing the migration and update process. This situation might be due to a migration or configuration error, I'm not sure. ### Actual Behavior Base Model Chats should display historical and newly generated chat analytics. Token Count should reflect the actual token usage per message/chat. ### Steps to Reproduce 1. Start with a working OpenWebUI v0.7.1 instance containing existing chat history. 2. Upgrade the application to v0.8.2. 3. Apply all required database/configuration migrations. 4. Open Analytics → Base Model Chats. Observe: No chats listed for Base Models. Token Count = 0 for all messages, including new chats created after upgrade. ### Logs & Screenshots . ### Additional Information I'll try to share more information if you need it
GiteaMirror added the bug label 2026-04-20 01:59:00 -05:00
Author
Owner

@Classic298 commented on GitHub (Feb 17, 2026):

Cannot reproduce except for the 0 token count, but that issue is already being tracked here: https://github.com/open-webui/open-webui/issues/21347

therefore duplicate and cannot reproduce

if the Analytics Tab is empty for you, something during your migration may have gone wrong or it didnt fully complete, or you might have stamped it

keep us updated on the other issue thanks lets track it there

<!-- gh-comment-id:3916835078 --> @Classic298 commented on GitHub (Feb 17, 2026): Cannot reproduce except for the 0 token count, but that issue is already being tracked here: https://github.com/open-webui/open-webui/issues/21347 therefore duplicate and cannot reproduce if the Analytics Tab is empty for you, something during your migration may have gone wrong or it didnt fully complete, or you might have stamped it keep us updated on the other issue thanks lets track it there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#19512