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.97k forks source link

Dockercompose进阶部署,上传文件失败 #3793

Closed whistle003 closed 2 months ago

whistle003 commented 2 months ago

📦 部署环境

Docker

📌 软件版本

1.15.13

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

image 上传除了图片以外的文件都提示失败,报错如图。模型是gpt-4o-mini+DALL `E3 我直接在文件管理界面是可以上传文件的,对话框上传就提示如上图

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Docker

📌 Software version

1.15.13

💻 System environment

Windows

🌐 Browser

Chrome

🐛 Problem description

image When uploading files other than images, the error message appears as shown in the figure. The model is gpt-4o-mini+DALL `E3

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

lobehubbot commented 2 months ago

👀 @whistle003

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 2 months ago

I found a similar unsolved discussion that might be relevant to your issue: 数据库服务端部署时对接阿里云oss服务上传文件出错,求解决!!! [1].

To resolve the "Invalid key length" error when uploading files (other than images) using Docker Compose on Windows with Chrome, you need to switch to a server-side deployment or use the LobeChat Cloud service. The current deployment mode does not support uploading non-image files.

{
  "upload": {
    "fileOnlySupportInServerMode": "當前部署模式不支持上傳非圖片文件,如需上傳 {{ext}} 格式,請切換到伺服器端資料庫部署或使用 LobeChat Cloud 服務"
  }
}

[2][3]

To continue talking to Dosu, mention @dosu.

arvinxx commented 2 months ago

因为你的 KeyVault 不对吧,建议检查下

lobehubbot commented 2 months ago

✅ @whistle003

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

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Because your KeyVault is wrong, I suggest you check it.

whistle003 commented 2 months ago

因为你的 KeyVault 不对吧,建议检查下

大佬,这个在哪儿检查?

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Because your KeyVault is wrong, I suggest you check it.

Sir, where can I check this?

whistle003 commented 2 months ago

因为你的 KeyVault 不对吧,建议检查下

我是用base32随机生成的32位数

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Because your KeyVault is wrong, I suggest you check it.

I randomly generated 32 digits using base32

whistle003 commented 2 months ago

因为你的 KeyVault 不对吧,建议检查下

已经解决了,确实是KeyVault的问题,感谢大佬

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Because your KeyVault is wrong, I suggest you check it.

It has been solved. It is indeed a problem with KeyVault. Thank you.

KingDoum commented 2 months ago

请教一下

遇到过上传卡住的情况么? 我f12 查看 报错的是这个 ,但是我的minio 是按照 配置操作的。 唯一怀疑的就是 我的代理地址 不知道有没有填对。 docker配置文件 'MINIO_DOMAIN=lobe-s3-api.example.xyz'

[ { "error": { "json": { "message": "S3 environment variables are not set completely, please check your env", "code": -32603, "data": { "code": "INTERNAL_SERVER_ERROR", "httpStatus": 500, "path": "upload.createS3PreSignedUrl" } } } } ]

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Ask for advice

Have you ever encountered an upload stuck? When I checked with f12, this is the error reported, but my minio operates according to the configuration. The only thing I doubt is whether my proxy address is correct. docker configuration file 'MINIO_DOMAIN=lobe-s3-api.example.xyz'

[ { "error": { "json": { "message": "S3 environment variables are not set completely, please check your env", "code": -32603, "data": { "code": "INTERNAL_SERVER_ERROR", "httpStatus": 500, "path": "upload.createS3PreSignedUrl" } } } } ]