Page MenuHomePhabricator

Inconsistently unable to download https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz (returns zero-byte response)
Closed, DuplicatePublic

Description

I am occasionally unable to download https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz (current MediaWiki release linked from https://www.mediawiki.org/wiki/Download). Sometimes it works fine, sometimes it returns a zero-byte response. This was first reported on #mediawiki by KDDLB.

curl -I https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.2.tar.gz

Example response headers (bad)

HTTP/1.1 200 OK
Date: Wed, 11 May 2016 19:40:30 GMT
Content-Type: application/x-gzip
Content-Length: 0
Connection: keep-alive
Server: Apache
ETag: "18026c7-5275e33fa3d00"
Last-Modified: Mon, 21 Dec 2015 01:13:56 GMT
Backend-Timing: D=304 t=1462988431650045
X-Varnish: 4106268 42887, 19455418, 4857682
Age: 152
Via: 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4
Age: 152
Accept-Ranges: bytes
Age: 152
X-Cache: cp1045 hit(4), cp3007 miss(0), cp3008 frontend miss(0)
Strict-Transport-Security: max-age=31536000
Set-Cookie: WMF-Last-Access=11-May-2016;Path=/;HttpOnly;secure;Expires=Sun, 12 Jun 2016 12:00:00 GMT
X-Analytics: https=1;nocookies=1
X-Client-IP: 91.218.200.230
Accept-Ranges: bytes

Example response headers (good)

HTTP/1.1 200 OK
Date: Wed, 11 May 2016 19:41:08 GMT
Content-Type: application/x-gzip
Content-Length: 25175751
Connection: keep-alive
Server: Apache
ETag: "18026c7-5275e33fa3d00"
Last-Modified: Mon, 21 Dec 2015 01:13:56 GMT
Backend-Timing: D=304 t=1462988431650045
X-Varnish: 368674 42887, 19377459 18598167, 16596255
Via: 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4
Age: 190
Accept-Ranges: bytes
Age: 190
X-Cache: cp1045 hit(1), cp3010 hit(1), cp3008 frontend pass(0)
Strict-Transport-Security: max-age=31536000
Set-Cookie: WMF-Last-Access=11-May-2016;Path=/;HttpOnly;secure;Expires=Sun, 12 Jun 2016 12:00:00 GMT
X-Analytics: https=1;nocookies=1
X-Client-IP: 91.218.200.230
Accept-Ranges: bytes

All of the bad responses I've seen so far have X-Cache: cp1045 hit(4), cp3007 miss(0), cp3008 frontend miss(0).

Word diff wdiff bad good|colordiff:

Capture d’écran 2016-05-11 à 21.59.02.png (342×788 px, 79 KB)

Unified diff:

--- bad	2016-05-11 21:57:43.000000000 +0200
+++ good	2016-05-11 21:57:51.000000000 +0200
@@ -1,21 +1,20 @@
 HTTP/1.1 200 OK
-Date: Wed, 11 May 2016 19:40:30 GMT
+Date: Wed, 11 May 2016 19:41:08 GMT
 Content-Type: application/x-gzip
-Content-Length: 0
+Content-Length: 25175751
 Connection: keep-alive
 Server: Apache
 ETag: "18026c7-5275e33fa3d00"
 Last-Modified: Mon, 21 Dec 2015 01:13:56 GMT
 Backend-Timing: D=304 t=1462988431650045
-X-Varnish: 4106268 42887, 19455418, 4857682
-Age: 152
+X-Varnish: 368674 42887, 19377459 18598167, 16596255
 Via: 1.1 varnish-v4, 1.1 varnish-v4, 1.1 varnish-v4
-Age: 152
+Age: 190
 Accept-Ranges: bytes
-Age: 152
-X-Cache: cp1045 hit(4), cp3007 miss(0), cp3008 frontend miss(0)
+Age: 190
+X-Cache: cp1045 hit(1), cp3010 hit(1), cp3008 frontend pass(0)
 Strict-Transport-Security: max-age=31536000
 Set-Cookie: WMF-Last-Access=11-May-2016;Path=/;HttpOnly;secure;Expires=Sun, 12 Jun 2016 12:00:00 GMT
 X-Analytics: https=1;nocookies=1
 X-Client-IP: 91.218.200.230
 Accept-Ranges: bytes

Event Timeline

hashar added a project: Traffic.
hashar subscribed.

Traffic people would surely know.

Change 288350 had a related patch set uploaded (by Ema):
Add debian/patches/0005-handle-eof-http1.1.patch

https://gerrit.wikimedia.org/r/288350

Change 288350 merged by Ema:
Add debian/patches/0005-handle-eof-http1.1.patch

https://gerrit.wikimedia.org/r/288350

Change 288387 had a related patch set uploaded (by Ema):
Add debian/patches/0006-IMS-duplicate-headers-proper-handling.patch

https://gerrit.wikimedia.org/r/288387

Change 288387 merged by Ema:
Add debian/patches/0006-IMS-duplicate-headers-proper-handling.patch

https://gerrit.wikimedia.org/r/288387

Change 288817 had a related patch set uploaded (by Ema):
Revert 'Allow grace-hits on hit-for-pass objects'

https://gerrit.wikimedia.org/r/288817

Change 288817 merged by Ema:
Revert 'Allow grace-hits on hit-for-pass objects'

https://gerrit.wikimedia.org/r/288817