We are running a lightly used render server inside our firewall.  3 or
4 times each month we get error 500s on the post request to the render
server, as in:

This condition can be addressed by running mwserve_stop.sh and
mwserve_start.sh scripts.

Can anyone give us a hint on the cause.  Are there any cleanup
processes for /tmp/mwcache?

Log snippets from mwserve.log attached below.

Regards, Mike M.
=====================================

mwserve log snippet from error 500 occuring 2010-11-19 9:27 Central
time

Last good render server operation:
2010-11-19T01:57:07 mwlib.serve.request_info >> remote_addr:
128.247.22.46, referer: http://mwiki-dns-name.com/index.php/Special:Book
2010-11-19T01:57:07 mwlib.serve.info >> download 00a444daa2782c40 rl
web-dns-name.com - - [19/Nov/2010 01:57:07] "POST / HTTP/1.1" 200
2823981

First error 500

2010-11-19T09:27:19 mwlib.serve.request_info >> remote_addr:
128.247.22.46, referer: http://mwiki-dns-name.com/index.php/Special:Book
2010-11-19T09:27:19 mwlib.serve.info >> Creating directory '/tmp/
mwcache/77/778942501014fb17'
Traceback (most recent call last):
  File "/data/sdit/mwrender/current/lib/python2.6/wsgiref/
handlers.py", line 93, in run
    self.result = application(self.environ, self.start_response)
  File "/data/sdit/mwrender/current/lib/python2.6/site-packages/
mwlib-0.12.13-py2.6-linux-x86_64.egg/mwlib/serve.py", line 178, in
__call__
    response = self.dispatch(request)
  File "/data/sdit/mwrender/current/lib/python2.6/site-packages/
mwlib-0.12.13-py2.6-linux-x86_64.egg/mwlib/serve.py", line 197, in
dispatch
    collection_id = self.new_collection(request.params)
  File "/data/sdit/mwrender/current/lib/python2.6/site-packages/
mwlib-0.12.13-py2.6-linux-x86_64.egg/mwlib/serve.py", line 252, in
new_collection
    os.mkdir(colldir)
OSError: [Errno 2] No such file or directory: '/tmp/mwcache/
77/778942501014fb17'
web-dns-name.com - - [19/Nov/2010 09:27:19] "POST / HTTP/1.1" 500 59

- - -
Ran mwserve_stop.sh script
Observed that /tmp/mwcache/77 did not exist
Ran mwserve_start.sh script and rendering returned to normal
- - -

2010-11-19T09:38:09 mw-serve.info >> serving http on 0.0.0.0:8899
2010-11-19T09:44:18 mwlib.serve.request_info >> remote_addr:
128.247.22.46, referer: http://mwiki-dns-name.com/index.php/Special:Book
2010-11-19T09:44:18 mwlib.serve.info >> Creating directory '/tmp/
mwcache/77/778942501014fb17'
2010-11-19T09:44:18 mwlib.serve.info >> render 778942501014fb17 rl
2010-11-19T09:44:18 mwlib.serve.info >> rendering '/tmp/mwcache/
77/778942501014fb17/output.rl'
new-collection 1        'http://mwiki-dns-name.com'     'rl'
0% job queued 2010-11-19T09:44:18 mwlib.serve.info >> queuing ['mw-
render', '--logfile', '/data/sdit/mwrender/current/logs/mwrender.log',
'--error-file', '/tmp/mwcache/77/778942501014fb17/errors.rl', '--
status-file', '/tmp/mwcache/77/778942501014fb17/status.rl', '--
writer', 'rl', '--output', '/tmp/mwcache/77/778942501014fb17/
output.rl', '--pid-file', '/tmp/mwcache/77/778942501014fb17/pid.rl',
'--metabook', '/tmp/mwcache/77/778942501014fb17/metabook.json', '--
keep-zip', '/tmp/mwcache/77/778942501014fb17/collection.zip', '--
config', 'http://mwiki-dns-name.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']
web-dns-name.com - - [19/Nov/2010 09:44:18] "POST / HTTP/1.1" 200 73
2010-11-19T09:44:19 mwlib.serve.request_info >> remote_addr:
128.247.22.46, referer: http://mwiki-dns-name.com/index.php/Special:Book
2010-11-19T09:44:19 mwlib.serve.info >> render_status 778942501014fb17
rl
web-dns-name.com - - [19/Nov/2010 09:44:19] "POST / HTTP/1.1" 200 125

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