-
-
Notifications
You must be signed in to change notification settings - Fork 68
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: No indication of upload to remote storage #193
Comments
@MalteMagnussen Thanks for the report, I was able to reproduce it. Normally there should be an indication that the file is being processed / uploaded, I will look into it. |
Thanks, there was a problem with the implemented SSE protocol, which was used since the new release. Fixed in 4f71a2b |
@Forceu - Thank you very much. It is much appreciated. The 15GB.file is showing up in the list of files upon visit to our gokapi instance today. Would increasing any of the config give improved performance? Uploading a 20GB file, I am seeing "Processing..." now, and after a little over a minute "Uploading file..." This is version 1.9.1 ~40 minutes later, I choose to open the site in a new tab. Holding the browser windows side-by-side, I can see that the 20GB file was successfully uploaded, but the UI where I uploaded the file from, is still saying "Uploading file..." I create large files like so: Update: Trying locally with the same image in docker, unrestricted by CPU or MEM on a quite powerful ThinkPad, I can get it to finish the upload after a while. I'll try increasing the resources of the Kubernetes deployed container some more. Do you think it is a CPU/MEM issue, or a local SSD vs remote S3 issue? Update: I significantly increased the CPU and MEM to several GB in k8s, and trying 20GB again. Still seeing the "Uploading...", yet I can see the file in the list of files, if I open it in a new tab. |
Sorry I just saw your last comment. Hm this should neither be a CPU nor a RAM limiting task, as by default all files larger than 50MB are written to a temporary file instead of being stored in RAM. How long does the upload take? I can image that there is a timeout going on. Unfortunately the JS is not covered by the unit tests, which is why most bugs take place there. |
Testing a 5GB file upload: Uploading at speeds between 12MB/s to 15MB/s according to the UI. At around 5 minutes and 50 seconds, it was at 100% upload. That makes sense, given the upload speed. Then it starts the "Processing" and "Uploading file" step. Refreshing the page in a second window, I see the file at 7:30 on my stop watch. So it took ~1 minute and 40 seconds to process the chunks and upload to S3 I assume? Not the end of the world imo. Would just be nice to have the "Uploading file..." step end whenever the file is finished :) The supporters in our company have started using the service, and the fact that it seems to "hang" on "Uploading file..." is confusing them. Even if they can just open the page in a new tab, and see the file there. They have also mentioned that when uploading a file with name "Foo", it will always show up as "downloadFile" on the users side. Notice the filename in the UI is correct, but firefox is downloading it as "downloadFile". This is confusing for some customers, as they have trouble unzipping it, if it doesn't keep the .tar.gz extension fx. Something about the |
Thanks for the feedback! I will track the issue related to the content-disposition in #199. Can you test if this also happens if you do not proxy the file download? I could image that this is where the problem lays. Normally the file should be added automatically after the upload is complete. I will have a look at it tomorrow |
@Forceu - Thank you very much :) Let me check in our test environment what happens if I disable the proxying. EDIT: Filename is saved here: Yes, changing ProxyDownload to False will fix it. But we need the proxy, because our customers can't reach the S3 directly. Thanks for the tip.
|
@MalteMagnussen The incorrect headers are now fixed in the latest dev version. I will have a look at your problem that the new file is not displayed in time later on. |
@Forceu - Thank you very much. It is working now in our test and prod environments. |
Discussed in https://github.com/Forceu/Gokapi/discussions/192
Originally posted by MalteMagnussen July 22, 2024
Trying to upload a large file (15GB in this case) to Gokapi causes it to "hang" at the end of the upload.
It has been several minutes.
We are using S3 as the storage.
We suspect it might be because S3 has to write to "disk/tape" first, and then it sends a link back, and Gokapi is waiting to receive that link, so it can create the row with the links etc.
Is this a correct assumption?
Looking at the logs doesn't provide any insights:
For good measure, here are the
config.json
bits about the chunksize, etc:And the container resources:
Smaller sizes working:
The text was updated successfully, but these errors were encountered: