Thread:Project:Support desk/Error in thumbnail creation using MW 1.23.3

Upgrading to MW 1.23.3 on a test domain with PHP 5.5.13.
 * ImageMagick is installed as it works on the production site.
 * So the tmp directory works just as well.

Existing thumbnails don't display altho they exist in /images.
 * Their path is "/wiki/1.5x"
 * I blame Linker.php:

New thumbnails cannot be created or saved to the destination folder.

Logs for a thumb.php call:

$wgUseImageResize = true; Error generating thumbnailError creating thumbnail: Error code: -1

[caches] main: MemcachedPhpBagOStuff, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreDB Unstubbing $wgParser on call of $wgParser::setHook from wfCreateArticle Parser: using preprocessor: Preprocessor_DOM Fully initialised Connected to database 0 at localhost Pulling file metadata from cache key mysite23:file:801898c1839d51644f02ec2eca7df95f MimeMagic::__construct: loading mime types from /var/www/vhosts/mysite.com/test.mysite.com/wiki/includes/mime.types MimeMagic::__construct: loading mime info from /var/www/vhosts/mysite.com/test.mysite.com/wiki/includes/mime.info FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/8/80/foo.jpg/200px-foo.jpg does not exist. IP: 217.247.171.103 User: got user 1 from cache User: loading options for user 1 from override cache. User: logged in from session File::transform: Doing stat for mwstore://local-backend/local-thumb/8/80/foo.jpg/200px-foo.jpg BitmapHandler::doTransform: creating 200x200 thumbnail at /tmp/transform_1f6e41f3ca8a-1.jpg using scaler im BitmapHandler::doTransform: called wfMkdirParents(/tmp) BitmapHandler::transformImageMagick: running ImageMagick: '/usr/bin/convert' '-quality' '80' '-background' 'white' '-define' 'jpeg:size=200x200' '/var/www/vhosts/mysite.com/test.mysite.com/wiki/images/8/80/foo.jpg' '-thumbnail' '200x200!' '-set' 'comment' 'File source: http://test.mysite.com/wiki/index.php?title=File:foo.jpg' '-depth' '8' '-sharpen' '0x0.5' '-rotate' '-0' '/tmp/transform_1f6e41f3ca8a-1.jpg' wfShellExec: /bin/bash '/var/www/vhosts/mysite.com/test.mysite.com/wiki/includes/limit.sh' 'OMP_NUM_THREADS='\1'\ '\/usr/bin/convert'\ '\-quality'\ '\80'\ '\-background'\ '\white'\ '\-define'\ '\jpeg:size=200x200'\ '\/var/www/vhosts/mysite.com/test.mysite.com/wiki/images/8/80/foo.jpg'\ '\-thumbnail'\ '\200x200!'\ '\-set'\ '\comment'\ '\File source: http://test.mysite.com/wiki/index.php?title=File:foo.jpg'\ '\-depth'\ '\8'\ '\-sharpen'\ '\0x0.5'\ '\-rotate'\ '\-0'\ '\/tmp/transform_1f6e41f3ca8a-1.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' [thumbnail] thumbnail failed on rs210432: error -1 "" from "'/usr/bin/convert' '-quality' '80' '-background' 'white' '-define' 'jpeg:size=200x200' '/var/www/vhosts/mysite.com/test.mysite.com/wiki/images/8/80/foo.jpg' '-thumbnail' '200x200!' '-set' 'comment' 'File source: http://test.mysite.com/wiki/index.php?title=File:foo.jpg' '-depth' '8' '-sharpen' '0x0.5' '-rotate' '-0' '/tmp/transform_1f6e41f3ca8a-1.jpg'" Unstubbing $wgLang on call of $wgLang::getCode from MessageCache::getMessageFromFallbackChain User: loading options for user 1 from override cache. MessageCache::load: Loading en... got from global cache [thumbnail] Removing bad 8918-byte thumbnail "/tmp/transform_1f6e41f3ca8a-1.jpg". unlink succeeded

$wgUseImageResize = false; Error creating thumbnail: Unable to save thumbnail to destination

[caches] main: MemcachedPhpBagOStuff, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreDB Unstubbing $wgParser on call of $wgParser::setHook from wfCreateArticle Parser: using preprocessor: Preprocessor_DOM Fully initialised Connected to database 0 at localhost Pulling file metadata from cache key mysite23:file:801898c1839d51644f02ec2eca7df95f MimeMagic::__construct: loading mime types from /var/www/vhosts/mysite.com/test.mysite.com/wiki/includes/mime.types MimeMagic::__construct: loading mime info from /var/www/vhosts/mysite.com/test.mysite.com/wiki/includes/mime.info FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/8/80/foo.jpg/200px-foo.jpg does not exist. IP: 217.247.171.103 User: got user 1 from cache User: loading options for user 1 from override cache. User: logged in from session File::transform: Doing stat for mwstore://local-backend/local-thumb/8/80/foo.jpg/200px-foo.jpg BitmapHandler::doTransform: creating 200x200 thumbnail at /tmp/transform_ca2461161473-1.jpg using scaler gd BitmapHandler::doTransform: called wfMkdirParents(/tmp) [FSFileBackend] mkdir: Permission denied [warning] failed to mkdir "/var/www/vhosts/mysite.com/test.mysite.com/wiki/images/thumb/8/80/foo.jpg" mode 0777 [Called from wfMkdirParents in /var/www/vhosts/mysite.com/test.mysite.com/wiki/includes/GlobalFunctions.php at line 2625] [FSFileBackend] copy(/var/www/vhosts/mysite.com/test.mysite.com/wiki/images/thumb/8/80/foo.jpg/200px-foo.jpg): failed to open stream: Permission denied Unstubbing $wgLang on call of $wgLang::getCode from MessageCache::getMessageFromFallbackChain User: loading options for user 1 from override cache. MessageCache::load: Loading en... got from global cache