Skip to content

Handle network instability during file upload in the Editor #2134

@vchendrix

Description

@vchendrix

Describe the bug
There seems to be an issue with data file uploads where the upload fails consistently for files >= 150mb. I tried this out on dev.nceas.ucsb.edu.

To Reproduce
Steps to reproduce the behavior:

  1. Go to dev.nceas.ucsb.edu
  2. Click on Submit
  3. Upload a 200mb file from a connection upload speed of ~40 Mbps using WIFI (with and without VPN)
  4. See error
  5. Upload a couple of smaller files (they should succeed)
  6. Save dataset

Your permissions should be lost and the user is no longer able to edit the dataset.

Expected behavior
Should be able to upload files of several GB files with no problems over a strong wifi connection. I have not had any problems uploading files over wifi using other web applications. I do wireless backups to the cloud, upload to google drive and submit data via curl to metacat with no problems. All using the same wireless connection.

Screenshots
On NCEAS dev ui
Screenshot 2023-05-17 at 12 09 51 PM

On nceas dev during upload
Screenshot 2023-05-17 at 1 56 14 PM

On nceas after save
I was able to upload two 100GB files but the 200GB file failed
Screenshot 2023-05-17 at 12 27 34 PM

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome
  • Version: Version 113.0.5672.92 (Official Build) (x86_64)

Additional context
I plugged my laptop directly into the router and had no problems uploading files. I was able to upload up to 1GB size of files (See https://dev.nceas.ucsb.edu/view/urn%3Auuid%3A052ac749-d225-40f4-a72a-6f2d5c3968ff).

So, this might be an issue in how metacatui handles uploading from flaky wifi connections. We are seeing an increasing number of users having this problem on ESS-DIVE.

I think there at least tow major issues:

  1. Not handling upload errors gracefully (missing resource map, loss of permissions)
  2. Flaky upload support for strong wifi connections

Metadata

Metadata

Labels

Type

No type

Projects

Status

Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions