Johann Gründl <[email protected]> writes:

> Hi,
>
> I can't make PDF-Files (or other formats) with the Collection-extension on 
> my new MediaWiki installation under http://wiki.johanngruendl.at. I already 
> posted a few days ago and wanted to edit my postings below. That was not 
> possible and after I deleted them I could not answer to the topic anymore 
> (so please someone with the rights to do so delete it). The reason I wanted 
> to edit it is that I simplified my config to make it easier to find the 
> problem.
>
> This is are the (in my opinion) relevant parts of my config:
>
> # Server
> $wgScriptPath = "/w";
> $wgArticlePath = "/view/$1";
> $wgUsePathInfo = true;
> $wgScriptExtension  = ".php";
> $wgEnableAPI = true;
>
> # Userrights
> $wgGroupPermissions['*']['read'] = true;
>
> # Collection
> require_once("$IP/extensions/Collection/Collection.php");
>
> When I try to get a PDF for an article (or a book) I get this error (in 
> this case for http://wiki.johanngruendl.at/view/Republic.com, I am sorry 
> everything is in German): 
>
> Auf dem Render-Server ist ein Fehler aufgetreten: RuntimeError: 
> RuntimeError: command failed with returncode 256: ['mw-zip', '-o', 
> '/home/pp/cache/ec/ec91f6dde7c5f759/collection.zip', '-m', 
> '/home/pp/cache/ec/ec91f6dde7c5f759/metabook.json', '--status', 
> 'qserve://localhost:14311/ec91f6dde7c5f759:makezip', '--config', 
> 'http://wiki.johanngruendl.at/w', '--template-blacklist', 'MediaWiki:PDF 
> Template Blacklist', '--template-exclusion-category', u'Vom Druck 
> ausschlie\xdfen', '--print-template-prefix', 'Drucken', 
> '--print-template-pattern', '$1/Druck'] Last Output: 2012-10-18T09:46:05 
> mwlib.options.warn >> Both --print-template-pattern and 
> --print-template-prefix (deprecated) specified. Using 
> --print-template-pattern only. 1% creating nuwiki in 
> u'/home/pp/cache/ec/ec91f6dde7c5f759/tmpNKo2Mk/nuwiki' ERR: No JSON object 
> could be decoded: line 1 column 0 (char 0) ERR: No JSON object could be 
> decoded: line 1 column 0 (char 0) ERR: No JSON object could be decoded: 
> line 1 column 0 (char 0) ERR: No JSON object could be decoded: line 1 
> column 0 (char 0) Traceback (most recent call last): File 
> "/home/pp/local/lib/python2.7/site-packages/gevent/greenlet.py", line 327, 
> in run result = self._run(*self.args, **self.kwargs) File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
> line 120, in run self.fetch_pages_from_metabook(api) File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
> line 60, in fetch_pages_from_metabook fetch_images=not 
> self.options.noimages) File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 269, 
> in __init__ siteinfo = self.get_siteinfo_for(self.api) File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/net/fetch.py", line 418, 
> in get_siteinfo_for return m.get_siteinfo() File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/net/sapi.py", line 169, 
> in get_siteinfo raise RuntimeError("could not get siteinfo") RuntimeError: 
> could not get siteinfo <Greenlet at 0x1d06e10: <bound method 
> start_fetcher.run of <mwlib.apps.make_nuwiki.start_fetcher object at 
> 0x1d63050>>> failed with RuntimeError removing tmpdir 
> u'/home/pp/cache/ec/ec91f6dde7c5f759/tmpNKo2Mk' memory used: res=17.4 
> virt=131.9 1% error Traceback (most recent call last): File 
> "/home/pp/local/bin/mw-zip", line 9, in <module> 
> load_entry_point('mwlib==0.13.10', 'console_scripts', 'mw-zip')() File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
> 155, in main make_zip(output, options, env.metabook, podclient=podclient, 
> status=status) File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/buildzip.py", line 
> 50, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, 
> podclient=podclient, status=status) File 
> "/home/pp/local/lib/python2.7/site-packages/mwlib/apps/make_nuwiki.py", 
> line 193, in make_nuwiki pool.join(raise_error=True) File 
> "/home/pp/local/lib/python2.7/site-packages/gevent/pool.py", line 99, in 
> join raise greenlet.exception RuntimeError: could not get siteinfo in 
> function system, file ./bin/nslave.py, line 64 in function qaddw, file 
> /home/pp/local/lib/python2.7/site-packages/qs/slave.py, line 66
>
> I can access the siteinfo through api.php:
>
> http://wiki.johanngruendl.at/w/api.php?action=query&meta=siteinfo
> http://wiki.johanngruendl.at/w/api.php?action=query&meta=siteinfo&format=jsonfm
>
> I also tried to send e-mails for debugging purposes from within 
> Collection.body.php with the parameters for mwServeCommand and couldn't 
> find anything suspicious. base_url is set correctly. Any ideas what to look 
> for?
>
> Best regards and sorry for the double post,
>
> Johann

-- 
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