[greenstone-users] Re: greenstone-users Digest, Vol 43, Issue 14 (Building Greenstone collections remotely)

From Michael Dewsnip
DateWed, 01 Nov 2006 10:42:52 +1300
Subject [greenstone-users] Re: greenstone-users Digest, Vol 43, Issue 14 (Building Greenstone collections remotely)
In-Reply-To (c387a3b60610300306o2c2aabffh480769ed455cda64-mail-gmail-com)
Hi,

I think you need to keep the "#!" at the start of the first line, and
the "-w" at the end of the line, ie:

#!/D:Greenstone271binwindowsperlbinperl -w
/
If that doesn't fix the problem, check the Apache error_log file to see
what is going wrong.

Regards,

Michael
/
/

Ata ur Rehman wrote:

> Dear Michael
>
> I am also trying to configure GLI to build collections remotely. But
> I think there is problem in my gliserver.pl first line code. I have
> mentioned the full path to perl as under:
>
> _*gliserver.pl*_
>
>
> /"D:Greenstone271binwindowsperlbinperl"/
>
> /# Need to specify the full path of Perl above/
>
> /use gsdlCGI;/
>
> /use strict;/
>
> //
>
> /my $authentication_enabled = 1;/
>
> /my $debugging_enabled = 0;/
>
> .........
>
> Is it correct?
>
> After these changes I request the follwoing command:
>
> http://ata/gsdl/cgi-bin/gliserver.pl?cmd=check-installation (ata is my
> server name)
> but i find the following error:
>
>
>
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator, admin@irm.edu.pk
> <mailto:admin@irm.edu.pk> and inform them of the time the error
> occurred, and anything you might have done that may have caused the error.
>
> More information about this error may be available in the server error
> log.
>
> ------------------------------------------------------------------------
> Apache/2.0.55 (Win32) Server at ata Port 80
>
>
> What should I do?
>
>
> Ata
>
>
>
>
> ---------- Forwarded message ----------
> From: Michael Dewsnip < mdewsnip@cs.waikato.ac.nz
> <mailto:mdewsnip@cs.waikato.ac.nz>>
> To: "Ajax, Tim A" <TAAjax@schreiner.edu <mailto:TAAjax@schreiner.edu>>
> Date: Fri, 27 Oct 2006 17:19:27 +1300
> Subject: Re: [greenstone-users] Remote Librarian interface trouble
> Hi Tim,
>
> Sorry for the slow reply to your e-mail... now that the Greenstone
> 2.71
> release is finally over, hopefully things will return to normal.
>
> Thanks for pointing out the errors in your Apache error log file.
> None
> of them represent real problems, but I've spent some time today
> investigating them and tidying them up where possible.
>
> - The "script not found or unable to stat" errors are caused by Java
> looking in various places for the dictionary.properties file. It's
> actually in the applet JAR file, but that seems to be the last place
> Java looks. Hopefully there is a way of telling Java the correct place
> to look to start with.
>
> - The "File /opt/greenstone/collect/modelcol/metadata does not
> exist!"
> messages are caused by the GLI code on the server when asked to add a
> directory that doesn't exist to a zip file. In this case, it's not an
> error, and I plan to change the code so it only complains about
> missing
> files that are required.
>
> - The "util::mk_dir could not create directory
> /opt/greenstone/collect/collectiontest" error is caused when the
> gliserver.pl tries to create a directory that already exists. I have
> fixed this problem and there is an updated version of gliserver.pl
> available from the
> http://www.cs.waikato.ac.nz/~mdewsnip/greenstone/remote-greenstone.html
> <http://www.cs.waikato.ac.nz/%7Emdewsnip/greenstone/remote-greenstone.html>
> page.
>
> All the best,
>
> Michael
>
>
>
>
>
> Ajax, Tim A wrote:
>
> >Hi,
> >
> >I have installed Greenstone 2.7w on a Gentoo Linux server and
> everything
> >appears to work fine except the remote Librarian interface. I can
> open
> >existing collections and apparently create new collections. There
> are no
> >errors listed in /opt/greenstone/etc/error.txt and I'm not
> receiving any
> >Java errors. However, the error log for Apache2 reads as follows
> >
> >[Thu Sep 21 13:50:28 2006] [error] [client (address removed) ] script
> >not found or unable to stat:
> /opt/greenstone/cgi-bin/dictionary.class
> >[Thu Sep 21 13:50:28 2006] [error] [client (address removed)]
> script not
> >found or unable to stat: /opt/greenstone/cgi-bin/dictionary_en.class
> >[Thu Sep 21 13:50:28 2006] [error] [client (address removed)]
> script not
> >found or unable to stat:
> >/opt/greenstone/cgi-bin/dictionary_en.properties
> >[Thu Sep 21 13:50:28 2006] [error] [client (address removed)]
> script not
> >found or unable to stat:
> /opt/greenstone/cgi-bin/dictionary_en_US.class
> >[Thu Sep 21 13:50:28 2006] [error] [client (address removed)]
> script not
> >found or unable to stat:
> >/opt/greenstone/cgi-bin/dictionary_en_US.properties
> >[Thu Sep 21 13:50:29 2006] [error] [client (address removed)]
> script not
> >found or unable to stat:
> /opt/greenstone/cgi-bin/dictionary_en_NZ.class
> >[Thu Sep 21 13:50:29 2006] [error] [client (address removed)]
> script not
> >found or unable to stat:
> >/opt/greenstone/cgi-bin/dictionary_en_NZ.properties
> >[Thu Sep 21 13:50:55 2006] [error] [client (address removed)] File
> >/opt/greenstone/collect/modelcol/metadata does not exist!
> >[Thu Sep 21 13:50:55 2006] [error] [client (address removed)]
> >[Thu Sep 21 13:51:04 2006] [error] [client (address removed)]
> >util::mk_dir could not create directory
> >/opt/greenstone/collect/collectiontest
> >
> >
> >Here is the listing for /opt/greenstone/
> >
> >total 108
> >drwxr-xr-x 13 root root 4096 Sep 21 08:13 .
> >drwxr-xr-x 5 root root 4096 Sep 20 16:29 ..
> >-rw-r--r-- 1 root root 17976 May 31 23:36 COPYING
> >-rw-r--r-- 1 root root 8968 May 31 23:36 READMEen.txt
> >-rw-r--r-- 1 root root 93 Sep 21 08:15 VERSION
> >drwxr-xr-x 2 root root 4096 Sep 21 08:15 _uninst
> >drwxr-xr-x 6 root root 4096 Aug 2 09:59 bin
> >drwxr-xr-x 2 root root 4096 Sep 21 14:17 cgi-bin
> >drwxrwxrwx 5 root root 4096 Sep 21 14:17 collect
> >drwxr-xr-x 3 root root 4096 Aug 2 10:51 etc
> >drwxr-xr-x 9 root root 4096 Aug 2 10:50 gli
> >drwxr-xr-x 2 root root 4096 Aug 2 09:59 images
> >-rw-r--r-- 1 root root 1572 Aug 2 09:59 library.txt
> >-rw-r--r-- 1 root root 227 Sep 21 08:13 log.txt
> >drwxr-xr-x 2 root root 4096 Aug 2 09:59 macros
> >drwxr-xr-x 4 root root 4096 Aug 2 09:59 mappings
> >drwxr-xr-x 7 root root 4096 Aug 2 09:59 perllib
> >-rwxr-xr-x 1 root root 4479 May 31 23:38 setup.bash
> >-rwxr-xr-x 1 root root 741 May 31 23:38 setup.csh
> >drwxr-xr-x 2 root root 4096 Aug 2 09:59 tmp
> >
> >
> >Here is the listing for /opt/greenstone/cgi-bin/
> >
> >total 6220
> >drwxr-xr-x 2 root root 4096 Sep 21 14:17 .
> >drwxr-xr-x 13 root root 4096 Sep 21 08:13 ..
> >-rw-r--r-- 1 root root 210195 May 31 23:38 CGI.pm
> >-rw-r--r-- 1 root root 90 May 31 23:38 getior
> >-rwxr-xr-x 1 root root 27651 Sep 21 08:57 gliserver.pl
> >-rw-r--r-- 1 root root 5426 May 31 23:38 gsdlCGI.pm
> >-rw-r--r-- 1 root root 1032 May 31 23:38 gsdlsite.cfg
> >-rwxr-xr-x 1 root root 3794480 May 31 23:38 library
> >-rwxr-xr-x 1 root root 2273908 May 31 23:38 oaiserver
> >-rw-r--r-- 1 root root 3195 May 31 23:38 readresults.cgi
> >-rw-r--r-- 1 root root 3240 May 31 23:38 savereport.cgi
> >-rw-r--r-- 1 root root 1344 May 31 23:38 trackreport.cgi
> >-rw-r--r-- 1 root root 4031 May 31 23:38 usabcgi.pm
> <http://usabcgi.pm/>
> >
> >Here is the listing for /opt/greenstone/collect/
> >
> >total 24
> >drwxrwxrwx 5 root root 4096 Sep 21 14:17 .
> >drwxr-xr-x 13 root root 4096 Sep 21 08:13 ..
> >drwxrwxrwx 7 root root 4096 Aug 2 11:57 demo
> >drwxrwxrwx 9 root root 4096 Aug 2 09:59 modelcol
> >drwxrwxr-x 10 apache apache 4096 Sep 21 13:51 collectiontest
> >
> >Thanks for any help,
> >Tim
> >
> >Tim Ajax
> >Technology Department
> >Schreiner University
> >
> >_______________________________________________
> >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
> >
> >
> >
> >
>
>