Last modified: 2013-10-17 16:22:19 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57837, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55837 - Error when generating a PDF
Error when generating a PDF
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
REL1_21-branch
All Linux
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.vinti4.cv/mediawiki
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-17 13:19 UTC by Antao
Modified: 2013-10-17 16:22 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antao 2013-10-17 13:19:54 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
Comment 1 Andre Klapper 2013-10-17 13:30:44 UTC
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.
Comment 2 Andre Klapper 2013-10-17 13:41:54 UTC
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?
Comment 3 Marcin Cieślak 2013-10-17 14:22:19 UTC
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
Comment 4 Antao 2013-10-17 16:13:23 UTC
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
Comment 5 Antao 2013-10-17 16:15:24 UTC
$wgScriptPath = "/mediawiki";
Comment 6 Andre Klapper 2013-10-17 16:16:44 UTC
But comment 3 was about $wgCollectionMWServeCredentials.
Comment 7 Antao 2013-10-17 16:19:10 UTC
Thanks,
I Solved the Problem,
Is the $wgCollectionMWServeCredentials
Comment 8 Andre Klapper 2013-10-17 16:22:19 UTC
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. :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links