Page MenuHomePhabricator

Thumb.php occasionally fails with error "ulimit4.sh: line 4: /usr/local/bin/rsvg: No such file or directory"
Closed, DeclinedPublic

Description

While trying to diagnose an issue with a specific SVG image rendering oddly at small sizes, I noticed that trying to create a previously nonexistent thumbnail of an SVG image via thumb.php occasionally fails with the following error:

Error creating thumbnail: /usr/local/apache/common/php-1.5/bin/ulimit4.sh: line 4: /usr/local/bin/rsvg: No such file or directory

The creation usually succeeds after a couple of reloads; I suspect the problem may happen only on some hosts. (Note: To recreate the problem using the URL provided, you need to purge the thumbnail cache for the image in question first.)


Version: unspecified
Severity: normal
URL: http://commons.wikimedia.org/w/thumb.php?w=30&f=Walnut.svg

Details

Reference
bz14535

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:09 PM
bzimport set Reference to bz14535.
bzimport added a subscriber: Unknown Object (MLST).

Thumbnail requests should go to the image scaling cluster only. Perhaps external requests for thumb.php could be disallowed, then all thumbnail requests would be via the 404 handler which knows where to send them.

jeluf wrote:

Works as designed. :-)

The thumb.php is not officially supported. Don't use it.