Looking at the last 100 HTTP 500s on thumbor1001, I see that this video fails to render and appears to be fine on Mediawiki:
Maybe it has something to do with the double file extension?
Looking at the last 100 HTTP 500s on thumbor1001, I see that this video fails to render and appears to be fine on Mediawiki:
Maybe it has something to do with the double file extension?
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Upgrade to 0.1.28 | operations/debs/python-thumbor-wikimedia | master | +74 -28 |
rTHMBREXT Thumbor Plugins | |||
rTHMBREXTfea50e8ffb3d Make missing video originals 404 properly |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • Gilles | T121388 Service-based thumbnailing re-architecture in production with Thumbor | |||
Resolved | • Gilles | T139606 add thumbor to production infrastructure | |||
Resolved | • Gilles | T148363 Missing original for video 500s instead of 404ing |
Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: http://ms-fe.svc.eqiad.wmnet/v1/AUTH_mw/wikipedia-commons-local-public.1c/1/1c/Accidents_will_happen_William-H.-Watson-Universal-Star-Featurette-1922-EYE_FLM1205-OB_687097-720x404.ogv.webm: Server returned 404 Not Found Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: 2016-10-17 07:20:53,371 8830 thumbor:ERROR ERROR: Traceback (most recent call last): Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: File "/usr/lib/python2.7/dist-packages/thumbor/handlers/__init__.py", line 126, in get_image Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: elif result.engine_error == EngineResult.COULD_NOT_LOAD_IMAGE: Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: AttributeError: 'FetchResult' object has no attribute 'engine_error' Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: 2016-10-17 07:20:53,371 8830 thumbor:ERROR [BaseHandler] get_image failed for url `http%3A//ms-fe.svc.eqiad.wmnet/v1/AUTH_mw/wikipedia-commons-local-public.1c/1/1c/Accidents_will_happen_William-H.-Watson-Universal-Star-Featurette-1922-EYE_FLM1205-OB_687097-720x404.ogv.webm`. error: `'FetchResult' object has no attribute 'engine_error'` Oct 17 07:20:53 thumbor1001 thumbor@8830[127650]: 2016-10-17 07:20:53,372 8830 tornado.access:ERROR 500 GET /wikipedia/commons/thumb/1/1c/Accidents_will_happen_William-H.-Watson-Universal-Star-Featurette-1922-EYE_FLM1205-OB_687097-720x404.ogv.webm/200px--Accidents_will_happen_William-H.-Watson-Universal-Star-Featurette-1922-EYE_FLM1205-OB_687097-720x404.ogv.webm.jpg (127.0.0.1) 289.57ms
OK, so this makes sense, the file moved. It used to be https://commons.wikimedia.org/wiki/File:Accidents_will_happen_William-H.-Watson-Universal-Star-Featurette-1922.ogv.webm and it's now https://commons.wikimedia.org/wiki/File:Accidents_will_happen_William-H.-Watson-Universal-Star-Featurette-1922.webm
This thumbnail request asks for the file in the old location. And Swift rightfully doesn't find it.
It seems like Mediawiki is able to still correct for the redirect on thumbnail requests, even when asking for new sizes. This is without a doubt because Mediawiki can look at the file history and determine that it's a redirect and ask Swift for the original in its new location. This isn't something Thumbor will be able to do, as Thumbor shouldn't be aware of the file history.
In Thumbor's context, though, this should be a 404 and not a 500.
This might be the issue I already have a PR for: https://github.com/thumbor/thumbor/pull/807