Page MenuHomePhabricator

Unable to upload files larger than ~2MB on slow connections
Open, Needs TriagePublic

Description

I've been hesitant to file this bug for months, but recently I was in Central America and ran into this bug constantly. Sorry I don't have more technical details.

Steps to reproduce:

  1. Be on a slow internet connection. I know that's vague, but let's say >500kbps for upload speed.
  2. Try to upload a file that is 2MB or larger using Special:UploadWizard or Special:Upload.

Expected results: File uploads successfully after about 2-3 minutes.

Actual results: File uploads for about 2 minutes and then fails with the message "Could not proceed due to network connectivity issues. Make sure you have a working internet connection and try again."

I have no idea why 2MB seems to be the magical threshold, but I was usually able to upload smaller files, but rarely anything 2MB or larger. I had no problems doing the same thing on other sites like Dropbox, although it might take forever.

Some logs of trying to upload 2 files that are 1.7 MB and 2MB:

Screen Shot 2019-03-10 at 9.46.51 PM.png (183×607 px, 46 KB)

If it finishes in 1.2 minutes or less, it works. If it takes longer, it fails.

When it finally fails, it throws the following console error:
https://commons.wikimedia.org/w/api.php net::ERR_SPDY_PING_FAILED

This is in Chrome 72.0.3626.121 on MacOS. Download speed ~1.2 Mbps and upload speed ~0.4 Mbps.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

And of course I can't reproduce the problem here in U.S. Even uploading huge files that take multiple minutes to upload work fine. I wonder if it's related to reliability of the internet connection.

@Aklapper - I don't know if this helps, but I tried running PingPlotter while I was doing the upload and monitored connectivity to text-lb.eqiad.wikimedia.org. For the first 5 minutes I'm just running the monitor, then I start trying to upload (which is where you can see the latency shoot up), then the upload gives up after a couple minutes and the chart goes back to normal:

Screen Shot 2019-03-20 at 12.15.50 AM.png (812×1 px, 169 KB)

This is on an AT&T DSL connection in Oakland with ~0.5 Mbps upload speed trying to upload a 2.1 MB file. Fails using either Special:UploadWizard or Special:Upload.

Aklapper changed the task status from Stalled to Open.Mar 20 2019, 9:13 AM

I understand the main issue here is my connectivity, but I'm wondering if there's some way we could work around the connectivity problems. When I'm on a shitty connection, which is pretty often, especially when I travel to other countries, I can pretty much forget about uploading anything to Commons, which is unfortunate. It looks like T205619 is probably the same issue.

kaldari renamed this task from Unable to upload files larger than ~2MB on slow connections via UploadWizard to Unable to upload files larger than ~2MB on slow connections.Mar 20 2019, 4:23 PM
kaldari updated the task description. (Show Details)
kaldari updated the task description. (Show Details)