lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.45k stars 9.98k forks source link

[Bug] Can't upload docs on knowledge #4251

Closed juniorsereno closed 1 month ago

juniorsereno commented 1 month ago

📦 Environment

Docker

📌 Version

latest

💻 Operating System

Other Linux

🌐 Browser

Chrome, Edge

🐛 Bug Description

Stuck in upload... already config minio, logto, pgvector.

Database version, self-hosted

Captura de tela 2024-10-03 134806

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

lobehubbot commented 1 month ago

👀 @juniorsereno

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

dosubot[bot] commented 1 month ago

The issue you're experiencing with file uploads getting stuck at "Preparando para enviar..." (Preparing to send) could be related to several factors in the Lobe Chat system. Here are a few things to check and configure:

  1. MinIO Configuration: Ensure that your MinIO setup is correctly configured with the necessary access keys, bucket policies, and CORS settings. Double-check that the MINIO_ROOT_USER, MINIO_ROOT_PASSWORD, S3_ACCESS_KEY_ID, and S3_SECRET_ACCESS_KEY are correctly set and that the bucket policy allows the required actions [1].

  2. Network and Firewall Settings: Verify that there are no network issues or firewall settings blocking the connection between your application and the MinIO server. Ensure that the S3 endpoint is accessible from your application.

  3. Docker Resource Allocation: Make sure that Docker has sufficient resources allocated, especially memory and CPU, to handle file uploads and vector operations. This is crucial for PostgreSQL and PGVector to function properly [2].

  4. Logto and Authentication: Confirm that Logto is properly configured for authentication and that there are no issues with user permissions that might affect file uploads [3].

  5. Error Logs: Check the logs for any error messages that might provide more insight into why the upload is getting stuck. This can help identify if there are specific errors occurring during the upload process.

If these steps do not resolve the issue, consider reviewing the configurations and logs for any discrepancies or errors that might be causing the upload to hang.

To continue talking to Dosu, mention @dosu.

Sun-drenched commented 1 month ago

The information you provided is too little to pinpoint your issue, but I suspect the problem is most likely related to MinIO. You can try following the official documentation (https://lobehub.com/docs/self-hosting/server-database/docker-compose) to redeploy MinIO or review the previous deployment process according to the guidelines to see if there were any mistakes.

lobehubbot commented 1 month ago

✅ @juniorsereno

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。