Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问怎么解决本地docker映射mysql的问题 #4

Open
geeklx opened this issue Jan 22, 2025 · 3 comments
Open

请问怎么解决本地docker映射mysql的问题 #4

geeklx opened this issue Jan 22, 2025 · 3 comments

Comments

@geeklx
Copy link

geeklx commented Jan 22, 2025

我先按照这个https://docs.docker.com/guides/databases/

把映射做完后,

Image

然后运行项目,就报错:
C:\Users\liang\AppData\Local\Programs\Python\Python313\python.exe D:\cursor\code\cs7\ragflow-upload\ragflows\main.py
2025-01-22 18:03:48 【1/3】正在处理:D:/cursor/pdf1/1.pdf
(1146, "Table 'rag_flow.document' doesn't exist")
2025-01-22 18:03:48 Function 'get_doc_item_by_name' took 0.04 seconds to execute.
2025-01-22 18:03:48 Function 'upload_file_to_kb' took 0.08 seconds to execute.
2025-01-22 18:03:48 {'code': 401, 'data': None, 'message': "<Unauthorized '401: Unauthorized'>"}
2025-01-22 18:03:48 D:/cursor/pdf1/1.pdf 上传失败:None
2025-01-22 18:03:48 【2/3】正在处理:D:/cursor/pdf1/2.pdf
2025-01-22 18:03:48 Function 'get_doc_item_by_name' took 0.00 seconds to execute.
(1146, "Table 'rag_flow.document' doesn't exist")
2025-01-22 18:03:48 Function 'upload_file_to_kb' took 0.08 seconds to execute.
2025-01-22 18:03:48 {'code': 401, 'data': None, 'message': "<Unauthorized '401: Unauthorized'>"}
2025-01-22 18:03:48 D:/cursor/pdf1/2.pdf 上传失败:None
2025-01-22 18:03:48 【3/3】正在处理:D:/cursor/pdf1/3.pdf
2025-01-22 18:03:48 Function 'get_doc_item_by_name' took 0.01 seconds to execute.
(1146, "Table 'rag_flow.document' doesn't exist")
2025-01-22 18:03:48 Function 'upload_file_to_kb' took 0.03 seconds to execute.
2025-01-22 18:03:48 {'code': 401, 'data': None, 'message': "<Unauthorized '401: Unauthorized'>"}
2025-01-22 18:03:48 D:/cursor/pdf1/3.pdf 上传失败:None
2025-01-22 18:03:48 all done

进程已结束,退出代码为 0

configs.py:

Image

请大佬帮忙看看,谢谢

@geeklx
Copy link
Author

geeklx commented Jan 22, 2025

Image

@Galaxy-Ding
Copy link

Galaxy-Ding commented Jan 23, 2025

明显是你的 账号的验证id 没给对。
#2
参考 上面的 配置重新改一下 config 文件

@Samge0
Copy link
Owner

Samge0 commented Feb 6, 2025

你好,
1、 {'code': 401, 'data': None, 'message': "<Unauthorized '401: Unauthorized'>"}这提示鉴权错误,需要参考#2 检查一下config文件中的AUTHORIZATION字段配置;

2、(1146, "Table 'rag_flow.document' doesn't exist")这里提示找不到document表,根据你提供的配置截图,mysql数据库端口配置的是3307,使用的是自己独立运行的数据库而非rag项目中的ragflow_mysql数据库,应改为你docker截图界面中ragflow_mysql5455端口。

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants