Hi,
I am trying to implement the collection extension with a local render
server but I can not seem to get it to work. I guess I have probably
just missed some important step but I can not see what is wrong and I
was wondering how I might go about debugging the system.
I have installed mwlib as described in the documentation and the
following test installation steps work fine:
mw-zip -c :en -o test.zip Acdc Number
mw-render -c test.zip -o test.pdf -w rl
I have then started up the server using the following commands as
indicated in the documentation:
nserve.py &
mw-qserve &
nslave.py --cachedir ~/mw-cache/ &
postman.py &
This seems to start up fine with various lines of information being
displayed.
I sometimes see python errors, followed by a socket error, but this is
not very consistant.
socket.error: [Errno 98] Address already in use
I then setup the collection extension, within a recent version of
mediawiki (1.18.x) as described by adding the following to my
LocalSettings file:
$wgEnableAPI = true;
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = "http://xx.xx.xx.xx:8899/";
On requesting a PDF from a wiki page the render server starts to out
put more information.
Lots of lines similar to:
xx.xx.xx.zz - - [2012-03-30 14:11:35] "POST / HTTP/1.1" 200 196
0.002943
xx.xx.xx.zz - - [2012-03-30 14:11:36] "POST / HTTP/1.1" 200 196
0.002890
xx.xx.xx.zz - - [2012-03-30 14:11:36] "POST / HTTP/1.1" 200 196
0.003077
And lots of lines like:
<<33 127.0.0.1:52841>: dispatching: ["qpull", {"channels":
["post"]}]>
<<32 127.0.0.1:52840>: dispatching: ["qpull", {"channels":
["post"]}]>
<<27 127.0.0.1:52835>: dispatching: ["qpull", {"channels":
["post"]}]>
<<30 127.0.0.1:52838>: dispatching: ["qpull", {"channels":
["post"]}]>
<<104 127.0.0.1:52912>: idle>
But the progress % does not really change, it has sometimes gone up to
1 or 2%, and then just sits there until it timesout. Once it seemed to
get to 100%, but then nothing else happened and I could not get it to
do this again.
Should using the render server be "many" times slower than using the
command line process ?
Have I missed a step ?
Should I be seeing more information ?
Are there other logging processes I can do to work out where the
problems is or have I just missed something simple ?
Thanks
Joe
--
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.