Topic on Project:Support desk

File descriptions aren't fetched

2
Summary by Till Kraemer

Fetching file descriptions from a pool wiki can be a problem if you run php_fpm in a chroot jail. Make sure DNS works inside the chroot.

Till Kraemer (talkcontribs)

Hi,

I'm running multiple language wikis and one pool wiki. The problem is that no file descriptions are fetched in the language wikis although $wgFetchCommonsDescriptions is set to true.

LocalSettings.php of the language wikis:

$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.example.com/w/images';
$wgSharedUploadDirectory = '/path/to/pool/w/images/';
$wgHashedSharedUploadDirectory = true;

$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'poolwiki';  # DB-Name of PoolWiki
#$wgSharedUploadDBprefix = 'wiki_'; # Table name prefix for PoolWiki
$wgRepositoryBaseUrl = "http://pool.example.com/wiki/Image:";


ForeignAPIRepo used to work fine before, but since I switched from Apache to Nginx, no images show up anymore in the language wikis.

This is how my LocalSettings.php used to look like:

$wgForeignFileRepos[] = array(
   'class'                   => 'ForeignAPIRepo',
   'name'                    => 'pool',
   'apibase'                 => 'http://pool.example.com/w/api.php',
   'fetchDescription'        => true, // Optional
   'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)
   'apiThumbCacheExpiry'     => 0, // required for local thumb caching
);
*/

I also tried to set 'name' => 'poolwiki', (name of the pool database) but that doesn't work either.

My software: MediaWiki: 1.22.0
PHP: 5.3.27 (fpm-fcgi)
MySQL: 5.1.70-log

Any help is more than appreciated.

Thanks and cheers,

Till Kraemer (talkcontribs)