-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
[Bug] trpc/edge/upload.createS3PreSignedUrl?batch=1 显示502 #5208
Comments
👀 @ywq2421 Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
@ywq2421 你好!我是Dosu,一个能够帮助你解决bug、回答问题并成为贡献者的机器人。我在这里帮助你,等待人类维护者的到来。 The 502 Bad Gateway error you're encountering when accessing the
By addressing these areas, you should be able to identify and resolve the cause of the 502 errors and improve the reliability of the file upload process. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
502 是你的服务端没响应,应该是你的服务器挂了 |
502 means your server is not responding. It should be that your server is down. |
✅ @ywq2421 This issue is closed, If you have any questions, you can comment and reply. |
你的意思是,我在一个时间节点,多次上传文件,然后服务挂了?然后我刷新页面后服务又好了是吗???docker服务是没有停止过的好不? |
You mean, I uploaded files multiple times at one point in time, and then the service hung up? Then I refresh the page and the service works again, right? ? ? The docker service has never been stopped, right? |
对。如果你的服务器性能较差的话,那么一次性同时上传多个文件的时候就会出现服务器没法 hold 住所有请求的情况,然后部分请求就会出现 502。这个跟docker是否有停止服务应该没太大关系。 |
right. If your server's performance capabilities are poor, then when you upload multiple files at the same time, the server will not be able to hold all requests, and then some requests will appear 502. This should not have much to do with whether the docker request stops the service. |
单独将整个文件夹上传到minio是没问题的,和lobe部署在一个机器,而且也没看到cpu或内存占用飙升,性能我个人认为是够的, |
It’s no problem to upload the entire folder to minio alone, and deploy it on the same machine as lobe, and I haven’t seen a spike in CPU or memory usage. I personally think the performance is sufficient. |
那我先期待一下明年的改版体验,上传文件视频如下 |
Then I am looking forward to next year’s revision experience. The uploaded file video is as follows |
@ywq2421 根据你的视频中的情况来看,是部分成功,然后部分出现502,我觉得大概率应该是被限制并发了。你用的网关是nginx 吗?能否检查下有没有限制了最大的同时请求数之类的配置。 |
@ywq2421 According to the situation in your video, it is partially successful, and then 502 appears partially. I think there is a high probability that concurrency is restricted. Is the gateway you use nginx? Can you check if there is any configuration that limits the maximum number of simultaneous requests? |
Hey, this is a bit strange. The primary key hash is calculated based on the file. If the file hash is the same, this error will theoretically be triggered. But I have done routing on the front end. I will first confirm whether the file exists. If the same hash exists, it will automatically skip uploading and save the existing records in the library. Can this be reproduced stably? If it can be reproduced stably, it should be a bug. I'll fix it. |
似乎是版本问题导致,刚更新了最新版本,这个问题无法复现了,目前来看没什么问题了,祝lobe越来越好 |
It seems to be caused by a version problem. I just updated to the latest version and this problem cannot be reproduced. It seems that there is no problem so far. I wish Lobe better and better. |
📦 Environment
Docker
📌 Version
1.40.3
💻 Operating System
Ubuntu, Other Linux
🌐 Browser
Chrome
🐛 Bug Description
请求502,导致文件上传中断,另外,上传失败后,无法选择其他文件继续上传,选择文件上传按钮点不动
有时候刷新页面就能请求成功,有时候就502,确认服务正常,这里面在请求什么地址?
📷 Recurrence Steps
No response
🚦 Expected Behavior
文件正常上传
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: