----------  Forwarded Message  ----------

Subject: Webware suggestion
Date: Fri, 14 Dec 2001 09:11:06 +0000 (UTC)
To: Chuck Esterbrook

Yeah, I know. Send it to the list. Anyway, I regularly end up
 forgetting to change the permissions on Cache, Sessions, Logs, and
 ErrorMsgs. Invariably, I get this traceback in the error_log:

Traceback (most recent call last):
  File "/var/opt/sb/m2tmp/webware/WebKit/AppServer.py", line 184, in
loadPlugIn
    willNotLoadReason = plugIn.load()
  File "/var/opt/sb/m2tmp/webware/WebKit/PlugIn.py", line 72, in load
    os.mkdir(cacheDir)
OSError: [Errno 13] Permission denied:
'/var/opt/sb/m2tmp/appdir/Cache/MiddleKit'
ERROR: Plug-in /var/opt/sb/m2tmp/webware/MiddleKit raised exception.
[Fri Dec 14 03:55:19 2001] [error] WebKit.OneShotAdapter: Error while
responding to request (unknown)
Python exception:
Traceback (most recent call last):
  File "/var/opt/sb/m2tmp/webware/WebKit/OneShotAdapter.py", line 71,
 in run
    appSvr = OneShotAppServer(self._webKitDir)
  File "/var/opt/sb/m2tmp/webware/WebKit/AppServer.py", line 60, in
__init__
    self.loadPlugIns()
  File "/var/opt/sb/m2tmp/webware/WebKit/AppServer.py", line 223, in
loadPlugIns
    plugIn = self.loadPlugIn(plugInPath)
  File "/var/opt/sb/m2tmp/webware/WebKit/AppServer.py", line 192, in
loadPlugIn
    self.error('Plug-in %s raised exception.' % path)
  File "/var/opt/sb/m2tmp/webware/WebKit/AppServer.py", line 279, in
 error sys.exit(1)  # @@ 2000-05-29 ce: Doesn't work. Perhaps because
 of threads
SystemExit: 1
[Fri Dec 14 03:55:19 2001] [error] [client 127.0.0.1] Premature end of
script headers: /rootdir/var/opt/sb/m2tmp/cgi-bin/OneShot.cgi



Now, note that, in addition to the basic barf, it's barfing a second
 time because it can't write the barf to ErrorMsgs. My suggestion is
 twofold:

        1) Make sure you dump the exception to the browser regardless of
        whether or not you can write it to ErrorMsgs / Logs

        2) When you detect "permission denied" for any of those four
        directories, give an explicit error page that says "hey, dummy, go
        set the permissions correctly on those dirs".


--
   Tripp Lilley   *   http://www.hfd.com/   *   Thinkerer
-----------------------------------------------------------------------
- "Hey! That's in the list of things that evil overlords should never
 do.  'Don't fight like a man, fight like an evil overlord.'"

   http://www.userfriendly.org/cartoons/archives/99apr/19990429.html

-------------------------------------------------------

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to