Last modified: 2014-07-07 14:10:03 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 T42468, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40468 - Rendering to PDF failure "RuntimeError: command failed with returncode 9"
Rendering to PDF failure "RuntimeError: command failed with returncode 9"
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Unprioritized normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 41829 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-24 07:28 UTC by Matt Walker
Modified: 2014-07-07 14:10 UTC (History)
6 users (show)

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


Attachments

Description Matt Walker 2012-09-24 07:28:34 UTC
Attempted to run a collection to PDF job with the following URL:
http://en.wikipedia.org/w/index.php?title=Special:Book&bookcmd=rendering&return_to=Book%3AGuide+to+the+Constellations&collection_id=a16ec1f0c6cc071e&writer=rl

It failed with the following:
An error occurred on the render server: RuntimeError: command failed with returncode 9: ['mw-render', '-w', 'rl', '-c', 'cache/a1/a16ec1f0c6cc071e/collection.zip', '-o', 'cache/a1/a16ec1f0c6cc071e/output.rl', '--status', 'qserve://localhost:14311/a16ec1f0c6cc071e:render-rl', '--template-blacklist', 'MediaWiki:PDF Template Blacklist', '--template-exclusion-category', 'Exclude in print', '--print-template-prefix', 'Print', '--print-template-pattern', '$1/Print', '--language', 'en'] Last Output: 64% rendering 84.4260240964% rendering 84.4607228916% rendering 84.4665060241% rendering 84.5012048193% rendering 84.5359036145% rendering 84.6168674699% rendering 84.6631325301% rendering 84.6631325301%... ...88.9831325301% rendering in function system, file /home/pp/local/bin/nslave.py, line 64

I attempted another collection render run immediately after which did successfully render.
http://en.wikipedia.org/w/index.php?title=Special:Book&bookcmd=rendering&return_to=Book%3ASpace+Shuttle&collection_id=4accde1caa0f0035&writer=rl
Comment 1 Volker Haas 2012-09-24 09:38:45 UTC
The problem is caused by the size (and content) of the book. The rendering
software uses ~1.5GBytes of memory and needs around 15 minutes to render the
collection (on my desktop computer which is probably faster than the render
servers). -> The rendering process is killed.

The only solution I can currently offer is to split the collection into at
least two parts.
Comment 2 rupesh 2012-09-24 11:16:42 UTC
That worked fine..
Thanks
Comment 3 Matt Walker 2012-09-24 19:33:17 UTC
Volker; I had reported this bug on behalf of rupesh -- as your workaround seemed to work for him should I close this as resolved? Or do you want to leave it open as a tracking bug for someone to claim when a better resource utilization method is thought about?
Comment 4 Volker Haas 2012-09-26 07:34:02 UTC
I am closing this as "works for me". The runtime of processes is intentionally limited and the above collection is simply too large to be rendered in that amount of time.
Comment 5 Andre Klapper 2014-07-07 14:10:03 UTC
*** Bug 41829 has been marked as a duplicate of this bug. ***

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


Navigation
Links