Page MenuHomePhabricator

500 Internal error when accessing the thumbnail of a 50MB TIFF file on Commons
Closed, DuplicatePublicPRODUCTION ERROR

Description

https://commons.wikimedia.org/wiki/File:The_Rames%C3%AAum._The_remains_of_the_great_hypostyle_of_the_Temple_of_Rameses_II._The_figures_of_Christian_slaves_have_been_painted_on_some_of_the_columns_(NYPL_b10607452-80839).tiff is the page where this thumbnail is supposed to be displayed:
4,606 × 3,736 pixels, file size: 49.24 MB, MIME type: image/tiff

If I go to https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/The_Rames%C3%AAum._The_remains_of_the_great_hypostyle_of_the_Temple_of_Rameses_II._The_figures_of_Christian_slaves_have_been_painted_on_some_of_the_columns_%28NYPL_b10607452-80839%29.tiff/lossy-page1-1263px-thumbnail.tiff.jpg I get the following error.

Request from 103.125.234.199 via cp5006 frontend, Varnish XID 1065774462
Upstream caches: cp5006 int
Error: 500, Internal Server Error at Thu, 02 Jan 2020 02:47:17 GMT

Note that the same thing is happening if I try to open thumbnails of other sizes. I was able to open the original file in my browser.

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.
StatusSubtypeAssignedTask
OpenNone
OpenNone
DuplicatePRODUCTION ERRORNone

Event Timeline

Masumrezarock100 renamed this task from 500 Internal error when accessing a image's thumbnail on Commons to 500 Internal error when accessing an image's thumbnail on Commons.Jan 2 2020, 2:52 AM
Masumrezarock100 updated the task description. (Show Details)
Request from [REDACTED] via cp5005 frontend, Varnish XID 910171956
Upstream caches: cp5005 int
Error: 429, Too Many Requests at Thu, 02 Jan 2020 05:34:37 GMT

It was returning 500 Internal Server error now, I am getting this error.

I made ^ that request using my real IP so I redacted it.
Masumrezarock100 changed the subtype of this task from "Task" to "Production Error".Jan 2 2020, 5:39 AM

429 is normal, MediaWiki rate-limits thumbnail errors (which are usually expensive).

Aklapper renamed this task from 500 Internal error when accessing an image's thumbnail on Commons to 500 Internal error when accessing the thumbnail of a 50MB TIFF file on Commons.Jan 2 2020, 1:43 PM

It's unlikely to be the same problem.

PDFs and TIFFs are different file formats, so the thumbnailer uses different engines to handle them (Ghostscript for PDFs, vips or imagemagick for TIFFs). The only overlap between them is Thumbor itself and the filter used to implement multipage support, which are less likely to be the problem here. The 500 error is just an indication that something went wrong with the thumbnail generation somewhere, and the 429 error is a side effect of that.

This may be related?

https://phabricator.wikimedia.org/T231771

After erasing the profile info from the TIFF using ImageMagick "convert -quiet in.tif -strip out.tif" the upload worked out fine and thumbnails were produced.