- Problem with pcgi on FreeBSD 2.2.8/Python 1.5.1
This is really two problems. I started with ZopHTTPServer (since I already had experience with BoboHTTPServer) and everything worked pretty well until I started adding users. For some reason users defined in lower folders could not authenticate. e.g., http://my.server:9673/folder1/folder2/manage would bring up a dialog with the "Main" realm, and would not recognize users defined in folder2's acl users folder. I thought maybe it was a problem with ZopeHTTPServer, so I tried getting pcgi running (which I've never used before.... so expect newbie problems....) I tried via my browser and got 'Internal Error'... looking at httpd-error.log I see 'malformed output'... so I tried running Zope.cgi from the command line.... I get:
Zope.cgi Bad system call (core dumped)
ouch! So... I fired up gdb on pcgi-wrapper and found that it was dying in the chunk of code where it tries to start the process for the first time.... /* // pcgiStartProc: manages starting a pcgi resource. */ #ifdef UNIX int pcgiStartProc(pcgiResource *r) { [ lots of code deleted.....] /* Make sure another wrapper isn't already doing a restart */ if ((r->lock=semget(101, 1, 0700 | IPC_CREAT | IPC_EXCL)) == -1) <--- dies here.... [ more code deleted .....] } ... something line SIGSYS, bad system call. The man page doesn't say anything about IPC_CREAT or IPC_EXCL, but the compiler didn't complain so I'm guessing they are OK. Is it possible that 101 is not an allowed key? Is it possile that semaphores don't work on FreeBSD? Is anyone else running FreeBSD. Any hints on debugging this? thanks, -steve
I have had problems with PCGI under FreeBSD as well. However, I didn't experience any core dumps. For me, the wrapper timed out without starting an LRP. If I started the LRP from the command line, the wrapper sort of worked. The content pages I viewed worked fine, but the left pane of the management screen gave me a Zope error. I can't really offer any more detailed information (the python server works fine, and I'm using that), but I thought what little I do know might help someone. Mike. -- --- | Mike Pelletier Work: 519-746-1607 /opeware! | Software Developer Home: 519-725-7710 --- | mike@zopeware.com Fax: 519-746-7566 http://www.zopeware.com | Zopeware is not endorsed by Digital Creations
participants (2)
-
Mike Pelletier -
Steve Spicklemire