Page MenuHomePhabricator

Some versions of an image not rendering at all at wikitech
Closed, ResolvedPublic

Description

The last 3 versions of this file aren't rendering - https://wikitech.wikimedia.org/wiki/File:Infrastructure_overview.png
I don't know if this is a singular problem, or indicates something wider?

Screenshot:

IL3MmE.png (430×1 px, 87 KB)

(CCing the people recommended to me in IRC. Not sure what other #tags to add.)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

https://wikitech.wikimedia.org/w/thumb.php?f=Infrastructure_overview.png&width=112 gives "An unknown error occurred."
I added some var_dumps on silver, tracked down the command it was trying to run, and ran it myself:

www-data@silver:/srv/mediawiki/php-1.28.0-wmf.19$ '/usr/local/bin/mediawiki-firejail-convert' '-quality' '95' '-background' 'white' '/srv/org/wikimedia/controller/wikis/images/4/4d/Infrastructure_overview.png' '-thumbnail' '112x120!' '-set' 'comment' 'File source: https://wikitech.wikimedia.org/wiki/File:Infrastructure_overview.png' '+set' 'Thumb::URI' '-depth' '8' '-rotate' '-0' '/tmp/transform_98bd8c460630.png'
Reading profile /etc/firejail/mediawiki-imagemagick.profile
Error: cannot open profile file /etc/firejail/disable-mgmt.inc

I think https://gerrit.wikimedia.org/r/#/c/293328/ would've caused that to happen - silver has mediawiki::multimedia (and therefore mediawiki::firejail) through openstack::openstack_manager, but not the mediawiki class itself

I plan to move mediawiki-firejail-convert to use the generic mediawiki-converters.profile instead of mediawiki-imagemagick.profile, that'll fix it on silver.

Change 314233 had a related patch set uploaded (by Muehlenhoff):
Migrate mediawiki-firejail-convert to mediawiki-converters.profile

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

Change 314233 merged by Muehlenhoff:
Migrate mediawiki-firejail-convert to mediawiki-converters.profile

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

MoritzMuehlenhoff claimed this task.

Fixed, wikitech renders images again.