OK Graham, this fixed the req.auth_type() error, great :).Now everything passes except for a segfault in the server-side include tests, I'll try to do a debug build of mod_python in order to get stack traces.
Regards,Nicolas2006/4/13, Graham Dumpleton <[EMAIL PROTECTED]>:
NicolasCan you check out l
> OperationalError: (2003, "Can't connect to MySQL server on '10.0.0.6' (111)")
Error 111 is a socket connection refused (ECONNREFUSED). So most
likely this has nothing to do with your db username or password. But
the ip address does look unusual.
First, does the ip 10.0.0.6 mean anything? Is
Nicolas
Can you check out latest code from trunk in subversion and retest to
see if problem has gone away. I have made the req_auth_type and
req_requires tests both a bit more exact/resilient whereas before
they left out things which otherwise might need to be present in
a properly crafted handler
Whoops. I could be talking nonsense here. But then I missed that
your code says 127.0.0.1 yet the error says 10.0.0.6.
FWIW, the reason that I thought to suggest to look at this was that
I was using a database once where using 127.0.0.1 made it use
a local database connection rather than full IP
Apache doesn't probably run as any of the users which your database
allows access to. Add lines in your CGI which says:
import os
print os.getuid()
and then see what user that UID actually is and give it access. User
may be something like "apache", "www", "wwwroot" or possibly even
"nobody" d
Barry Pearce yazmış:
One extra comment on this...
Firstly make sure you have upgraded to the latest version of MySQLdb - we found earlier versions less than great.
Warning: If you have PHP installed it uses mysql client libraries which are OUT OF DATE - and will cause failures. Remove t
Graham Dumpleton wrote ..
> What is interesting now is that when doing that, I note that on Mac OS
> X there are some worrying error messages which follow that:
>
> [Thu Apr 13 11:09:37 2006] [error] Internal error: pcfg_openfile() called
> with NULL filename
> [Thu Apr 13 11:09:37 2006] [error] [
Nicolas Lehuen wrote ..
> Just as a note, I'm still struggling with Apache 2.2 to make the test suite
> run with the latest svn version (everything seems OK with Apache 2.0.55).
>
> I still have a problem while testing req.auth_type(). It looks like the
> authentication system was changed in Apac
One extra comment on this...
Firstly make sure you have upgraded to the latest version of MySQLdb - we found earlier versions less than great.
Warning: If you have PHP installed it uses mysql client libraries which are OUT OF DATE - and will cause failures. Remove the php module from the serv
On 4/12/06, Firat KUCUK <[EMAIL PROTECTED]> wrote:
> conn = MySQLdb.connect(
>host = '127.0.0.1',
>user = 'pismikrop',
>passwd = 'pass',
>db = 'db')
Unrelated to your question, but I see this a lot. You should
not hardcode the database passw
On 13/04/2006, at 5:26 AM, Firat KUCUK wrote:
Hi,
i wrote a simple connection script.
It works as a command line script or cgi script.
But does not work in mod_python.
import MySQLdb
conn = MySQLdb.connect(
host = '127.0.0.1',
user = 'pismikrop',
passwd = 'pas
On 11/04/2006, at 12:47 PM, Jim Gallacher wrote:
Here is the list of things I still need to backport. Fixes have
already been committed to trunk.
MODPYTHON-77
The Simplified GIL Aquisition patches.
Was already done.
MODPYTHON-94
Support for optional mod_ssl functions on request obje
On 11/04/2006, at 12:47 PM, Jim Gallacher wrote:
Here is the list of things I still need to backport. Fixes have
already been committed to trunk.
MODPYTHON-77
The Simplified GIL Aquisition patches.
Jim, you must be coding in your sleep and thus not knowing what you are
doing as MODPYTHON
13 matches
Mail list logo