I worked round this by customising the apache configuration so that access from localhost to the server doesn't need a password. I forget exactly how I achieved this, but the result is that users have to log in, but the render server doesn't.
Richard ----- Original Message ---- > From: Milan.M.Masek <[email protected]> > To: mwlib <[email protected]> > Sent: Fri, 19 March, 2010 15:33:07 > Subject: [mwlib] Can mwlib serve through HTTPS and Apache AuthType? > > Hi folks! Does anybody know if is possible to run mw-serve and mw-render in > a configuration when access to MediaWiki is protected by HTTPS and Apache > AuthType Basic? Without https everything goes well. With https I have got > an error in mw-render.log creating nuwiki in > u'/var/cache/mw-serve/45/456edf2d954f2a48/tmp0wpAbm/ nuwiki' 1% fetching > 1% fetching 1% fetching 1% fetching Unhandled error in Deferred: Traceback > (most recent call last): Failure: exceptions.RuntimeError: could not get > collection params Traceback (most recent call last): Failure: > twisted.web.error.Error: 401 Authorization Required fatal: could not get > collection params [[Failure instance: Traceback (failure with no frames): > twisted.web.error.Error: 401 Authorization Required ]] retrying: could > not fetch ' > >https://wiki.bilbo5.praha.tmapy.cz/api.php? action=query&meta=siteinfo&siprop=general|namespaces|interwikimap| namespacealiases|magicwords|rightsinfo&format=json' removing > tmpdir u'/var/cache/mw-serve/45/456edf2d954f2a48/tmp0wpAbm' 1% error > Traceback (most recent call last): File "/usr/bin/mw-render", line 7, > in ? sys.exit( File > "/usr/lib64/python2.4/site-packages/mwlib/apps/render.py", line 211, in > main return Main()() File > "/usr/lib64/python2.4/site-packages/mwlib/apps/render.py", line 170, in > __call__ env = self.get_environment() File > "/usr/lib64/python2.4/site-packages/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/lib64/python2.4/site-packages/mwlib/apps/buildzip.py", line 58, in > make_zip make_nuwiki(fsdir, metabook=metabook, > options=options, podclient=podclient, status=status) File > "/usr/lib64/python2.4/site-packages/mwlib/apps/make_nuwiki.py", line 171, in > make_nuwiki raise RuntimeError(str(val)) RuntimeError: > [Failure instance: Traceback (failure with no > frames): exceptions.RuntimeError: could not get collection > params My configuration is: CentOS 5.4 Python > 2.4.3 mwlib==0.12.10 [r...@bilbo5 ~]# pip freeze | sort Warning: > cannot find svn location for > flup==1.0.3.dev-20100221 docutils==0.6 elementtree==1.2.7-20070827-preview email==4.0.2 ## > FIXME: could not find svn URL in dependency_links for this > package: flup==1.0.3.dev-20100221 hashlib==20081119 lockfile==0.8 mwlib.ext==0.12.3 mwlib.rl==0.12.4 mwlib==0.12.10 odfpy==0.9 PIL==1.1.7 Pygments==1.3.1 pyparsing==1.5.2 pyPdf==1.12 simplejson==2.1.0 timelib==0.2.1 Twisted==10.0.0 WebOb==0.9.8 wsgiref==0.1.2 zope.interface==3.5.3 VirtualHost > config for Apache: AuthType Basic > AuthName "Welcome to Wiki, enter your login" > AuthBasicProvider ldap AuthzLDAPAuthoritative > Off AuthLDAPUrl .. Require > valid-user LocalSettings.php Thanks in advance for your > ideas. M. -- You received this message because you are subscribed > to the Google Groups "mwlib" group. To post to this group, send email to > ymailto="mailto:[email protected]" > href="mailto:[email protected]">[email protected]. To > unsubscribe from this group, send email to mwlib+ > ymailto="mailto:[email protected]" > href="mailto:[email protected]">[email protected]. For > more options, visit this group at > href="http://groups.google.com/group/mwlib?hl=en" target=_blank > >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.
