Skip to content

Serious Issue: Frequent and Critical Loss of Chat History/Logs #515

@m-masahiro-addness

Description

@m-masahiro-addness

Type of Documentation Change

Error/Typo fix

Documentation Page URL or Path

No response

Current Content

We are reporting a serious and critical issue regarding the stability and reliability of the Dify platform.

We are observing that the chat history/logs are disappearing with significant frequency. This is not an isolated or rare event; it is happening consistently enough to severely impact our operation and ability to track user interactions and model performance.

Key Concerns:

Data Loss: The disappearance of history represents a critical loss of operational data and diagnostic information.

Operational Instability: The platform's perceived reliability is undermined, making it difficult to trust the system for long-term data storage.

Difficulty in Debugging/Monitoring: Without reliable logs, it is nearly impossible for us to monitor model behavior, debug issues, or conduct necessary audits.

This issue is occurring quite frequently (or "at a quite high frequency") and needs to be addressed with high priority and urgency. We request an immediate investigation into the root cause of this frequent data loss.

Suggested Changes

Suggested Changes / Requested Actions

  1. Audit Data Persistence and Retention Policy:
    • Please conduct an urgent audit of the database write operations, data retention settings, and any automated cleanup scripts related to chat history. We need to confirm that chat logs are not being accidentally or prematurely deleted.
  2. Enhance Server-Side Logging:
    • Increase the verbosity of server-side logs, specifically for database WRITE and DELETE operations on chat history tables, to help pinpoint the exact moment and reason for the data loss.
  3. Implement Immediate Write Confirmation:
    • As a short-term measure, consider implementing a verification step in the backend to ensure a new chat entry is successfully persisted to the database immediately after the response is generated.
  4. Collaboration on Diagnostics:
    • We are ready to provide specific timestamps, operational environment details, and relevant log snippets from our side (e.g., front-end network traffic) to assist your engineering team in reproducing and diagnosing the issue.

Reason for Change

Reason for Reporting / Impact of the Issue

This issue must be treated as a high-priority incident due to the following critical impacts:

  • Critical Data Loss: The frequent disappearance of chat history results in a critical loss of operational logs and diagnostic data, which are indispensable for debugging, performance monitoring, and model improvement.
  • Erosion of Trust: Consistent data loss severely undermines the reliability of the Dify platform, making it unreliable for long-term data tracking and archival purposes.
  • Operational Risk: The inability to track and reference past user interactions poses a significant risk to our own customer support, auditing processes, and the personalized user experience we aim to provide.

Code of Conduct

  • I agree to follow Dify's documentation contribution guidelines
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationstaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions