Last modified: 2013-04-27 18:21:56 UTC
Wanted to render http://en.wikipedia.org/wiki/User:Kelson/Books/Sovereign_states I have tried 3 times but it crashes each time with this error message: An error occurred on the render server: RuntimeError: RuntimeError: command failed with returncode 9: ['mw-zip', '-o', 'cache/37/37ac36ce175f47e3/collection.zip', '-m', 'cache/37/37ac36ce175f47e3/metabook.json', '--status', 'qserve://localhost:14311/37ac36ce175f47e3:makezip', '--config', 'http://en.wikipedia.org/w', '--template-blacklist', 'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', 'Exclude in print', '--print-template-prefix', 'Print', '--print-template-pattern', '$1/Print'] Last Output: 2013-04-06T12:38:24 mwlib.options.warn >> Both --print-template-pattern and --print-template-prefix (deprecated) specified. Using --print-template-pattern only. 1% creating nuwiki in u'cache/37/37ac36ce175f47e3/tmpPIxh63/nuwiki' /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:225: DeprecationWarning: deprecated call get('mw_license_url') if l.get('mw_license_url'): /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:240: DeprecationWarning: deprecated call get('mw_rights_text') if l.get('mw_rights_text'): /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:241: DeprecationWarning: deprecated __getitem__ ['mw_rights_text'] wikitext = l['mw_rights_text'] /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:242: DeprecationWarning: deprecated call get('mw_rights_page') if l.get('mw_rights_page'): /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:244: DeprecationWarning: deprecated call get('mw_rights_url') if l.get('mw_rights_url'): /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:245: DeprecationWarning: deprecated __getitem__ ['mw_rights_url'] wikitext += '\n\n' + l['mw_rights_url'] /home/pp/local/lib/python2.6/site-packages/mwlib/metabook.py:250: DeprecationWarning: deprecated call get('name') retval.append(license(title=l.get('name', u'License'), in function system, file /home/pp/local/lib/python2.6/site-packages/mwlib/nslave.py, line 64 in function qaddw, file /home/pp/local/lib/python2.6/site-packages/qs/slave.py, line 66
Going to http://en.wikipedia.org/w/index.php?title=Special:Book&bookcmd=render_collection&colltitle=User:Kelson/Books/Sovereign_states&writer=zim it hangs at 78.44% for a long time but in the end I get the same error. Also happens for PDF output. Does this also happen with other files?
Does this also happen with other files?
I don't have tried. But probably... or I'm really unlucky.
The problem with the collection is it's size (and the type of articles contained). Rendering the collection is aborted due to a time-out (10 or 15 minutes I believe). You get the time out b/c: * the collections contains a lot of large articles * the individual articles probably have a large edit history which slows down the fetching immensely (since the complete edit history needs to be fetched to display all contributing authors) The only solutions is to split the collection into parts.
OK, but then, is that possible to handle this exception properly? IMO, this is pretty bad to have such an application crashing in that way.