[mod_python] socket.error connection refused

py pan python.pan at gmail.com
Fri Nov 4 12:12:19 EST 2005


Hi there,

I am setting up a database that is built upon a mod_python. When I accessed
the database with a browser, it reported an error:

===========================================[ start ]
Mod_python error: "PythonAuthenHandler access"

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in
HandlerDispatch
result = object(req)

File "/home/emen2/public_html/emen2/access.py", line 20, in authenhandler
ctxid=db.login(req.user,req.get_basic_auth_pw())

File "/home/emen2/DBProxy.py", line 28, in
return lambda *x: self(name,*x)

File "/home/emen2/DBProxy.py", line 33, in __call__
return load(self.iso[1])

EOFError
=============================================[ end ]

I believed it's due to an imcomplete installation of mod_python so I went
ahead
to run the test.py came with mod_python. It reported many errors, mostly due
to
a socket.error like:

=============================================[ start ]
ERROR: test_req_document_root (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 306, in test_req_document_root
rsp = self.vhost_get("test_req_document_root")
File "test.py", line 282, in vhost_get
conn.endheaders()
File "/usr/lib/python2.3/httplib.py", line 712, in endheaders
self._send_output()
File "/usr/lib/python2.3/httplib.py", line 597, in _send_output
self.send(msg)
File "/usr/lib/python2.3/httplib.py", line 564, in send
self.connect()
File "/usr/lib/python2.3/httplib.py", line 548, in connect
raise socket.error, msg
error: (111, 'Connection refused')
============================================= [ end ]

How can I solve this problem?
Thx in advance;.

pan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20051104/315d302f/attachment.html


More information about the Mod_python mailing list