I figured on the mw-render it was because I'm trying to login to
en.wikipedia.com using a mywikl.com user.

I've created a local user called mwrender with a password of
"password," for now. I've given the user full administrator,
bureaucrat and bot rights. I've edited the LocalSettings.php to
reflect the new credentials. I've tried using the WikiSysop user as
well. I still get the error could not get siteinfo (from mediawiki
pasted below).

I've also added created MediaWiki:PDF Template Blacklist page with the
text "none" in it.

$wgCollectionMWServerCredentials = "mwrender:password:local";

An error occured on the render server: traceback Traceback (most
recent call last): File "/usr/local/lib/python2.6/dist-packages/
mwlib-0.12.12-py2.6-linux-i686.egg/mwlib/apps/render.py", line 169, in
__call__ env = self.get_environment() File "/usr/local/lib/python2.6/
dist-packages/mwlib-0.12.12-py2.6-linux-i686.egg/mwlib/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.12-py2.6-linux-i686.egg/mwlib/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.12-py2.6-linux-i686.egg/mwlib/apps/make_nuwiki.py", line
171, 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/
local/bin/mw-render', '--logfile', '/data/mwcache/logs/mwrender.log',
'--error-file', '/data/mwcache/mwlibcache/4d/4d3392d17d0db262/
errors.rl', '--status-file', '/data/mwcache/mwlibcache/4d/
4d3392d17d0db262/status.rl', '--writer', 'rl', '--output', '/data/
mwcache/mwlibcache/4d/4d3392d17d0db262/output.rl', '--pid-file', '/
data/mwcache/mwlibcache/4d/4d3392d17d0db262/pid.rl', '--metabook', '/
data/mwcache/mwlibcache/4d/4d3392d17d0db262/metabook.json', '--keep-
zip', '/data/mwcache/mwlibcache/4d/4d3392d17d0db262/collection.zip',
'--config', 'http://mywiki.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']


On Jan 11, 10:17 am, Ralf Schmitt <[email protected]> wrote:
> evil1dwk <[email protected]> writes:
> > I noticed that myself. Here's the permissions on api.php. Read
> > permission looks fine.
>
> > -rw-r--r-- 1 apache apache 3321 May  5  2009 api.php
>
> not filesystem permissions. readhttp://www.mediawiki.org/wiki/Permissions
>
>
>
> > When running mw-render from a shell I get a different error. I know
> > the username and password are fine, they're my username and password.
> > I've tried several others as well. It appears to fail when grabbing
> > the license php 
> > fromhttp://en.wikipedia.org/w/index.php?title=Help:Books/License&action=r....
> > I'm not sure where I can change this though. There's really not a lot
> > of documentation for setting up mwlib.
>
> > r...@renderserver:~$ mw-render -w rl -o test.pdfhttp://mywiki.com
> > "Article" --username=myusername --password=mypassword --
> > domain=mydomain -c :en
>
> now you're trying to render thehttp://mywiki.comarticle from the
> english wikipedia (and probably use your username/password 
> fromhttp://mywiki.com)
-- 
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