FW: [greenstone-devel] FW: Urgent Help : GreenStone Library Interface

From s2008 g
DateTue Jul 20 10:35:07 2010
Subject FW: [greenstone-devel] FW: Urgent Help : GreenStone Library Interface
In-Reply-To (4C3AB1B4-8000708-cs-waikato-ac-nz)
Hello Anupama,

Some other things to try:

1. Could you see if visiting the following produces any useful information:
http://<your-machine-name>:<
>
> port>/greenstone/cgi-bin/gliserver.pl?cmd=check-installation<http://gliserver.pl/?cmd=check-installation>
>

*This is coming fine: "Installation OK"*

>
> where you would replace the <machine name> and <port> placeholders in the
> above with your remote machine's name and port where your server is
> listening.
>
> 2. If the above worked, try:
> http://<your-machine-name>:<port>/greenstone/cgi-bin/
> gliserver.pl?cmd=greenstone-server-version<http://gliserver.pl/?cmd=greenstone-server-version>
>
> *
This is coming fine: "Greenstone server version 2" *

> Does the browser page give you some kind of meaningful response?
>

Since both of the steps are giving the desired output...i didnt perform the
below operations.


>
> 3. *If step 1 and, consequently, step 2 did not work, then follow the
> steps below to open a DOS prompt, cd into your Greenstone installation
> folder and go to its cgi-bin folder. From there try running the
> gliserver.pl file on the command line to see whether it works in this
> manner:
>
> - Open a Windows DOS prompt (Start > Run, then type "cmd" in the little
> dialog)
>
> - type:
> cd <the full path to your greenstone installation>
> e.g. if your Greenstone is installed in C:\, then you would type:
> cd c:\greenstone
>
> - type the following to set the environment for Greenstone and have access
> to Perl to run the gliserver.pl script hereafter:
> setup.bat
>
> - Go into the cgi-bin folder:
> cd cgi-bin
>
> - Now to run the gliserver.pl script, type:
> perl -S gliserver.pl
>
> Does the output tell you something along the lines of No Command Specified?
> If so, then re-run the above with some testing commands:
>
> - perl -S gliserver.pl cmd=check-installation
>
> then:
> - perl -S gliserver.pl cmd=greenstone-server-version
>
> Do they give you some kind of informative answers?*
>
>
> Greenstone 2.83 comes with its own apache web server that runs on Windows,
> Linux and Mac. If you are having trouble with IIS, you could alternatively
> try using that.
>
*We have some critical sites running in IIS. So we cant switch over to
Apache.
Is there some definite reason why IIS is not recomended for greenstone.*


On Mon, Jul 12, 2010 at 11:39 AM, Anupama of Greenstone Team <
greenstone_team@cs.waikato.ac.nz> wrote:

> Hi Sreeja,
>
> I've not encountered this error before and I note that you are using IIS
> which is not something we test with, but I looked up the http 502
> error code and the occurrence of "CGI error" in the Greenstone mail
> archives. What I found follows. They may perhaps help you:
>
> a) http://www.checkupdown.com/status/E502.html
> "A server (not necessarily a Web server) is acting as a gateway or proxy
> to fulfil the request by the client (e.g. your Web browser or our
> CheckUpDown robot) to access the requested URL. This server received an
> invalid response from an upstream server it accessed to fulfil the request.
>
> This usually does not mean that the upstream server is down (no
> response to the gateway/proxy), but rather that the upstream server and
> the gateway/proxy do not agree on the protocol for exchanging data.
> Given that Internet protocols are quite clear, it often means that one
> or both machines have been incorrectly or incompletely programmed."
>
> b) And
>
> http://www.nzdl.org/gsdlmod?e=d-00000-00---off-0gsarch--00-0--0-10-0--0-0---0prompt-10---4------4-0-1l--11-en-50-0--20-about--100-0-1-00-0-0-11-1-0utfZz-8-00-0-1-00-0-0-11-1-0utfZz-8-00-0-0-11-1-0utfZz-8-00&a=d&c=gsarch&cl=CL1.4.80&d=HASH55079c50674f917d6aa57a_1081
> (which is part of
>
> http://www.nzdl.org/gsdlmod?e=d-00000-00---off-0gsarch--00-0--0-10-0--0-0---0prompt-10---4------4-0-1l--11-en-50-0--20-about--100-0-1-00-0-0-11-1-0utfZz-8-00-0-1-00-0-0-11-1-0utfZz-8-00&a=d&c=gsarch&cl=CL1.4.80
> )
>
> The initial link states:
> Some web servers expect cgi scripts to use "non-parsed headers" (such
> as "HTTP/1.0 200 Ok" for the http status code) while others expect
> scripts to return something like "Status: 200".
>
>
> Some other things to try:
>
> 1. Could you see if visiting the following produces any useful information:
> http://<your-machine-name>:<port>/greenstone/cgi-bin/
> gliserver.pl?cmd=check-installation
>
> where you would replace the <machine name> and <port> placeholders in the
> above with your remote machine's name and port where your server is
> listening.
>
> 2. If the above worked, try:
> http://<your-machine-name>:<port>/greenstone/cgi-bin/
> gliserver.pl?cmd=greenstone-server-version
>
> Does the browser page give you some kind of meaningful response?
>
> 3. If step 1 and, consequently, step 2 did not work, then follow the steps
> below to open a DOS prompt, cd into your Greenstone installation folder and
> go to its cgi-bin folder. From there try running the gliserver.pl file on
> the command line to see whether it works in this manner:
>
> - Open a Windows DOS prompt (Start > Run, then type "cmd" in the little
> dialog)
>
> - type:
> cd <the full path to your greenstone installation>
> e.g. if your Greenstone is installed in C:\, then you would type:
> cd c:\greenstone
>
> - type the following to set the environment for Greenstone and have access
> to Perl to run the gliserver.pl script hereafter:
> setup.bat
>
> - Go into the cgi-bin folder:
> cd cgi-bin
>
> - Now to run the gliserver.pl script, type:
> perl -S gliserver.pl
>
> Does the output tell you something along the lines of No Command Specified?
> If so, then re-run the above with some testing commands:
>
> - perl -S gliserver.pl cmd=check-installation
>
> then:
> - perl -S gliserver.pl cmd=greenstone-server-version
>
> Do they give you some kind of informative answers?
>
>
> Greenstone 2.83 comes with its own apache web server that runs on Windows,
> Linux and Mac. If you are having trouble with IIS, you could alternatively
> try using that.
>
> Regards,
> Anupama
>
> s2008 g wrote:
>
>> Hello Anupama,
>>
>> I'm getting an error while building a collection. I'm able to connect to
>> the server, Gather collection, enter metadata.But when i start building it
>> is giving the error
>> *Server returned HTTP response code: 502 for URL: http://<our
>> machine>/greenstone/cgi-bin/gliserver.pl <http://gliserver.pl> *
>>
>>
>> I'm working as client(GS 2.83).
>> SERVER SYSTEM : WIN 2003
>> IIS 6.
>>
>> GREENSTONE 2.83
>>
>> * http://<remote host machine name>:<remote Greenstone port
>> number>/greenstone/cgi-bin/library.cgi.
>> *I'm able to get this page.*
>> * http://<remote host machine name>:<remote Greenstone port
>> number>/greenstone/cgi-bin/gliserver.pl <http://gliserver.pl>
>>
>> *This is giving CGI error.The specified CGI application misbehaved
>> by not returning a complete set of HTTP headers.
>>
>> *Searched for this error in greenstone archives.But could not find
>> a proper answer.
>>
>> Any help will be appreciated.
>>
>> Thanks & Regards
>> Sreeja G*
>> *
>>
>>
>>
>> On Tue, Apr 20, 2010 at 10:19 AM, Anupama of Greenstone Team <
>> greenstone_team@cs.waikato.ac.nz <mailto:greenstone_team@cs.waikato.ac.nz>>
>> wrote:
>>
>> Hi Samveg,
>>
>> Usually when I get the "Connection timed out" exception when working
>> with the client-GLI, it tends to be because the server isn't running
>> (because it stopped, or I forgot to start it, or because it had
>> issues when trying to run).
>>
>> 1. Working from the client machine, Could you please first check
>> that the server is in fact running by using your browser to visit
>> your remote Greenstone server's URL:
>>
>> Assuming you are working with Greenstone 2, try visiting the page:
>> http://<remote host machine name>:<remote Greenstone port
>> number>/greenstone/cgi-bin/library.cgi
>>
>> Make sure that you're not typing in "localhost" for the remote host
>> machine name that is running your Greenstone server.
>>
>> 2. If the server is in fact running there, then could you
>> double-check that the gliserver.pl <http://gliserver.pl> URL you
>>
>> enter on starting up client-GLI matches? It has to be of a similar
>> form to above:
>>
>> http://<remote host machine name>:<remote Greenstone port
>> number>/greenstone/cgi-bin/gliserver.pl <http://gliserver.pl>
>>
>>
>>
>> I can't easily diagnose the issue further until I know that step 1
>> is working. If the server is not in fact running, start it up again
>> on the remote machine. And then, on the *client* machine, test the
>> server URL once more through a browser. (If that doesn't work,
>> perhaps your remote server was not made accessible to external
>> computers?)
>>
>> Please write back on what works or what doesn't work in the steps
>> described above, I think it will help in narrowing down the cause.
>>
>> Regards,
>> Anu
>>
>>
>> Samveg Joshi wrote:
>>
>> Hi Anupama,
>>
>> Require your help on one of the issues which we are facing.
>>
>> The current Issue is the Remote GLI is not working from the
>> Client machine.
>> We have tried running Client-gli.bat from the command prompt.
>>
>> When we run Client-GLI it asks for User Id and Password, Now
>> when we provide
>> the User Id and Password it gives us a connection refused message.
>>
>> Please help us onto this, We would need this to create an
>> authentication for
>> the Users so that after logging in they can directly upload the
>> documents in
>> the collections from their machines.
>>
>> Please see the error message below for the details of the error,
>> this error
>> comes in the command prompt after we enter the User Id and
>> Password.
>>
>>
>> gliserver args: cmd=greenstone-server-version
>> java.net.ConnectException: Connection timed out: connect
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(Unknown Source)
>> at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
>> at java.net.PlainSocketImpl.connect(Unknown Source)
>> at java.net.SocksSocketImpl.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at java.net.Socket.connect(Unknown Source)
>> at sun.net.NetworkClient.doConnect(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.openServer(Unknown Source)
>> at sun.net.www.http.HttpClient.<init>(Unknown Source)
>> at sun.net.www.http.HttpClient.New(Unknown Source)
>> at sun.net.www.http.HttpClient.New(Unknown Source)
>> at
>>
>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
>> Sour
>> ce)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
>> Source)
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
>> So
>> urce)
>> at
>>
>> org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToSe
>> rverInternal(RemoteGreenstoneServer.java:658)
>> at
>>
>> org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToSe
>> rver(RemoteGreenstoneServer.java:493)
>> at
>>
>> org.greenstone.gatherer.remote.RemoteGreenstoneServerAction$VersionAc
>> tion.perform(RemoteGreenstoneServerAction.java:272)
>> at
>>
>> org.greenstone.gatherer.remote.ActionQueue.run(ActionQueue.java:136)
>> java.lang.NumberFormatException: For input string: ""
>> at java.lang.NumberFormatException.forInputString(Unknown
>> Source)
>> at java.lang.Integer.parseInt(Unknown Source)
>> at java.lang.Integer.parseInt(Unknown Source)
>> at
>>
>> org.greenstone.gatherer.remote.RemoteGreenstoneServer.getGreenstoneVe
>> rsion(RemoteGreenstoneServer.java:197)
>> at org.greenstone.gatherer.Gatherer.init(Gatherer.java:333)
>> at
>> org.greenstone.gatherer.Gatherer.<init>(Gatherer.java:231)
>> at
>> org.greenstone.gatherer.GathererProg.main(GathererProg.java:78)
>>
>>
>>
>> Thanks
>> Samveg
>>
>> -----Original Message-----
>> From: Anupama of Greenstone Team
>> [mailto:greenstone_team@cs.waikato.ac.nz
>> <mailto:greenstone_team@cs.waikato.ac.nz>] Sent: 16 March 2010
>> 07:13
>> To: Samveg Joshi
>> Subject: Re: [greenstone-devel] FW: Urgent Help : GreenStone
>> Library
>> Interface
>>
>> This is related to e-mail I just sent (please read that hereafter):
>> The instructions in that e-mail are for Greenstone version 2.83.
>>
>> Regards,
>> Anupama
>>
>>
>> Samveg Joshi wrote:
>>
>> Hi Anupama,
>>
>> I tried running all the Steps as mentioned below but I am
>> Stuck up with
>>
>> Step
>>
>> 4
>>
>> http://localhost/greenstone/cgi-bin/library.cgi doesn't work
>> directly on
>>
>> my
>>
>> machine, so every time I need to go to command prompt and
>> run the command
>> gli.bat.
>>
>> Also wanted your advice on couple of questions below,
>>
>> 1) While accessing my machine from the Client machine, How
>> can I change
>>
>> the
>>
>> Local host to the IP Address of my machine?
>> 2) How can I enable http://servermachineIP to be accessed
>> from the client
>> machine.
>>
>> Thank you so much for all the help.
>>
>> Thanks
>> Samveg
>> +65-82607622
>>
>> -----Original Message-----
>> From: Anupama of Greenstone Team
>> [mailto:greenstone_team@cs.waikato.ac.nz
>> <mailto:greenstone_team@cs.waikato.ac.nz>]
>>
>>
>> Sent: 15 March 2010 08:19
>> To: Samveg Joshi; greenstone-devel@list.scms.waikato.ac.nz
>> <mailto:greenstone-devel@list.scms.waikato.ac.nz>
>> Subject: Re: [greenstone-devel] FW: Urgent Help : GreenStone
>> Library
>> Interface
>>
>> Hi Samveg,
>>
>> Have you already been through the instructions at:
>> http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone
>>
>> If not, and you've installed Greenstone 2.83 from binary on
>> a Windows machine (hopefully XP or Vista since I've not
>> tested any of this on Windows 7):
>> I'll present just the steps you need to follow here, it
>> should be less convoluted than the wiki page above (since
>> that has to take older versions of Greenstone and special
>> cases into account).
>>
>> And I'd like you to write back to tell me AT WHICH STEPS
>> things fail for you.
>>
>> 1. If the path to your Greenstone installation contains any
>> spaces (i.e. if any of the containing folders wherein your
>> Greenstone is ultimately located contain spaces in their
>> names), please open cgi-bin/gsdlsite.cfg in a plain text
>> editor and make sure that thevalue for GSDLHOME line
>> contains quotes around it. E.g.
>>
>> gsdlhome "C:\Program Files\Greenstone2"
>>
>> Save any changes.
>>
>>
>> 2. Rename server.exe in your Greenstone installation folder
>> to something else, say _server.exe
>>
>> This is because you will need to use the included Apache web
>> server for the remote Greenstone. By renaming the default
>> library server in Greenstone 2, Greenstone will next look
>> for the apache web server.
>>
>>
>>
>> 3. Now run the Apache web server included with your
>> Greenstone, by opening a DOS prompt and typing the path to
>> your Greenstone 2 installation and then running the
>> gs2-server script:
>>
>> e.g.
>> - cd C:\Program Files\Greenstone2
>> - gs2-server.bat
>>
>>
>> Alternatively, you could use Windows Explorer to locate the
>> gs2-server.bat file in your Greenstone2 installation folder
>> and double click that file.
>>
>>
>> 4. A dialog (the Greenstone Server Interface) will display.
>> Press its central Enter Library button.
>>
>> It will open a browser and take you to a page like:
>> http://localhost/greenstone/cgi-bin/library.cgi
>>
>> (OR:
>> http://
>> <YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/library.cgi
>> where if port were the default 80 it won't be displayed, e.g.
>> http://
>> <YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/library.cgi)
>>
>>
>> 5. Replace the "library.cgi" part of the URL in the browser
>> to "gliserver.pl?cmd=check-installation
>> <http://gliserver.pl?cmd=check-installation>":
>>
>> E.g.
>>
>> http://localhost/greenstone/cgi-bin/gliserver.pl?cmd=check-installation
>> (OR:
>>
>> http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/
>> gliserver.pl?cmd=chec
>> <http://gliserver.pl?cmd=chec>
>>
>>
>> k-installation)
>>
>> At the end of the browser page, it is imperative that it
>> says something like:
>> "Installation OK!"
>>
>>
>> 6. Once again, open a DOS prompt. Type the following, but
>> make sure to type the path to *your* Greenstone2
>> installation (the example below uses C:\Program
>> Files\Greenstone2\collect):
>>
>> cacls "C:\Program Files\Greenstone2\collect" /P Everyone:F
>>
>>
>> 7. Use the browser to go to your Greenstone home web page
>> again.
>>
>> - Now click on the Administration Page link and add a new user:
>> - Click the Add a New User link to the left
>> - You'll be requested for the admin username (type "admin")
>> and password
>>
>>
>> 8. Enter the username and password for the new user.
>> In the Groups field, type "personal-collections-editor".
>> Press the Submit button.
>>
>>
>> 9. Open a new DOS prompt. Either in this or another machine
>> (assuming you want the Greenstone server on one machine and
>> the client on another), g to the gli folder of your
>> Greenstone 2 installation, and run client-gli.bat:
>>
>> e.g.
>> - cd C:\Program Files\Greenstone2\gli
>> - client-gli.bat
>>
>>
>> 10. A dialog will eventually appear asking you for the URL
>> of the Remote Greenstone server's gliserver.pl
>> <http://gliserver.pl> file.
>>
>>
>> If your client-gli is running from a different machine to
>> where your Greenstone server is running, you need to specify
>> the name of that remote machine hosting the Greenstone server:
>> http://<YOUR-MACHINE-NAME:YOURPORT>/greenstone/cgi-bin/
>> gliserver.pl
>> <http://gliserver.pl>
>>
>>
>> If the client-gli is running on the same machine, you can
>> generally type "localhost":
>> http://localhost/greenstone/cgi-bin/gliserver.pl
>>
>>
>> 11. It will next ask you for a username and password. Type
>> the values you entered for the new user you creatred in step 8.
>>
>>
>> 12. The client-GLI dialog should finally open and look the
>> same as the usual (local) GLI.
>>
>>
>> Please write back at which step above, if any, things cease
>> to work for you.
>>
>> Regards,
>> Anupama
>>
>> Samveg Joshi wrote:
>>
>> Hi Team,
>>
>> I tried running client-gli.bat through the
>> command
>> prompt but was not able to open the Remote Client
>> Interface.
>>
>> Please see the error message which I am
>> getting,
>>
>> Please help me with this as I have been
>> trying to sort
>> it out from the past 3 days,
>>
>> Thanks
>>
>> Samveg
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> greenstone-devel mailing list
>> greenstone-devel@list.scms.waikato.ac.nz
>> <mailto:greenstone-devel@list.scms.waikato.ac.nz>
>>
>>
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> greenstone-devel mailing list
>> greenstone-devel@list.scms.waikato.ac.nz
>> <mailto:greenstone-devel@list.scms.waikato.ac.nz>
>>
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://list.scms.waikato.ac.nz/mailman/private/greenstone-devel/attachments/20100712/e075714d/attachment-0001.html