Setup webware-0.8.1 (and the included mod_webkit) with apache-2.0.47 and
python 2.3.3 on a Linux machine.
Problem is the app server never seems to respond to mod_webkit (or maybe
mod_webkit isn't connecting to the app server?). The app is listening
and if I run it with the builtin HTTP server it works. I've run tcpdump
(tcpdump -ni lo tcp port 8086) on the loopback interface and I never see
any connections between the two.
Apache access log:
127.0.0.1 - - [15/Apr/2004:15:48:21 -0500] "GET /wk HTTP/1.1" 500 1064
"-" "Links (2.1pre11; Linux 2.4.21-99-default i686; 109x41)"
Apache error log:
[Thu Apr 15 15:48:37 2004] [error] timed out trying to connect to
appserver-- giving up.
Relevant part of Apache config:
LoadModule webkit_module /usr/lib/apache2/mod_webkit.so
<Location /wk>
WKServer localhost 8086
SetHandler webkit-handler
</Location>
The app server is listening on the loopback interface:
$ netstat -an | grep 8086
tcp 0 0 127.0.0.1:8086 0.0.0.0:* LISTEN
I haven't changed anything in Application.config other than
AdminPassword and I haven't deployed any new contexts/applications.
I ran Webware-0.8.1/install.py a couple times and it didn't give me any
error messages.
Thanks in advance!
-Jacob
Here is the output from the AppServer:
WebKit AppServer 0.8.1
part of Webware for Python
Copyright 1999-2001 by Chuck Esterbrook. All Rights Reserved.
WebKit and Webware are open source.
Please visit: http://webware.sourceforge.net
Process id is 4013
Date/time is Thu Apr 15 16:13:23 2004
AutoReload = 0
AutoReloadPollInterval = 1
CheckInterval = 100
Host = 127.0.0.1
MaxServerThreads = 20
MinServerThreads = 5
PlugInDirs = ['/home/jmartinson/src/Webware-0.8.1']
PlugIns = []
Port = 8086
PrintConfigAtStartUp = 1
StartServerThreads = 10
Verbose = 1
ActivityLogColumns = ['request.remoteAddress',
'request.method', 'request.uri', 'response.size', 'servlet.name',
'request.timeStamp', 'transaction.duration',
'transaction.errorOccurred']
ActivityLogFilename =
/home/jmartinson/src/Webware-0.8.1/WebKit/Logs/Activity.csv
AdminPassword = asdfjklsfdjklsd
CacheServletClasses = 1
CacheServletInstances = 1
ClearPSPCacheOnStart = 1
Contexts = {'Admin':
'/home/jmartinson/src/Webware-0.8.1/WebKit/Admin', 'default':
'/home/jmartinson/src/Webware-0.8.1/WebKit/Examples', 'Testing':
'/home/jmartinson/src/Webware-0.8.1/WebKit/Testing', 'Examples':
'/home/jmartinson/src/Webware-0.8.1/WebKit/Examples'}
Debug = {'Sessions': 0}
DirectoryFile = ['index', 'Index', 'main', 'Main']
DynamicSessionTimeout = 15
EmailErrorReportAsAttachment = 0
EmailErrors = 0
ErrorEmailHeaders = {'To': ['-@...'], 'Reply-to':
'-@...', 'From': '-@...', 'Content-type': 'text/html', 'Subject':
'[WebKit Error]'}
ErrorEmailServer = mail.-.com
ErrorLogFilename =
/home/jmartinson/src/Webware-0.8.1/WebKit/Logs/Errors.csv
ErrorMessagesDir =
/home/jmartinson/src/Webware-0.8.1/WebKit/ErrorMsgs
ExtensionCascadeOrder = ['.py', '.psp', '.html']
ExtensionsToIgnore = ['.pyc', '.pyo', '.py~', '.psp~',
'.html~', '.bak', '.tmpl']
ExtensionsToServe = []
ExtraPathInfo = 0
FancyTracebackContext = 5
FilesToHide = ['.*', '*~', '*.bak', '*.tmpl',
'*.config', '__init__.*', '*.pyc', '*.pyo']
FilesToServe = []
IgnoreInvalidSession = 1
IncludeFancyTraceback = 0
LogActivity = 0
MaxDynamicMemorySessions = 10000
MaxValueLengthInExceptionReport = 500
OldStyleActions = 0
PrintConfigAtStartUp = 1
RPCExceptionReturn = traceback
ReportRPCExceptionsInWebKit = 1
SaveErrorMessages = 1
SessionPrefix = None
SessionStore = Dynamic
SessionTimeout = 60
ShowDebugInfoOnErrors = 1
UnknownFileTypes = {'CheckDate': 1, 'Technique':
'serveContent', 'CacheContent': 1, 'ReuseServlets': 1}
UseAutomaticPathSessions = 0
UseCascadingExtensions = 1
UserErrorMessage = The site is having technical
difficulties with this page. An error has been logged, and the problem
will be fixed as soon as possible. Sorry!
Loading context: Admin at
/home/jmartinson/src/Webware-0.8.1/WebKit/Admin
Loading context: Testing at
/home/jmartinson/src/Webware-0.8.1/WebKit/Testing
Loading context: Examples at
/home/jmartinson/src/Webware-0.8.1/WebKit/Examples
Current directory: /home/jmartinson/src/Webware-0.8.1
Session Sweeper started
Plug-ins list: /home/jmartinson/src/Webware-0.8.1/PSP,
/home/jmartinson/src/Webware-0.8.1/UserKit,
/home/jmartinson/src/Webware-0.8.1/MiddleKit,
/home/jmartinson/src/Webware-0.8.1/WebUtils,
/home/jmartinson/src/Webware-0.8.1/MiscUtils,
/home/jmartinson/src/Webware-0.8.1/TaskKit,
/home/jmartinson/src/Webware-0.8.1/COMKit
Loading plug-in: PSP at /home/jmartinson/src/Webware-0.8.1/PSP
Loading context: PSPExamples at
/home/jmartinson/src/Webware-0.8.1/PSP/Examples
Loading plug-in: UserKit at /home/jmartinson/src/Webware-0.8.1/UserKit
Loading plug-in: MiddleKit at
/home/jmartinson/src/Webware-0.8.1/MiddleKit
Loading context: MKBrowser at
/home/jmartinson/src/Webware-0.8.1/MiddleKit/WebBrowser
Loading plug-in: WebUtils at /home/jmartinson/src/Webware-0.8.1/WebUtils
Loading plug-in: MiscUtils at
/home/jmartinson/src/Webware-0.8.1/MiscUtils
Loading plug-in: TaskKit at /home/jmartinson/src/Webware-0.8.1/TaskKit
Loading plug-in: COMKit at /home/jmartinson/src/Webware-0.8.1/COMKit
Plug-in /home/jmartinson/src/Webware-0.8.1/COMKit cannot be loaded
because:
Required op sys is ['nt'], but actual op sys is posix.
Listening on ('127.0.0.1', 8086)
Creating 10 threads..........
Ready (0.54 seconds after launch)
|