On 02.02.2009, at 17:40, [email protected] wrote:
> sudo mw-serve
>
> which produces the following (partial) output:
>
> 2009-02-02T11:19:52 mw-serve.info >> serving http on 0.0.0.0:8899
> 2009-02-02T11:19:57 mwlib.serve.info >> Creating directory '/var/ 
> cache/
> mw-serve/f'
> 2009-02-02T11:19:57 mwlib.serve.info >> Creating directory '/var/ 
> cache/
> mw-serve/f/f5'
> 2009-02-02T11:19:57 mwlib.serve.info >> Creating directory '/var/ 
> cache/
> mw-serve/f/f5/f51755db6facf3a9'
> 2009-02-02T11:19:57 mwlib.serve.info >> render f51755db6facf3a9
> rl
> 2009-02-02T11:19:57 mwlib.serve.info >> rendering '/var/cache/mw- 
> serve/
> f/f5/f51755db6facf3a9/output.rl'
[...]

If it produces this output, at least one POST request (which triggered  
the rendering) must have worked.

> Attempts to run something like the following just fail silently
> immediately.
> sudo mw-serve --clean-cache=3 --logfile /var/log/mw-serve.log

Does the command return with a return code ≠ 0 or what do you mean  
with "fail"? Does the logfile contain anything interesting?

A note, just in case (I'm sure you already know this): Running mw- 
serve with the option --clean-cache causes it to run once to clean all  
outdated cache files. The command is meant to be run repeatedly, e.g.  
in a cronjob.

> And attempts to print a PDF from the wiki say: The POST request to
> http://localhost:8899 failed (couldn't connect to host).

See above: At least one POST request must have worked since the render  
message in the log has been triggered somehow. Can you telnet to  
localhost 8899 and get a connection?

> This works:
> sudo mw-serve --logfile /var/log/mw-serve.log --interface 0.0.0.0 --
> port 8899 --daemonize

What does "works" mean? Does the command successfully spawn a process  
and the process keeps running, but POST requests are rejected? Is the  
message "serving http on 0.0.0.0:8899" written to the logfile  
immediately after you've issued the command?

-- Johannes


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