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

From Anupama of Greenstone Team
DateWed Jul 14 13:40:10 2010
Subject FW: [greenstone-devel] FW: Urgent Help : GreenStone Library Interface
In-Reply-To (AANLkTim-2tHogOOu3Jo3oXfNSnt93RdKgjF2B-7j0-fU-mail-gmail-com)
Hi again Sreeja,

Did you already try the following on the Remote Greenstone page of the
Greenstone wiki
(http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone)?

It states:

IIS (Not recommended)
See this page
http://wiki.greenstone.org/wiki/index.php/Installing_Greenstone#How_do_I_use_Greenstone.27s_web_library_with_IIS.3F.

Then right-click on the "cgi-bin" folder, choose Properties, and click
Configuration. Add an extension for ".pl", specifying the Greenstone
"bin/windows/perl/bin/perl" binary as the executable, with arguments
"%s" %s.
IIS 6: Edit the Greenstone "cgi-bin/gliserver.pl" file and set the
"iis6_mode" option to "1".

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
>
>