Page MenuHomePhabricator

VipsScaler broken for MediaWiki production (/usr/bin/vips: No such file)
Closed, ResolvedPublicPRODUCTION ERROR

Description

Follows-up T199937.

Two fatal errors in the last 30 days, seen in Logstash.

With the deployment of Thumbor, MediaWiki in-process scaling is much rarer, but it is still used for scaling temporary files (UploadStash) before publishing to Swift. Most of that is handled by ImageMagick and librsvg.

Scaling of TIFF and PNG uploads, though, happens via VipsScaler.

type:mediawiki
channel:exec

Possibly missing executable file: /bin/bash '/srv/mediawiki/php-1.32.0-wmf.12/includes/shell/limit.sh' 'IM_CONCURRENCY='\''1'\'' '\''/usr/bin/vips'\'' '\''shrink'\'' '\''/tmp/localcopy_0f861461f8e7.png'\'' '\''/tmp/transform_d6abfd031e8c.png'\'' '\''44'\'' '\''44'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=50; MW_CGROUP='\''/sys/fs/cgroup/memory/mediawiki/job'\''; MW_MEM_LIMIT=1048576; MW_FILE_SIZE_LIMIT=409600; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'

Reproducible via https://commons.wikimedia.org/wiki/Special:VipsTest?thumb=File%3Aexample.jpg&width=100&sharpen=0.8

Error creating thumbnail: /bin/bash: /usr/bin/vips: No such file or directory Error code: 127

Event Timeline

Change 446640 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/puppet@production] Install libvips-tools on mw app servers

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

Change 446640 merged by Muehlenhoff:
[operations/puppet@production] Install libvips-tools on mw app servers

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

MoritzMuehlenhoff claimed this task.

vips is now deployed on all app servers.

Change 446735 had a related patch set uploaded (by Rush; owner: cpettet):
[operations/puppet@production] wikitech: remove libvips-tools as it is now on all app servers

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

Krinkle updated the task description. (Show Details)

Change 446735 merged by Andrew Bogott:
[operations/puppet@production] wikitech: remove libvips-tools as it is now on all app servers

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

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:08 PM