Actually, I do have an error message when I run mw-render from the command line.
Client Side: --------------- mw-render -c http://10.3.3.118:8899 :en -w rl -o sun.pdf Sun font not found: ttf-indic-fonts-core/lohit_pa.ttf font not found: ttf-kannada-fonts/Kedage-n.ttf creating nuwiki in '/tmp/tmp18sQ6X/nuwiki' retrying: could not fetch 'http://10.3.3.118:8899/api.php?action=query&meta=siteinfo&siprop=general|na mespaces|interwikimap|namespacealiases|magicwords|rightsinfo&format=json' Unhandled error in Deferred: Traceback (most recent call last): Failure: exceptions.RuntimeError: could not get collection params fatal: could not get collection params [[Failure instance: Traceback (failure with no frames): <class 'twisted.web.error.Error'>: 400 Bad Request ]] Traceback (most recent call last): Failure: twisted.web.error.Error: 400 Bad Request removing tmpdir '/tmp/tmp18sQ6X' Traceback (most recent call last): File "/usr/local/bin/mw-render", line 9, in <module> load_entry_point('mwlib==0.12.14', 'console_scripts', 'mw-render')() File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux-i686.egg/m wlib/apps/render.py", line 214, in main return Main()() File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux-i686.egg/m wlib/apps/render.py", line 169, in __call__ env = self.get_environment() File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux-i686.egg/m wlib/apps/render.py", line 101, in get_environment self.zip_filename = make_zip(output=self.options.keep_zip, options=self.options, metabook=env.metabook, status=self.status) File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux-i686.egg/m wlib/apps/buildzip.py", line 58, in make_zip make_nuwiki(fsdir, metabook=metabook, options=options, podclient=podclient, status=status) File "/usr/local/lib/python2.6/dist-packages/mwlib-0.12.14-py2.6-linux-i686.egg/m wlib/apps/make_nuwiki.py", line 223, in make_nuwiki raise RuntimeError(str(val)) RuntimeError: [Failure instance: Traceback (failure with no frames): <type 'exceptions.RuntimeError'>: could not get collection params --------------- Server Side: --------------- mw-serve 2010-11-29T02:42:22 mw-serve.info >> serving http on 0.0.0.0:8899 2010-11-29T02:44:16 mwlib.serve.request_info >> remote_addr: 172.25.40.105, referer: None 2010-11-29T02:44:16 mwlib.serve.error >> no command given 2010-11-29T02:44:16 mwlib.serve.request_info >> remote_addr: 172.25.40.105, referer: None 2010-11-29T02:44:16 mwlib.serve.error >> no command given san-squintan-vmUbuntu1004.local - - [29/Nov/2010 02:44:16] "POST /api.php HTTP/1.0" 400 16 san-squintan-vmUbuntu1004.local - - [29/Nov/2010 02:44:16] "GET /api.php?action=query&meta=siteinfo&siprop=general|namespaces|interwikimap|n amespacealiases|magicwords|rightsinfo&format=json HTTP/1.0" 400 16 2010-11-29T02:44:16 mwlib.serve.request_info >> remote_addr: 172.25.40.105, referer: None 2010-11-29T02:44:16 mwlib.serve.error >> no command given Traceback (most recent call last): File "/usr/lib/python2.6/wsgiref/handlers.py", line 94, in run self.finish_response() File "/usr/lib/python2.6/wsgiref/handlers.py", line 135, in finish_response self.write(data) File "/usr/lib/python2.6/wsgiref/handlers.py", line 218, in write self.send_headers() File "/usr/lib/python2.6/wsgiref/handlers.py", line 274, in send_headers self.send_preamble() File "/usr/lib/python2.6/wsgiref/handlers.py", line 200, in send_preamble 'Date: %s\r\n' % format_date_time(time.time()) File "/usr/lib/python2.6/socket.py", line 300, in write self.flush() File "/usr/lib/python2.6/socket.py", line 286, in flush self._sock.sendall(buffer) error: [Errno 32] Broken pipe --------------- > -----Original Message----- > From: trueskew [mailto:[email protected]] > Sent: Monday, November 29, 2010 2:42 AM > To: '[email protected]' > Subject: RE: [mwlib] mw-serve works with one Mediawiki site > but not the other > > > > > -----Original Message----- > > From: [email protected] > [mailto:[email protected]] On Behalf > > Of Ralf Schmitt > > Sent: Monday, November 29, 2010 1:19 AM > > To: [email protected] > > Subject: Re: [mwlib] mw-serve works with one Mediawiki site but not > > the other > > > > trueskew <[email protected]> writes: > > > > > I updated it with the changes I made on the test machine, > > but when I > > > try downloading a PDF file, all I get is a blank page in > > the browser. > > > mw-serve.log shows no activity (versus a full session when > > I download > > > a PDF using the test machine). Everything is sync'd through a > > > subversion repository, so paths, extensions, and > > LocalSettings.php are > > > the same on both of my servers. > > > > > > This is obviously some kind of pilot error on my part. I > > even tried > > > it on a 3rd (virtual) machine, and I still get the blank > page. The > > > mw- serve machine isn't giving me any hints other than a > connection > > > doesn't seem to be happening. > > > > What's the exact error message? > > No error message on the client (MediaWiki/mw-render) side, > just a blank page in the browser. wgShowExceptionDetails is > true, but it doesn't help. On the server side, it's acting > as if nothing is talking to it. Is there a flag I can enable > on the client side? > > > > Are there any options for debugging on the MediaWiki client side? > > > > I always try to render a page with mw-render first: > > > > ,---- > > | mw-render -c http://en.wikipedia.org/w -w rl -o mainz.pdf Mainz > > `---- > > > > If that works, try with your local mediawiki installation. > > Today, I can: > > - mw-render sun.pdf on any of the machines I've got > - Print a pdf book using my test machine and the mw-serve server > > I'm not getting the syntax right when I try to run mw-render > with config'd to use my intranet server on any of the machines. > > > > > Cheers > > - Ralf > > > > -- > > 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. > > -- 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.
