File::transform: Doing stat for mwstore://local-backend/local-thumb/my_filename.pdf/page1-170px-my_filename.pdf.jpg
[FileOperation] FileBackendStore::ingestFreshFileStats: File mwstore://local-backend/local-thumb/my_filename.pdf/page1-170px-my_filename.pdf.jpg does not exist
PdfHandler::doTransform: called wfMkdirParents(/path/to/my/directory/media/temp)
PdfHandler::doTransform: ('/usr/bin/gs' '-sDEVICE=jpeg' '-sOutputFile=-' '-sstdout=%stderr' '-dFirstPage=1' '-dLastPage=1' '-dSAFER' '-r150' '-dBATCH' '-dNOPAUSE' '-q' '/path/to/my/directory/media/my_filename.pdf' | '/usr/bin/convert' '-depth' '8' '-quality' '95' '-resize' '170' '-' '/path/to/my/directory/media/temp/transform_30bc4921f2ba.jpg')
[exec] MediaWiki\Shell\Command::execute: /bin/bash '/path/to/my/directory/includes/shell/limit.sh' '('\''/usr/bin/gs'\'' '\''-sDEVICE=jpeg'\'' '\''-sOutputFile=-'\'' '\''-sstdout=%stderr'\'' '\''-dFirstPage=1'\'' '\''-dLastPage=1'\'' '\''-dSAFER'\'' '\''-r150'\'' '\''-dBATCH'\'' '\''-dNOPAUSE'\'' '\''-q'\'' '\''/path/to/my/directory/media/my_filename.pdf'\'' | '\''/usr/bin/convert'\'' '\''-depth'\'' '\''8'\'' '\''-quality'\'' '\''95'\'' '\''-resize'\'' '\''170'\'' '\''-'\'' '\''/path/to/my/directory/media/temp/transform_30bc4921f2ba.jpg'\'')' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
[exec] Error running /bin/bash '/path/to/my/directory/includes/shell/limit.sh' '('\''/usr/bin/gs'\'' '\''-sDEVICE=jpeg'\'' '\''-sOutputFile=-'\'' '\''-sstdout=%stderr'\'' '\''-dFirstPage=1'\'' '\''-dLastPage=1'\'' '\''-dSAFER'\'' '\''-r150'\'' '\''-dBATCH'\'' '\''-dNOPAUSE'\'' '\''-q'\'' '\''/path/to/my/directory/media/my_filename.pdf'\'' | '\''/usr/bin/convert'\'' '\''-depth'\'' '\''8'\'' '\''-quality'\'' '\''95'\'' '\''-resize'\'' '\''170'\'' '\''-'\'' '\''/path/to/my/directory/media/temp/transform_30bc4921f2ba.jpg'\'')' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes': sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
#0 /path/to/my/directory/includes/GlobalFunctions.php(2152): MediaWiki\Shell\Command->execute()
#1 /path/to/my/directory/includes/GlobalFunctions.php(2182): wfShellExec(string, string, array, array, array)
#2 /path/to/my/directory/extensions/PdfHandler/includes/PdfHandler.php(224): wfShellExecWithStderr(string, string)
#3 /path/to/my/directory/includes/filerepo/file/File.php(1165): PdfHandler->doTransform(LocalFile, string, string, array)
#4 /path/to/my/directory/includes/filerepo/file/File.php(1128): File->generateAndSaveThumb(TempFSFile, array, integer)
#5 /path/to/my/directory/includes/page/ImagePage.php(681): File->transform(array)
#6 /path/to/my/directory/includes/page/ImagePage.php(383): ImagePage->makeSizeLink(array, integer, integer)
#7 /path/to/my/directory/includes/page/ImagePage.php(135): ImagePage->openShowImage()
#8 /path/to/my/directory/includes/actions/ViewAction.php(63): ImagePage->view()
#9 /path/to/my/directory/includes/MediaWiki.php(511): ViewAction->show()
#10 /path/to/my/directory/includes/MediaWiki.php(302): MediaWiki->performAction(ImagePage, Title)
#11 /path/to/my/directory/includes/MediaWiki.php(900): MediaWiki->performRequest()
#12 /path/to/my/directory/includes/MediaWiki.php(527): MediaWiki->main()
#13 /path/to/my/directory/index.php(44): MediaWiki->run()
#14 {main}
[thumbnail] Removing bad 17002-byte thumbnail "/path/to/my/directory/media/temp/transform_30bc4921f2ba.jpg". unlink() succeeded
[thumbnail] thumbnail failed on myservername: error -1 "/bin/bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)" from "('/usr/bin/gs' '-sDEVICE=jpeg' '-sOutputFile=-' '-sstdout=%stderr' '-dFirstPage=1' '-dLastPage=1' '-dSAFER' '-r150' '-dBATCH' '-dNOPAUSE' '-q' '/path/to/my/directory/media/my_filename.pdf' | '/usr/bin/convert' '-depth' '8' '-quality' '95' '-resize' '170' '-' '/path/to/my/directory/media/temp/transform_30bc4921f2ba.jpg')"
[DBQuery] Wikimedia\Rdbms\DatabaseMysqlBase::serverIsReadOnly [0.001s] my.database.host.com: SELECT @@GLOBAL.read_only AS Value
[DBQuery] LCStoreDB::get [0s] my.database.host.com: SELECT lc_value FROM `wm_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:thumbnail_error' LIMIT 1