Apache won't connect to app server after ubuntu 9.10 upgrade
Peter Lyons <pete-qR/[email protected]> Sat, 5 Dec 2009 19:57:24 -0700
| Newsgroups | gmane.comp.python.webware |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have been running webware on an ubuntu/apache/mod_webkit stack for
several years now with no problems. I upgraded to ubuntu 9.10 and now
apache cannot connect to the webkit app server. I've done a good deal of
troubleshooting, but I'm stuck. Here's what happens in my apache error log
when I browse to any URL handled by webkit:
*
[Sat Dec 05 19:14:16 2009] [error] Can not open socket connection to WebKit
AppServer
[Sat Dec 05 19:14:16 2009] [error] Couldn't connect to AppServer, attempt 10
of 10, sleeping 1 second(s)
[Sat Dec 05 19:14:17 2009] [error] timed out trying to connect to appserver
-- giving up.*
(There are 10 total connection attempts from apache/mod_webkit to the
adapter then it just gives up). I get a 500 internal server error page from
apache in my browser. Here's what I know:
The app server is up and running and listening on port 9000. I can telnet to
it and verify it's the actual app server (It rejects HTTP as is expected).
*root@mrpc:~# netstat -ntlp |grep 9000
tcp 0 0 0.0.0.0:9000 0.0.0.0:*
LISTEN 3659/python
root@mrpc:~# telnet localhost 9000
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.0
HTTP/1.0 505 HTTP Version Not Supported
Content-type: text/plain
Error: Invalid AppServer protocol.
Sorry, I don't speak HTTP. You must connect via an adapter.
Connection closed by foreign host. the WebKit Install Guide.*
Apache is listening on port 80 (although *it's tcp6. * I don't think that
matters though. Could that cause problems?)
*netstat -ntlp |grep 80
tcp6 0 0 :::80 :::*
LISTEN 1871/apache2 *
Static files are coming through apache fine. Apache is configured to
connect to the app server as follows:
* <Location /app>
WKServer localhost 9000
SetHandler webkit-handler
</Location>*
>From the AppServer side, I don't see any activity in Logs, ErrorMsgs, or
Sessions, indicating it never sees any connections.
I'm attaching a file with the output if I run AppServer by hand. That all
looks correct to me. My suspicion is there is some problem with the
networking between mod_webkit and the appserver, but I have no idea what
that might be. Here are some more details on the software versions I am
running:
*
root@mrpc:~# uname -a
Linux mrpc 2.6.31-16-generic #52-Ubuntu SMP Thu Dec 3 22:07:16 UTC 2009
x86_64 GNU/Linux
root@mrpc:~# dpkg -l apache\*|grep ii
ii apache2
2.2.12-1ubuntu2.1 Apache HTTP Server metapackage
ii apache2-mpm-prefork
2.2.12-1ubuntu2.1 Apache HTTP Server - traditional
non-threade
ii apache2-threaded-dev
2.2.12-1ubuntu2.1 Apache development headers -
threaded MPM
ii apache2-utils
2.2.12-1ubuntu2.1 utility programs for webservers
ii apache2.2-bin
2.2.12-1ubuntu2.1 Apache HTTP Server common binary
files
ii apache2.2-common
2.2.12-1ubuntu2.1 Apache HTTP Server common files*
root@mrpc:~# python
Python 2.6.4 (r264:75706, Nov 2 2009, 14:44:17)
[GCC 4.4.1] on linux2
I searched the webware-discuss archives and this error is common, but
usually it's due to misconfiguration. As I said, this stack has been
running fine for years, so unless I've made a silly oversight, I think the
basics are correct in terms of apache and app server configurations (both
port 9000, etc).
Thanks for any tips you might have for me.
Pete
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Webware-discuss mailing list
Webware-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/webware-discuss
appserver.out
(application/octet-stream, 6.1 KB) - not displayed