AI绘画问题,Error [TRPCError]: Failed to fetch cover image #8589
-
📦 部署环境Docker 📦 部署模式服务端模式(lobe-chat-database 镜像) 📌 软件版本1.104.0 💻 系统环境Other Linux 🌐 浏览器Edge 🐛 问题描述Error [TRPCError]: Failed to fetch cover image from https:///lobe/generations/images/_1024x1024_20250725_015615_thumb.webp: 403 Forbidden 在miniIO里面可以看到生成的图片,但是预览失败,显示这个报错。 📷 复现步骤No response 🚦 期望结果No response 📝 补充信息No response |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 1 reply
-
|
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ChinaBurn! I'm Dosu and I’m helping the lobe-chat team. 你遇到的 403 Forbidden 报错,绝大多数情况下是 MinIO 存储桶权限或 S3 相关环境变量配置导致的。可以按以下步骤排查和解决:
如果以上都没问题,建议查看 Lobe Chat 和 MinIO 的服务端日志,定位更详细的错误信息。近期有修复 AI 绘图相关 bug 的更新(如 #8490、#8432、#8448),如有需要可尝试升级到最新版参考。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
我确认不是s3权限的问题,我在miniIO里面都可以看到生成的图片。 Route: [openai] InvalidProviderAPIKey: { error: undefined, errorType: 'InvalidProviderAPIKey' }
{"level":30,"time":1753408540913,"pid":30,"hostname":"LobeChat","msg":"Error in tRPC handler (lambda) on path: generationTopic.updateTopicCover, type: mutation"}
Error [TRPCError]: Failed to fetch cover image from https://XXXXXXXX/lobe/generations/images/IfMEIkwHi7ugZi_KsZDOA_1024x1024_20250725_015538_thumb.webp: 403 Forbidden
at GenerationService.createCoverFromUrl (.next/server/chunks/91242.js:1527:23)
at async (.next/server/chunks/27920.js:2262:29)
at async resolveMiddleware (.next/server/chunks/2936.js:1418:17)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18) {
code: 'INTERNAL_SERVER_ERROR',
[cause]: Error: Failed to fetch cover image from https://XXXXXXXX/lobe/generations/images/IfMEIkwHi7ugZi_KsZDOA_1024x1024_20250725_015538_thumb.webp: 403 Forbidden
at GenerationService.createCoverFromUrl (.next/server/chunks/91242.js:1527:23)
at async (.next/server/chunks/27920.js:2262:29)
at async resolveMiddleware (.next/server/chunks/2936.js:1418:17)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
at async callRecursive (.next/server/chunks/2936.js:1453:18)
} |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
解决了,确实是权限问题,但是应该和lobechat的图片生成路径有关系,因为前期搭建S3,权限只给了lobe下的files文件夹,并没有给到generations这个新的文件夹。所以才会导致这个问题。我重新给了权限就好了。 |
Beta Was this translation helpful? Give feedback.
-
It was solved, and it was indeed a permission problem, but it should be related to the image generation path of lobechat. Because S3 was built in the early stage, permissions were only given to the files folder under lobe, and the new folder of generations was not given to the generations. That's why this problem is caused. I just gave the permission again. |
Beta Was this translation helpful? Give feedback.
-
Ok, 问题解决了就好 |
Beta Was this translation helpful? Give feedback.
-
|
This issue is closed, If you have any questions, you can comment and reply. |
Beta Was this translation helpful? Give feedback.
-
Ok, it's fine if the problem is solved |
Beta Was this translation helpful? Give feedback.
-
|
遇到了同样的问题,楼主没有给出具体解决方法,我在这里提供一下(以我的minio为例):
应该就能解决这个问题了。 |
Beta Was this translation helpful? Give feedback.
解决了,确实是权限问题,但是应该和lobechat的图片生成路径有关系,因为前期搭建S3,权限只给了lobe下的files文件夹,并没有给到generations这个新的文件夹。所以才会导致这个问题。我重新给了权限就好了。