eosphoros-ai/DB-GPT

[Bug] [GraphRAG] Bug title graph_store ERROR: ERROR create graph store failed: Query execution failed: {code: PluginDisabled}

Closed this issue · 3 comments

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

latest release

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

CPU: Xeon Gold 6342 CPU
GPU: 0

Models information

LLM: tongyi_proxyllm
GRAPH_STORE_TYPE=TuGraph
GRAPH_COMMUNITY_SUMMARY_ENABLED=True

What happened

I create a knowledge graph at version:0.5.10, after I increase the version to 0.6.0, I cannot see the knowledge detail.

space delete error Query execution failed: {code: PluginDisabled} {message: No permission to load or delete plugin, please use correct config and restart server! This function has security risks, please enable it with caution!}

What you expected to happen

I build a image by myself

FROM dbgpt:v0.6.0
RUN pip3 install neo4j
RUN pip3 install dbgpt-tugraph,plugins==0.1.0rc1 -U -i https://pypi.org/simple

I start the docker-compose like:

tugraph:
  image: tugraph/tugraph-runtime-centos7:latest
  container name:tugraph
  ports :
  - 7870:7078
  - 7687:7687
  environment:
  - ENABLE PLUGIN=True
webserver:
  image: dbgpt-tugraph:ve.6.0
  command: python3 dbgpt/app/dbgpt_server.py
  environment:
    LOCAL DB HOST=db
    LOCAL DB PASSNORD=Sec@2024
    ALLOWLISTED PLUGINS=db dashboard

How to reproduce

  1. Go to : Construct APP
  2. Go to: Knowledge
  3. Click Delete that knowledge Graph

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

I change the docker-compose file , and fixed that problem

tugraph:
    image: docker-hub-1cc.pages.dev/tugraph/tugraph-runtime-centos7:latest
    container_name: tugraph
    ports:
      - 7071:7070
      - 7688:7687
    volumes:
      - /opt/tugraph/data:/var/lib/lgraph/data
    command: lgraph_server -d run --enable_plugin true

感谢大哥的方案,解决了