Hello,
i'm facing the below error output on a wiki page whenever i try to
export a mediawiki page as pdf:

An error occured on the render server: traceback Traceback (most
recent call last): File "/usr/lib/python2.5/site-packages/
mwlib-0.12.16-py2.5-linux-x86_64.egg/mwlib/apps/render.py", line 168,
in __call__ env = self.get_environment() File "/usr/lib/python2.5/site-
packages/mwlib-0.12.16-py2.5-linux-x86_64.egg/mwlib/apps/render.py",
line 100, in get_environment self.zip_filename =
make_zip(output=self.options.keep_zip, options=self.options,
metabook=env.metabook, status=self.status) File "/usr/lib/python2.5/
site-packages/mwlib-0.12.16-py2.5-linux-x86_64.egg/mwlib/apps/
buildzip.py", line 52, in make_zip make_nuwiki(fsdir,
metabook=metabook, options=options, podclient=podclient,
status=status) File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-
py2.5-linux-x86_64.egg/mwlib/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 siteinfo ] sys.argv=['/usr/
bin/mw-render', '--logfile', '/tmp/collection/mwrender.log', '--error-
file', '/tmp/collection/cd/cd20f78aa38cdd0f/errors.rl', '--status-
file', '/tmp/collection/cd/cd20f78aa38cdd0f/status.rl', '--writer',
'rl', '--output', '/tmp/collection/cd/cd20f78aa38cdd0f/output.rl', '--
pid-file', '/tmp/collection/cd/cd20f78aa38cdd0f/pid.rl', '--metabook',
'/tmp/collection/cd/cd20f78aa38cdd0f/metabook.json', '--keep-zip', '/
tmp/collection/cd/cd20f78aa38cdd0f/collection.zip', '--config',
'https://wiki.localusage.com', '--template-blacklist', 'MediaWiki:PDF
Template Blacklist', '--template-exclusion-category', 'Exclude in
print', '--print-template-prefix', 'Print', '--print-template-
pattern', '$1/Print', '--script-extension', '.php', '--language',
'en']


and the below are from mwrender.log outputted from :

mw-serve -i 127.0.0.1  --cache-dir=/tmp/collection/ --logfile=/tmp/
collection/mwserve.log --mwrender-logfile=/tmp/collection/mwrender.log
--mwzip-logfile=/tmp/collection/mwzip.log --mwpost-logfile=/tmp/
collection/mwpost.log --mwzip-logfile=/tmp/collection/mwzip.log

it's worth to note that i added a user for mwserver and set it as
administrator, and added the relevant user/pass to LocalSettings.php


2011-12-06T04:01:34 mwlib.options.warn >> Both --print-template-
pattern and --print-template-prefix (deprecated) specified. Using --
print-template-pattern only.
font not found: ttf-indic-fonts-core/lohit_pa.ttf
font not found: ttf-indic-fonts-core/lohit_ta.ttf
1%  /usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/metabook.py:225: DeprecationWarning: deprecated call
get('mw_license_url')
  if l.get('mw_license_url'):
/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-x86_64.egg/
mwlib/metabook.py:240: DeprecationWarning: deprecated call
get('mw_rights_text')
  if l.get('mw_rights_text'):
/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-x86_64.egg/
mwlib/metabook.py:242: DeprecationWarning: deprecated call
get('mw_rights_page')
  if l.get('mw_rights_page'):
/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-x86_64.egg/
mwlib/metabook.py:244: DeprecationWarning: deprecated call
get('mw_rights_url')
  if l.get('mw_rights_url'):
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 361, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/net/mwapi.py", line 294, in got_result
    raise RuntimeError("%r: [fetching %r]" % (error.get("info", ""),
self._build_url(**kwargs)))
exceptions.RuntimeError: 'You need read permission to use this
module': [fetching 'https://wiki.localusage.com/api.php?
action=parse&redirects=1&oldid=48930&format=json']
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 361, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/net/mwapi.py", line 294, in got_result
    raise RuntimeError("%r: [fetching %r]" % (error.get("info", ""),
self._build_url(**kwargs)))
exceptions.RuntimeError: 'You need read permission to use this
module': [fetching 'https://wiki.localusage.com/api.php?
tllimit=500&format=json&action=query&prop=revisions|templates|
images&imlimit=500&revids=48930&rvprop=ids']
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: exceptions.RuntimeError: could not get siteinfo
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 361, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 455, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-
x86_64.egg/twisted/internet/defer.py", line 542, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/net/mwapi.py", line 294, in got_result
    raise RuntimeError("%r: [fetching %r]" % (error.get("info", ""),
self._build_url(**kwargs)))
exceptions.RuntimeError: 'You need read permission to use this
module': [fetching 'https://wiki.localusage.com/api.php?
action=query&meta=siteinfo&siprop=general|namespaces|
interwikimap&format=json']
creating nuwiki in u'/tmp/collection/cd/cd20f78aa38cdd0f/tmp-5uXvU/
nuwiki'
fatal: could not get siteinfo [[Failure instance: Traceback: <type
'exceptions.RuntimeError'>: 'You need read permission to use this
module': [fetching 'https://wiki.localusage.com/api.php?
action=query&meta=siteinfo&siprop=general|namespaces|
interwikimap&format=json']
/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-x86_64.egg/
twisted/internet/defer.py:455:_startRunCallbacks
/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-x86_64.egg/
twisted/internet/defer.py:542:_runCallbacks
/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-x86_64.egg/
twisted/internet/defer.py:361:callback
/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-x86_64.egg/
twisted/internet/defer.py:455:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.5/site-packages/Twisted-11.0.0-py2.5-linux-x86_64.egg/
twisted/internet/defer.py:542:_runCallbacks
/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-x86_64.egg/
mwlib/net/mwapi.py:294:got_result
]]
removing tmpdir u'/tmp/collection/cd/cd20f78aa38cdd0f/tmp-5uXvU'
1.00123485158% error Traceback (most recent call last):
  File "/usr/bin/mw-render", line 8, in <module>
    load_entry_point('mwlib==0.12.16', 'console_scripts', 'mw-render')
()
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/apps/render.py", line 213, in main
    return Main()()
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/apps/render.py", line 168, in __call__
    env = self.get_environment()
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/apps/render.py", line 100, in get_environment
    self.zip_filename = make_zip(output=self.options.keep_zip,
options=self.options, metabook=env.metabook, status=self.status)
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/apps/buildzip.py", line 52, in make_zip
    make_nuwiki(fsdir, metabook=metabook, options=options,
podclient=podclient, status=status)
  File "/usr/lib/python2.5/site-packages/mwlib-0.12.16-py2.5-linux-
x86_64.egg/mwlib/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 siteinfo
]

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