ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: Issue Connecting an Agent to a Database

Open Peterson047 opened this issue 11 months ago • 1 comments

Is there an existing issue for the same bug?

  • [x] I have checked the existing issues.

RAGFlow workspace code commit ID

448fa1c

RAGFlow image version

v0.16.0 Full

Other environment information

i7 11ºgen
12GB RAM DDR4
Windows 11 Pro (Docker WSL)

Actual behavior

Hello!

I’m testing agents and thought about developing a conversational application that queries a database. However, I encountered an issue and I’m not sure if it’s a bug or a misconfiguration. (yes, i'm testing with the rag_flow database)

What I've tested:

  • Before creating the agent, I connected to the database via MySQL Workbench, using the credentials from the .env file. The connection was successful, and I was able to access the data normally.
  • Since both applications are running in separate containers, I configured the database using the WSL IP instead of localhost, as localhost cannot be used in this scenario.

Image

The issue:

  • Step 1: The flow indicates that the database is connected successfully.
  • Step 2: When I try to run the agent, I get an error stating that the host is unreachable.

Since the initial connection was successful, is there something wrong with the agent configuration, or could this be a platform bug?

Any help is appreciated!

Expected behavior

No error on second task

Steps to reproduce

SQL Module configured > Run agent

Additional information

No response

Peterson047 avatar Feb 18 '25 18:02 Peterson047

For the security reason, data base name can not be rag_flow.

KevinHuSh avatar Feb 19 '25 05:02 KevinHuSh