On 15 jan, 17:25, Lawrence iviani <[email protected]> wrote:
> I'm trying to run a mediawiki and a mw serve on my  virtual macchine
> but i  get always the message whe i try to export pdf.
> Below some information,
> thanks in advance for any help
>
> Lawrence
>
> An error occured on the render server: RuntimeError: RuntimeError:
> command failed with returncode 256: ['mw-zip', '-o', '/tmp/mwcache/d6/
> d66b1989055dfa28/collection.zip', '-m', '/tmp/mwcache/d6/
> d66b1989055dfa28/metabook.json', '--status', 'qserve://localhost:14311/
> d66b1989055dfa28:makezip', '--template-blacklist', 'MediaWiki:PDF
> Template Blacklist', '--template-exclusion-category', 'Exclude in
> print', '--print-template-prefix', 'Print', '--print-template-
> pattern', '$1/Print'] Last Output: 2012-01-15T22:16:49
> mwlib.options.warn >> Both --print-template-pattern and --print-
> template-prefix (deprecated) specified. Using --print-template-pattern
> only. 1% creating nuwiki in u'/tmp/mwcache/d6/d66b1989055dfa28/
> tmpQXCPLC/nuwiki' removing tmpdir u'/tmp/mwcache/d6/d66b1989055dfa28/
> tmpQXCPLC' memory used: res=10.2 virt=16.2 1% error Traceback (most
> recent call last): File "/usr/local/bin/mw-zip", line 9, in <module>
> load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-zip')() File
> "/usr/local/lib/python2.6/dist-packages/mwlib/apps/buildzip.py", line
> 151, in main make_zip(output, options, env.metabook,
> podclient=podclient, status=status) File "/usr/local/lib/python2.6/
> dist-packages/mwlib/apps/buildzip.py", line 50, in make_zip
> make_nuwiki(fsdir, metabook=metabook, options=options,
> podclient=podclient, status=status) File "/usr/local/lib/python2.6/
> dist-packages/mwlib/apps/make_nuwiki.py", line 152, in make_nuwiki
> assert x.wikiident in id2wiki, "no wikiconf for %r (%s)" %
> (x.wikiident, x) AssertionError: no wikiconf for None (<article
> {'_env': <mwlib.wiki.Environment object at 0xb727176c>,
> 'content_type': u'text/x-wiki', 'title': u'Main Page', 'timestamp':
> u'1326568114', 'type': 'article', 'revision': u'172'}>) in function
> system, file /usr/local/bin/nslave.py, line 63 in function qaddw,
> file /usr/local/lib/python2.6/dist-packages/qs/slave.py, line 66
>
> My configuration
> mediawiki 1.18,
> mwlib: 0.13.3 ()
> mwlib.rl: 0.12.10
> mwlib.ext: 0.12.4
>
> I start the rendering server with a script:
>        mw-qserve &
>         sleep 3
>         nslave.py --cachedir=$CACHE_PATH/ --numprocs=1 &
>         sleep 3
>         nserve.py  &
>
> LocalSettings.php
> require_once("$IP/extensions/Collection/Collection.php");
> $wgCollectionFormats = array('rl' => 'PDF');
> $wgCollectionContentTypeToFilename = array('application/pdf' =>
> 'collection.pdf');
> $wgCollectionPortletFormats=array('rl');
> $wgEnableWriteAPI = true;
> $wgCollectionMWServeURL = "http://mediawiki:8899";;
>
> During startup i get this message, but the server seems to start.
>
> Traceback (most recent call last):
>   File "/usr/local/bin/mw-serve", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2659,
> in <module>
>     parse_requirements(__requires__), Environment()
>   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546,
> in resolve
>     raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: mwlib==0.12.14
>
> This is the log from ther server
>
> === report Sun Jan 15 22:16:45 2012 ===
> have 0 jobs
> count: 0
> all channels idle
>
> = 2 clients
> <<2 127.0.0.1:37930>: idle>
> <<1 127.0.0.1:37929>: dispatching: ["qpull", {"channels": ["makezip",
> "render"]}]>
>
> new-collection 1        ''      'rl'
> 2012-01-15T22:16:48 mwlib.serve.info >> render d66b1989055dfa28 rl
> 192.168.1.65 - - [2012-01-15 22:16:48] "POST / HTTP/1.1" 200 181
> 0.042814
> 192.168.1.65 - - [2012-01-15 22:16:49] "POST / HTTP/1.1" 200 196
> 0.018994
> 256 1.60675191879 ['mw-zip', '-o', '/tmp/mwcache/d6/d66b1989055dfa28/
> collection.zip', '-m', '/tmp/mwcache/d6/d66b1989055dfa28/
> metabook.json', '--status', 'qserve://localhost:14311/
> d66b1989055dfa28:makezip', '--template-blacklist', 'MediaWiki:PDF
> Template Blacklist', '--template-exclusion-category', 'Exclude in
> print', '--print-template-prefix', 'Print', '--print-template-
> pattern', '$1/Print']
> 2012-01-15T22:16:49 mwlib.options.warn >> Both --print-template-
> pattern and --print-template-prefix (deprecated) specified. Using --
> print-template-pattern only.
> 1%  creating nuwiki in u'/tmp/mwcache/d6/d66b1989055dfa28/tmpQXCPLC/
> nuwiki'
> removing tmpdir u'/tmp/mwcache/d6/d66b1989055dfa28/tmpQXCPLC'
> memory used: res=10.2 virt=16.2
> 1% error Traceback (most recent call last):
>   File "/usr/local/bin/mw-zip", line 9, in <module>
>     load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-zip')()
>   File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> buildzip.py", line 151, in main
>     make_zip(output, options, env.metabook, podclient=podclient,
> status=status)
>   File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> buildzip.py", line 50, in make_zip
>     make_nuwiki(fsdir, metabook=metabook, options=options,
> podclient=podclient, status=status)
>   File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> make_nuwiki.py", line 152, in make_nuwiki
>     assert x.wikiident in id2wiki, "no wikiconf for %r (%s)" %
> (x.wikiident,  x)
> AssertionError: no wikiconf for None (<article {'_env':
> <mwlib.wiki.Environment object at 0xb727176c>, 'content_type': u'text/
> x-wiki', 'title': u'Main Page', 'timestamp': u'1326568114', 'type':
> 'article', 'revision': u'172'}>)
>
> ====================
> error: command failed with returncode 256: ['mw-zip', '-o', '/tmp/
> mwcache/d6/d66b1989055dfa28/collection.zip', '-m', '/tmp/mwcache/d6/
> d66b1989055dfa28/metabook.json', '--status', 'qserve://localhost:14311/
> d66b1989055dfa28:makezip', '--template-blacklist', 'MediaWiki:PDF
> Template Blacklist', '--template-exclusion-category', 'Exclude in
> print', '--print-template-prefix', 'Print', '--print-template-
> pattern', '$1/Print']
> Last Output:
>     2012-01-15T22:16:49 mwlib.options.warn >> Both --print-template-
> pattern and --print-template-prefix (deprecated) specified. Using --
> print-template-pattern only.
>     1%  creating nuwiki in u'/tmp/mwcache/d6/d66b1989055dfa28/
> tmpQXCPLC/nuwiki'
>     removing tmpdir u'/tmp/mwcache/d6/d66b1989055dfa28/tmpQXCPLC'
>     memory used: res=10.2 virt=16.2
>     1% error Traceback (most recent call last):
>       File "/usr/local/bin/mw-zip", line 9, in <module>
>         load_entry_point('mwlib==0.13.3', 'console_scripts', 'mw-zip')
> ()
>       File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> buildzip.py", line 151, in main
>         make_zip(output, options, env.metabook, podclient=podclient,
> status=status)
>       File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> buildzip.py", line 50, in make_zip
>         make_nuwiki(fsdir, metabook=metabook, options=options,
> podclient=podclient, status=status)
>       File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> make_nuwiki.py", line 152, in make_nuwiki
>         assert x.wikiident in id2wiki, "no wikiconf for %r (%s)" %
> (x.wikiident,  x)
>     AssertionError: no wikiconf for None (<article {'_env':
> <mwlib.wiki.Environment object at 0xb727176c>, 'content_type': u'text/
> x-wiki', 'title': u'Main Page', 'timestamp': u'1326568114', 'type':
> 'article', 'revision': u'172'}>)
>
> error finish: d66b1989055dfa28:makezip: 'RuntimeError: command failed
> with returncode 256: [\'mw-zip\', \'-o\', \'/tmp/mwcache/d6/
> d66b1989055dfa28/collection.zip\', \'-m\', \'/tmp/mwcache/d6/
> d66b1989055dfa28/metabook.json\', \'--status\', \'qserve://localhost:
> 14311/d66b1989055dfa28:makezip\', \'--template-blacklist\',
> \'MediaWiki:PDF Template Blacklist\', \'--template-exclusion-category
> \', \'Exclude in print\', \'--print-template-prefix\', \'Print\', \'--
> print-template-pattern\', \'$1/Print\']\nLast Output:\n
> 2012-01-15T22:16:49 mwlib.options.warn >> Both --print-template-
> pattern and --print-template-prefix (deprecated) specified. Using --
> print-template-pattern only.\n    1%  creating nuwiki in u\'/tmp/
> mwcache/d6/d66b1989055dfa28/tmpQXCPLC/nuwiki\'\n    removing tmpdir u
> \'/tmp/mwcache/d6/d66b1989055dfa28/tmpQXCPLC\'\n    memory used:
> res=10.2 virt=16.2\n    1% error Traceback (most recent call last):
> \n      File "/usr/local/bin/mw-zip", line 9, in <module>\n
> load_entry_point(\'mwlib==0.13.3\', \'console_scripts\', \'mw-zip\')()
> \n      File "/usr/local/lib/python2.6/dist-packages/mwlib/apps/
> buildzip.py", line 151, in main\n        make_zip(output, options,
> env.metabook, podclient=podclient, status=status)\n      File "/usr/
> local/lib/python2.6/dist-packages/mwlib/apps/buildzip.py", line 50, in
> make_zip\n        make_nuwiki(fsdir, metabook=metabook,
> options=options, podclient=podclient, status=status)\n      File "/usr/
> local/lib/python2.6/dist-packages/mwlib/apps/make_nuwiki.py", line
> 152, in make_nuwiki\n        assert x.wikiident in id2wiki, "no
> wikiconf for %r (%s)" % (x.wikiident,  x)\n    AssertionError: no
> wikiconf for None (<article {\'_env\': <mwlib.wiki.Environment object
> at 0xb727176c>, \'content_type\': u\'text/x-wiki\', \'title\': u\'Main
> Page\', \'timestamp\': u\'1326568114\', \'type\': \'article\',
> \'revision\': u\'172\'}>)\n     in function system, file /usr/local/
> bin/nslave.py, line 63'
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.6/dist-packages/qs/slave.py", line 150,
> in handle_one_job
>     result = workhandler(qs).dispatch(job)
>   File "/usr/local/lib/python2.6/dist-packages/qs/slave.py", line 50,
> in dispatch
>     return m(**tmp)
>   File "/usr/local/bin/nslave.py", line 143, in rpc_makezip
>     return doit(**params)
>   File "/usr/local/bin/nslave.py", line 141, in doit
>     system(args, timeout=8 * 60.0)
>   File "/usr/local/bin/nslave.py", line 63, in system
>     raise RuntimeError("command failed with returncode %s: %r\nLast
> Output:\n%s" % (retcode, pub_args,  "\n".join(lines)))
> RuntimeError: command failed with returncode 256: ['mw-zip', '-o', '/
> tmp/mwcache/d6/d66b1989055dfa28/collection.zip', '-m', ...
>
> plus de détails »

Hello,

I had this kind of problem . You probably use a wiki locked to
anonymous users. As a result, the site creator PDF (PediaPress) cannot
connect to your wiki to collect information and send the PDF. For make
this to work, you must set a specific login and password for
PediaPress, for example: $ wgCollectionMWServeCredentials =
"PediaPress: jojo#1" and also create the account on your wiki to the
site PediaPress can connect to it with the same data. The domain  name
is unnecessary.  Excuse my english

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to