-
Notifications
You must be signed in to change notification settings - Fork 316
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
JS browser demo - manic progress bar #722
Comments
That's odd and I am not able to reproduce it locally.
|
Okay, I'm doing the tests. Is this normal? I reloaded the JS client demo and tried with chunk size unset as you requested (what's a good chunk size?). One file uploaded normally, without any erratic progress bar behavior. Next file resulted in the above error again, and uploads don't complete anymore. Is that normal operation, would I have to handle that error in production, and is it frequent? I emptied out /srv/tusd-data/data in the docker container but that did not fix the problem, so does not appear to be a free space problem. Uploads to https://tusd.tusdemo.net/files/ seem to work fine. https://tus.io/demo upload became stuck very early. Continued again after a couple of minutes. Network view in the browser did not show individual chunk requests in this client version, so I can't see what was happening when it became stuck. |
I have never seen this error before. So, no, this is not normal. Since this behavior does not appear when uploading to our demo server, it's likely that your server/container is misconfigured and causing errors. The progress bar is updated based on transfer information from the client and server. While the client says, I sent 100% of the data to the server, the server says I got an error and didn't save any data. This causes the progress bar to jump around while the client is retrying. The logs from tusd should contain the exact errors that it's encountering. Can you put them here? If it's "too many open files" you might have to raise the limit for open file descriptors.
Best leave the option empty if you can. It's only needed in special situation and you don't have to set every option: https://github.com/tus/tus-js-client/blob/main/docs/api.md#chunksize |
Oh, that would be attributing just a 'lil too much credit to me.
Makes sense.
Okay. I hadn't touched anything yet so I'd have to look up how to do that, the file descriptors thing. I have included the complete log from the docker container since it seems to have gotten worse gradually, so I'm not sure there's an exact moment where it all broke. Hopefully you will find something useful in there. Ideally I was hoping to use tusd in production so knowing what happened here would be important. This is my first experience with tus & tusd.
Thanks. I'll leave that option alone. |
The only error I can find in the logs is This is the first time we have heard about this specific error with tusd, so I don't have concrete advice on how to fix this, but I would recommend you to look into increasing the limit of open file descriptors: https://stackoverflow.com/questions/29403185/docker-error-too-many-open-files I hope this helps! |
Describe the bug
Manic behavior of the progress bar in example.
In the example screen recording shown, an upload of a 1.9GB file results in the progress bar jumping around wildly, at one point reaching about 40%, then falling back to like 15% again. A progress bar should gradually move in one direction without major fluctuations (ETA can fluctuate, but not progress!!!)
To Reproduce
Use the JS browser client example.
Expected behavior
A progress bar that moves from 0 to 100% in the positive direction.
Setup details
Please provide following details, if applicable to your situation:
The text was updated successfully, but these errors were encountered: