Last modified: 2013-10-17 16:22:19 UTC
RuntimeError: RuntimeError: command failed with returncode 256: ['mw-zip', '-o', '/home/pp/cache/dd/dd9a150a37f99039/collection.zip', '-m', '/home/pp/cache/dd/dd9a150a37f99039/metabook.json', '--status', 'qserve://localhost:14311/dd9a150a37f99039:makezip', '--config', 'http://www.vinti4.cv/mediawiki'] Last Output: 1% creating nuwiki in u'/home/pp/cache/dd/dd9a150a37f99039/tmpWmBMjD/nuwiki' ERR: You need read permission to use this module: [fetching http://www.vinti4.cv/mediawiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|namespacealiases|magicwords|rightsinfo&format=json] ERR: You need read permission to use this module: [fetching http://www.vinti4.cv/mediawiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|namespacealiases|magicwords&format=json] ERR: You need read permission to use this module: [fetching http://www.vinti4.cv/mediawiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|namespacealiases&format=json] ERR: You need read permission to use this module: [fetching http://www.vinti4.cv/mediawiki/api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap&format=json] Traceback (most recent call last): File "/home/pp/buildout-mwlib/eggs/gevent-1.0rc2-py2.7-linux-x86_64.egg/gevent/greenlet.py", line 328, in run result = self._run(*self.args, **self.kwargs) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/apps/make_nuwiki.py", line 116, in run self.fetch_pages_from_metabook(api) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/apps/make_nuwiki.py", line 56, in fetch_pages_from_metabook fetch_images=not self.options.noimages) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/net/fetch.py", line 275, in __init__ siteinfo = self.get_siteinfo_for(self.api) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/net/fetch.py", line 446, in get_siteinfo_for return m.get_siteinfo() File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/net/sapi.py", line 172, in get_siteinfo raise RuntimeError("could not get siteinfo") RuntimeError: could not get siteinfo <Greenlet at 0x1bd7a50: <bound method start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 0x1bf7150>>> failed with RuntimeError removing tmpdir u'/home/pp/cache/dd/dd9a150a37f99039/tmpWmBMjD' memory used: res=17.6 virt=144.2 1% error Traceback (most recent call last): File "/home/pp/buildout-mwlib/bin/mw-zip", line 37, in <module> sys.exit(mwlib.apps.buildzip.main()) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/apps/buildzip.py", line 155, in main make_zip(output, options, env.metabook, podclient=podclient, status=status) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/apps/buildzip.py", line 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/apps/make_nuwiki.py", line 189, in make_nuwiki pool.join(raise_error=True) File "/home/pp/buildout-mwlib/eggs/gevent-1.0rc2-py2.7-linux-x86_64.egg/gevent/pool.py", line 98, in join raise greenlet.exception RuntimeError: could not get siteinfo in function system, file /home/pp/buildout-mwlib/eggs/mwlib-0.15.10-py2.7-linux-x86_64.egg/mwlib/nslave.py, line 64 in function qaddw, file /home/pp/buildout-mwlib/eggs/qserve-0.2.8-py2.7.egg/qs/slave.py, line 66
Hi Antao, unfortunately this report is not very useful because it does not describe the problem well. If you have time and can still reproduce the problem, please read https://www.mediawiki.org/wiki/How_to_report_a_bug and add a more useful description to this report.
This looks a lot like https://www.mediawiki.org/wiki/Extension_talk:Collection#Bug:Server_Problem_Generating_PDF and not an error in the code, but a support request. What is $wgScriptPath set to?
You might need to set $wgCollectionMWServeCredentials because the rendering server is connecting back to your wiki and it needs API access. http://mwlib.readthedocs.org/en/latest/collection.html#password-protected-wikis
Hi, I put $wgCollectionMWServeURL="http://tools.pediapress.com/mw-serve/"; on my "LocalSettings.php But when i trie to generate the PDF i received the error
$wgScriptPath = "/mediawiki";
But comment 3 was about $wgCollectionMWServeCredentials.
Thanks, I Solved the Problem, Is the $wgCollectionMWServeCredentials
No issue in the code (hence nothing FIXED) but a support request. Marking as INVALID. For future reference, https://www.mediawiki.org/wiki/Project:Support_desk might be a better place. :)