-
Notifications
You must be signed in to change notification settings - Fork 293
Issue Uploading Large Files #1395
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
Comments
minio-js does not print any warning. please double check.
|
Running that seems to indicate that minio-js isn't even reaching out to the server as there are no calls for puts. In scenarios where an upload did succeed, I would see many put messages so I know at least the server side is working and the client is able to communicate with the server. |
So it is most likely proxy, lb issue |
There is no proxy or lb between the client and the server. The client is in a VM and the server is running on the host and they communicate directly with each other. The client also has no issue downloading large objects, it only seems to affect uploading. This also previously worked with a build of my code from half a year ago. I only recently updated all the packages and rebuilt it when I started seeing the issue. |
I went ahead and did some additional debugging:
Doing some Googling indicates this is a limitation of Buffer sizes in Node 20. This makes me think there was some regression with the stream reader. v22 increases the limit on 64 bit systems to 8PB so just as a test, I switched to node22 and instead got a different stack trace:
Ultimately, switching to v22 wouldn't be ideal though as Github Actions action files do not support it yet and we'd prefer to stay on Node20 as a result. Unfortunately, nothing stands out in the diff between v8.0.4 and v8.0.5 relating to streams but I'm hoping this can help direct the debugging direction. Let me know if any additional information would be helpful! |
Thank you @AndrewKahr .. 1GB file works fine.. 10GB does not work currently |
I am trying to upload large files (10-20GB) using minio-js to a local minio instance, however, I am seeing it fail with the following error:
I am using the following to upload:
I've also seen it throw the following error:
But in this scenario, the file is smaller (roughly 2GB), so I'm not sure what it's referring to in terms of file size limits.
I am using minio-js v8.0.5, node20, and the minio server is RELEASE.2025-03-12T18-04-18Z (go1.24.1 windows/amd64)
Guidance would be much appreciated and let me know if any other information would be helpful!
The text was updated successfully, but these errors were encountered: