Topic on Extension talk:PdfHandler

Thumbnail creation exits with code '134'

2
Octfx (talkcontribs)

Trying to create thumbnails results in error code 134. Output from the Debug-Log:

PdfHandler::doTransform: called wfMkdirParents(/tmp)

MediaWikiShellCommand::execute: /bin/bash /var/www/<path>/includes/shell/limit.sh (/usr/bin/gs -sDEVICE=jpeg -sOutputFile=- -dFirstPage=1 -dLastPage=1 -dSAFER -r150 -dBATCH -dNOPAUSE -q <pathToPDF> | /usr/bin/convert -depth 8 -quality 95 -resize 120 - /tmp/transform_9f856aed71d9.jpg) MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=0; MW_CGROUP=; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes

[exec] Probably exited with signal 6: /bin/bash /var/www/<path>/includes/shell/limit.sh (/usr/bin/gs -sDEVICE=jpeg -sOutputFile=- -dFirstPage=1 -dLastPage=1 -dSAFER -r150 -dBATCH -dNOPAUSE -q <pathToPDF> | /usr/bin/convert -depth 8 -quality 95 -resize 120 - /tmp/transform_9f856aed71d9.jpg) MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=0; MW_CGROUP=; MW_MEM_LIMIT=307200; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes

RETURN CODE: 134

ERROR: /bin/bash: line 1: 27183 Done                    /usr/bin/gs -sDEVICE=jpeg -sOutputFile=- -dFirstPage=1 -dLastPage=1 -dSAFER -r150 -dBATCH -dNOPAUSE -q <pathToPDF>
27184 Aborted                 | /usr/bin/convert -depth 8 -quality 95 -resize 120 - /tmp/transform_9f856aed71d9.jpg

[thumbnail] Removing bad 0-byte thumbnail "/tmp/transform_9f856aed71d9.jpg". unlink() succeeded

Extension was setup following Extension:PdfHandler#Debian.

MW Version: 1.30

PHP: 7.1.2

Ghostscript / Poppler-Utils / Imagick are installed and functioning

151.61.39.181 (talkcontribs)

I got a similar error, not having thumbnail creation, I got a different error (I'm reporting it separately) but I solved adding "-sstdout=/dev/null", at parameter used for the ghostscript command invocatio.

Reply to "Thumbnail creation exits with code '134'"