-
-
Save arlolra/c8df941797af43d9dca4 to your computer and use it in GitHub Desktop.
λ (master) node mw-ocg-service.js | |
info: Frontend server starting on all IP interfaces, port 17080 channel=frontend | |
info: Frontend server starting on all IP interfaces, port 17080 channel=frontend | |
info: Starting request 1410565041316-15722 for 127.0.0.1, HTTP 1.0 POST / channel=frontend.request, id=1410565041316-15722, clientip=127.0.0.1, version=1.0, method=POST, url=/ | |
info: Adding job with id 25170dcce633041b7d19ad7e87b51a4876694210 to redis for 1410565041316-15722 channel=frontend, id=1410565041316-15722, id=25170dcce633041b7d19ad7e87b51a4876694210 | |
info: Got new job "25170dcce633041b7d19ad7e87b51a4876694210", attempting to get status details and launching channel=backend, id=25170dcce633041b7d19ad7e87b51a4876694210 | |
info: Backend worker now picking up job 25170dcce633041b7d19ad7e87b51a4876694210 for writer rdf2latex channel=backend, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex | |
info: Forking bundler to create /var/folders/b4/g_kzcqyn1575jvpn46n01rhr0000gn/T/25170dcce633041b7d19ad7e87b51a4876694210.zip from /var/folders/b4/g_kzcqyn1575jvpn46n01rhr0000gn/T/25170dcce633041b7d19ad7e87b51a4876694210.json channel=backend.bundler, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex | |
info: Starting request 1410565041437-23194 for 127.0.0.1, HTTP 1.0 POST / channel=frontend.request, id=1410565041437-23194, clientip=127.0.0.1, version=1.0, method=POST, url=/ | |
info: [0%] Fetching wiki configuration channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [0%] Fetching wiki configuration: http://ve channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [5%] Fetching wiki configuration: channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [10%] Fetching wiki configuration: localhost siteinfo channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [20%] Fetching parsed articles channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [20%] Fetching parsed articles: collection undefined channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [28%] Fetching parsed articles: localhost:Two [Parsoid, revision 2] channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: Starting request 1410565041927-60876 for 127.0.0.1, HTTP 1.0 POST / channel=frontend.request, id=1410565041927-60876, clientip=127.0.0.1, version=1.0, method=POST, url=/ | |
info: [30%] Fetching parsed articles: localhost:Two [authors, revision 2] channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [33%] Fetching parsed articles: localhost:Two [complete] channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [40%] Fetching media channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [60%] Creating attribution page channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [60%] Creating attribution page: chapter contributors channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [67%] Creating attribution page: image contributors channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [73%] Creating attribution page: localhost:<custom wikitext> [Parsoid] channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [80%] Creating bundle channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [100%] Done channel=backend.bundler.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: Bundle completed successfully! channel=backend.bundler, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex | |
info: Forking renderer to produce /var/folders/b4/g_kzcqyn1575jvpn46n01rhr0000gn/T/ocg-output/25170dcce633041b7d19ad7e87b51a4876694210.pdf from /var/folders/b4/g_kzcqyn1575jvpn46n01rhr0000gn/T/25170dcce633041b7d19ad7e87b51a4876694210.zip channel=backend.bundler, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex | |
info: [0%] Creating work space channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [25%] Processing media files channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [50%] Processing collection channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [50%] Processing collection channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [58%] Processing: article channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [67%] Processing: attribution channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
info: [75%] Compiling PDF channel=backend.renderer.bin, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, details=undefined | |
events.js:72 | |
throw er; // Unhandled 'error' event | |
^ | |
Error: spawn ENOENT | |
at errnoException (child_process.js:1001:11) | |
at Process.ChildProcess._handle.onexit (child_process.js:792:34) | |
info: Starting request 1410565042530-96342 for 127.0.0.1, HTTP 1.0 POST / channel=frontend.request, id=1410565042530-96342, clientip=127.0.0.1, version=1.0, method=POST, url=/ | |
error: Rendering process died with non zero code: 8 channel=backend.bundler.error, id=25170dcce633041b7d19ad7e87b51a4876694210, writer=rdf2latex, metabook={ | |
"type": "collection", | |
"licenses": [ | |
{ | |
"type": "license", | |
"name": "License", | |
"mw_rights_icon": "", | |
"mw_rights_page": "", | |
"mw_rights_url": "", | |
"mw_rights_text": "" | |
} | |
], | |
"items": [ | |
{ | |
"type": "article", | |
"content_type": "text/x-wiki", | |
"title": "Two", | |
"revision": "2", | |
"timestamp": "1410564881" | |
} | |
], | |
"wikis": [ | |
{ | |
"type": "wikiconf", | |
"baseurl": "http://ve", | |
"script_extension": ".php", | |
"format": "nuwiki", | |
"parsoid": "http://localhost:8000", | |
"prefix": "localhost" | |
} | |
] | |
}, name=BundlerError, message=Rendering process died with non zero code: 8, stack=BundlerError: Rendering process died with non zero code: 8 | |
at ChildProcess.<anonymous> (/Users/arlolra/Work/Wikimedia/ocg/mw-ocg-service/lib/threads/backend.js:533:15) | |
at ChildProcess.emit (events.js:98:17) | |
at Process.ChildProcess._handle.onexit (child_process.js:810:12) | |
info: Starting request 1410565043092-07896 for 127.0.0.1, HTTP 1.0 POST / channel=frontend.request, id=1410565043092-07896, clientip=127.0.0.1, version=1.0, method=POST, url=/ | |
info: Starting request 1410565043228-46253 for 127.0.0.1, HTTP 1.0 POST / channel=frontend.request, id=1410565043228-46253, clientip=127.0.0.1, version=1.0, method=POST, url=/ |
I hit the same issue rendering the example bundle from the mw-ocg-bundler README.md (bin/mw-ocg-bundler -v -o bundle.zip --prefix enwiki "United States") on Ubuntu 14.04.
I ran mw-ocg-latexer standalone with -D but the stack trace looks the same:
[75%] Compiling PDF
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
My problem was resolve by installing the system dependencies given at https://github.com/wikimedia/mediawiki-extensions-Collection-OfflineContentGenerator-latex_renderer
I had been following the instructions at https://wikitech.wikimedia.org/wiki/OCG#Installing_a_development_instance
which did not mention these dependencies.
Hm. Could you try running mw-ocg-latexer standalone (with the instructions in mw-ocg-latexer/README.md)? The
-D
option should give a better stack trace for this. (Patches welcome to get a better stack trace exported from mw-ocg-latexer for this as well.)