Re: [greenstone-users] Greenstone as applet on IIS

From Michael Dewsnip
DateThu, 18 May 2006 11:22:27 +1200
Subject Re: [greenstone-users] Greenstone as applet on IIS
In-Reply-To (c0f244f0605161713i75037a5eg6fef02b0efb9dd57-mail-gmail-com)
Hi all,

After some off-list correspondence this bug has now been fixed. If
you're installing the remote building functionality on a server with a
version of Perl that has the crypt() function disabled (this includes
the Perl included with Greenstone on Windows), you should download an
updated Greenstone "cgi-bin/gliserver.pl" file from
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/temp-2.70/gliserver.pl.
(This information has also been included on the documentation page at
http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/west-yorkshire/remote-greenstone.html)

If you have no idea what I'm talking about then you don't need this fix :-)

Michael

Leon White wrote:

> Hi Michael, John, List,
>
> thank you very much for the help. Although I'm in way over my head on
> this I'm reading and learning as fast as I can. I inserted your fix to
> cgi-bingliserver.pl as follows:
>
> ...
> require "$gsdlhome/perllib/util.pm"; # This is OK on Windows
> require "$gsdlhome/perllib/cpan/Crypt/UnixCrypt.pm"; # This is OK
> on Windows
> $Crypt::UnixCrypt::OVERRIDE_BUILTIN = 1; # Fix provided by Michael
> Dewsnip
>
> I now get the following error message at
> http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collection-configurations&un=test&pw=test
> <http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collection-configurations&un=test&pw=test>
>
>
> CGI Error
>
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are:
>
>Name "Crypt::UnixCrypt::OVERRIDE_BUILTIN" used only once: possible typo at E:Greenstonegsdlcgi-bingliserver.pl line 28.
>
>The crypt() function is unimplemented due to excessive paranoia. at E:Greenstonegsdlcgi-bingliserver.pl line 31.
>
>
> Connecting with the GLI client still generates a 502. So other than
> the obligatory newbie chuckle at entertaining error messages, what
> does this mean and how can I fix it?
>
> Thanks and bye,
> Leon
>
>
> On 5/17/06, *Michael Dewsnip* <mdewsnip&#64;cs.waikato.ac.nz
> <mailto:mdewsnip@cs.waikato.ac.nz>> wrote:
>
> Hi Leon,
>
> Actually, this isn't a 502 error at all -- it seems that Java is
> confused by the true error. By visiting
> http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collection-configurations&un=test&pw=test
> <http://www.rkb.usp.ac.fj/gsdl/cgi-bin/gliserver.pl?cmd=download-collection-configurations&un=test&pw=test>
> you can see the real error:
>
>
> CGI Error
>
> The specified CGI application misbehaved by not returning a
> complete set of HTTP headers. The headers it did return are:
>
>The crypt() function is unimplemented due to excessive paranoia. at E:Greenstonegsdlcgi-bingliserver.pl line 30.
>
>
>
> Fixing this requires a change to the gliserver.pl file to override
> Perl's built-in crypt() function to use the one in
> Crypt::UnixCrypt. Try adding this line:
>
> $Crypt::UnixCrypt::OVERRIDE_BUILTIN = 1;
>
> after:
>
> require "$gsdlhome/perllib/cpan/Crypt/UnixCrypt.pm"; #
> This is OK on Windows
>
> near the start of the Greenstone "cgi-bingliserver.pl" file. I'm
> not 100% certain this will work because I can't test it for myself
> -- please let me know either way.
>
> All the best,
>
> Michael
>
>
>
> Leon White wrote:
> Hi John + list,
>
> after confering with the network guys here they gave me another
> URL to access the server under. It seems kaka.usp.ac.fj
> <http://kaka.usp.ac.fj> is only used for SSL connections, external
> connections must go to www.rkb.usp.ac.fj/gsdl/cgi-bin/library.exe
> <http://www.rkb.usp.ac.fj/gsdl/cgi-bin/library.exe> .
> Nevertheless, the new URL results in the sam 502 error, and the
> network guys swear up and down that
>
> 1. Because it is internal, I don't need to worry about the
> university proxy
> 2. Even if I was to use the proxy, things should still work
> with Greenstone
>
> I am pretty sure this is just a configuration problem, probably on
> the IIS side and I realise it probably doesn't belong on this list
> either, but I am at a loss for what to do otherwise.
>
> Thanks again,
> Leon White
>
> ---------- Forwarded message ----------
> From: *Vikash Gounder* <gounder_v@usp.ac.fj
> <mailto:gounder_v@usp.ac.fj>>
> Date: May 16, 2006 10:26 AM
> Subject: RE: [greenstone-users] Greenstone as applet on IIS
> To: Leon White <badfunkstripe@gmail.com
> <mailto:badfunkstripe@gmail.com>>
>
> Hi Leon,
>
>
>
> www.rkb.usp.ac.fj/gsdl/cgi-bin/library.exe
> <http://www.rkb.usp.ac.fj/gsdl/cgi-bin/library.exe>
>
> We just checked it seems to be open from outside: try this tool:
>
> http://proxysystems.net/ <http://proxysystems.net/>
>
>
>
> cheers □
>
> vikash □
>
> ------------------------------------------------
> Vikash Gounder
> Analyst Programmer - Webmaster
> User Services, IT Services
> University of the South Pacific, Suva , Fiji
> Tel: + 679 323 2126
> Fax: + 679 323 1533
>
> -----Original Message-----
> *From:* Leon White [mailto:badfunkstripe@gmail.com
> <mailto:badfunkstripe@gmail.com>
> ]
> *Sent**:* 16 May 2006 09:32
>
> *To:* gounder_v@usp.ac.fj <mailto:gounder_v@usp.ac.fj>
> *Subject:* Re: [greenstone-users] Greenstone as applet on IIS
>
>
>
> im getting the same error over the secure connection. all of the
> certificates on the kaka server belong to rkb, why is that and
> what does rkb mean??
>
>
> On 5/16/06, *Vikash Gounder* < gounder_v@usp.ac.fj
> <mailto:gounder_v@usp.ac.fj>> wrote:
>
> Hi Leon,
>
>
>
> I think only secure connection is done to the kaka server:
> https://kaka.usp.ac.fj/gsdl/cgi-bin/library.exe
>
>
>
> Iam not sure why the server is only opened to the outside world,
> when it is suppose to be open to the outside world. I'll ask the
> guy who used to work on RKB stuff.
>
>
>
> Cheers□
>
>
>
> ------------------------------------------------
> Vikash Gounder
> Analyst Programmer - Webmaster
> User Services, IT Services
> University of the South Pacific, Suva, Fiji
> Tel: + 679 323 2126
> Fax: + 679 323 1533
>
> -----Original Message-----
> *From:* Leon White [mailto:badfunkstripe@gmail.com
> <mailto:badfunkstripe@gmail.com>]
> *Sent:* 16 May 2006 09:17
> *To:* Vikash Gounder
> *Subject:* Fwd: [greenstone-users] Greenstone as applet on IIS
>
>
>
> vikash,
>
> i got an answer from the mailing list. we already thought of it,
> but seeing as you know the network structure here, can you check
> it out in detail, particularly pertaining to the cache? the error
> isnt generated by greenstone but by IIS. why cant people from
> outside access kaka?
>
> cheers
> leon
>
> ---------- Forwarded message ----------
> From: *John R. McPherson* <jrm21@cs.waikato.ac.nz
> <mailto:jrm21@cs.waikato.ac.nz>>
> Date: May 15, 2006 9:35 PM
> Subject: Re: [greenstone-users] Greenstone as applet on IIS
> To: Leon White <badfunkstripe@gmail.com
> <mailto:badfunkstripe@gmail.com>>
> Cc: greenstone-users@list.scms.waikato.ac.nz
> <mailto:greenstone-users@list.scms.waikato.ac.nz>
>
> On Mon, May 15, 2006 at 03:23:18PM +1200, Leon White wrote:
>> Hi,
>
>> instructions closely. The exact error message is:
>>
>> 'An error has occurred on the remote Greenstone server while
> performing this
>> operation: Server returned HTTP response code: 502 for URL:
>> http://kaka.usp.ac.fj/gsdl/cgi-bin/gliserver.pl
>> '
>
> The HTTP code "502" means "Bad Gateway". Are you using a proxy server
> or caching web server or anything? I note that "kaka.usp.ac.fj
> <http://kaka.usp.ac.fj/>" is
> not an existing domain name, at least for me outside the university -
> is this an internal-only server name?
>
> John McPherson
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>greenstone-users mailing list
>
>
> greenstone-users@list.scms.waikato.ac.nz
> <mailto:greenstone-users@list.scms.waikato.ac.nz>
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
> <https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users>
>
>