Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] swish.cgi under mod_perl

From: Douglas Fox <douglas.fox(at)not-real.utoronto.ca>
Date: Thu Mar 15 2007 - 01:27:11 GMT
Bill,
Thanks for these comments. It seems doing a quickie install on my XP  
desktop might *not* have been the most efficient thing. I'll try the  
suggestions, but move over to a Linux test platform asap.

To answer your questions, yes, it's only when you enter a search --  
the search page itself comes up fine. It's when you try the search,  
that it fails, and Apache nearly always crashes too.

I can certainly try using SWISH::API -- I just was not sure if that  
would be introducing another complicating factor, but it sounds like  
the opposite is true.

I'll report back on what success I have with this.

Doug Fox

On 14-Mar-07, at 8:42 PM, Bill Moseley wrote:

> On Wed, Mar 14, 2007 at 07:25:05PM -0400, douglas.fox@utoronto.ca  
> wrote:
>>   use ModPerl::Registry ();
>
> Try removing that.
>
>> [Wed Mar 14 18:24:03 2007] [crit] (22)Invalid argument: Parent:  
>> Failed to create the child
>> process.
>> [Wed Mar 14 18:24:03 2007] [crit] (OS 6)The handle is invalid.  :  
>> master_main: create child
>> process failed.
>
> Hum.  So you are running swish.exe -- not using SWISH::API.
>
> Does it always fail or just when you run a query?
>
> If it always fails then why is apache trying to create a child
> process?
>
> If it only fails when searching then it seems like it might have to
> do with how swish.exe is being run.  You might take a look at how
> swish.exe is being run from swish.cgi, then.  And maybe try switching
> to SWISH::API to avoid running a separate process -- which is
> recommended anyway if running under mod_perl.
>
> I searched for those errors above with Google and had no luck -- just
> found people asking similar questions.
>
> Not much help, but it was things like this that made me quit trying to
> develop under Windows.  If your final target is Linux might as well
> develop using Linux where you know all this stuff works.
>
>
>> Exiting.
>> [Wed Mar 14 18:24:03 2007] [notice] Parent: Forcing termination of  
>> child process 36
>>
>> ACCESS LOG:
>> 128.100.124.127 - - [14/Mar/2007:18:20:50 -0400] "GET /search HTTP/ 
>> 1.1" 200 1671
>> 128.100.124.127 - - [14/Mar/2007:18:22:24 -0400] "GET /cgi-bin/ 
>> swish.cgi HTTP/1.1" 200
>> 1590
>> 128.100.124.127 - - [14/Mar/2007:18:23:19 -0400] "GET /cgi-bin/ 
>> swish.cgi?query=taves
>> &submit=Search%21&metaname=DC.Creator&sort=swishrank HTTP/1.1" 200  
>> 15542
>> 128.100.124.127 - - [14/Mar/2007:18:23:55 -0400] "GET /search HTTP/ 
>> 1.1" 200 1671
>
> Interesting those return 200 responses.
>
>
> -- 
> Bill Moseley
> moseley@hank.org
>
> Unsubscribe from or help with the swish-e list:
>    http://swish-e.org/Discussion/
>
> Help with Swish-e:
>    http://swish-e.org/current/docs
>
> _______________________________________________
> Users mailing list
> Users@lists.swish-e.org
> http://lists.swish-e.org/listinfo/users

_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Wed Mar 14 21:27:18 2007