Serverproblem when generating PDF from MediaWiki site

30 views
Skip to first unread message

jeepee

unread,
Aug 2, 2010, 6:52:23 AM8/2/10
to mwlib
When I try to make a PDF with the 'collection' tool in MediaWiki. I
get the following output after the extension seems to have started the
process correctly:

An error occured on the render server: RuntimeError: RuntimeError:
command failed: ['mw-zip', '-o', u'cache/72/7204091ebdcc5853/
collection.zip', '-m', u'cache/72/7204091ebdcc5853/metabook.json', '--
status', u'qserve://localhost:14311/7204091ebdcc5853:makezip', '--
config', u'http://janpeeters.nl/wiki', '--template-blacklist',
u'MediaWiki:PDF Template Blacklist', '--template-exclusion-category',
u'Exclude in print', '--print-template-prefix', u'Print', '--print-
template-pattern', u'$1/Print'] in function system, file ./code/
sandbox/nslave.py, line 36 in function qaddw, file /home/tools/local/
lib/python2.6/site-packages/mwlib-0.12.13-py2.6-linux-x86_64.egg/mwlib/
async/slave.py, line 64

Does anybody have experience with this problem and know how to solve
it?

Thanks in advance, Jan Peeters

Rober

unread,
Aug 2, 2010, 11:07:05 AM8/2/10
to mwlib
To me the same thing happens.

I need help please.

Thx. Roberto Romero.

Rober

unread,
Aug 3, 2010, 1:55:17 PM8/3/10
to mwlib
> You have to provide login credentials for an account that is able to
> access these pages by setting

> $wgCollectionMWServeCredentials = "USERNAME:PASSWORD"; (admin wiki !!!)

> in your LocalSettings.php (see README.txt of the Collection extension).


and voliá it works.

jeepee

unread,
Aug 8, 2010, 6:14:38 AM8/8/10
to mwlib
Hi Rober,

thanks for your reply. I had credentials set correctly but what I did
wrong was that I first needed to activate the extension in
LocalConfig.php and after that set the variables for formats like PDF
and ODT. Now everything works.

This is the code how it needed to be at my place:

-------------------------
require_once("$IP/extensions/Collection/Collection.php");

$wgCollectionMWServeURL = 'http://tools.pediapress.com/mw-serve/';
$wgCollectionMWServeCredentials = 'user:password';
$wgCollectionFormats = array(
'rl' => 'PDF',
'odf' => 'ODT'
);
-------------------------

Best regards,
Jan
Reply all
Reply to author
Forward
0 new messages