Hello all, recently I managed to install (or restore ;) a working render server on a sf.net project-web. With 30-40% chance it creates a PDF but I'm not completely satisfied with that. Therefore I've some questions, maybe someone can give me one or another hint.
The first (and most important) issue: It seems I have to add some delay (3s) at the end of the CGI/python script. Otherwise, progress is stuck at 0% with 'job queued' status (forever). But even with that delay it does not always work. This may depend on sf.net server load or differences between server nodes within their farm (?) I've no idea. The delay is an ugly solution and I would like to know possible causes. On thought is, perhaps it needs to wait for the spawned thread to finish? But I'm no WSGI expert, maybe someone has a clue what happens there. btw. I tried calling join() on the created WSGIServer instance - that doesn't work either. Can this be related to server load or connection latency ? Another issue are the log files: First of all MWRENDER_LOGFILE: If it's not set or can't be created or can't be written too, the program dies. That's bad. It would be nice to keep the program (the renderer) running even if none of the configured log files is accessible. They are not critical to a working render server, afaik. Additionally, in my current setup, the render server works only if I set MWZIP_LOGFILE and MWPOST_LOGFILE to 'None'. Otherwise, progress is stuck at 0% like above. Of course, these problems may be related to the shared hosting environment and hidden security settings I don't have access to. My solution for MWRENDER_LOGFILE is to write it to /tmp/ with an uuid in the name. The original CGI-script: http://code.pediapress.com/git/mwlib/?p=mwlib;a=blob_plain;f=cgi-bin/mwlib.cgi;hb=HEAD A copy of the modified CGI-script I use, can be found here (incl. some more details): http://ingobressler.net/diary/mediawiki-render-server-sourceforge Thanks for any hints and kind regards, Ingo. -- 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.
