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

From Samveg Joshi
DateTue Apr 27 16:07:16 2010
Subject [greenstone-users] RE: FW: [greenstone-devel] FW: Urgent Help : GreenStone Library Interface
Hi Anupama,

The URL works with the Host Name both from the Client Machine and the Server
Machine ,but when we type the Complete URL containing Library.cgi or
gliserver.pl, it doesn't work.

Please let us know if we can have a conference call with you to discuss
about the issue, also let us know your convenient timings for the same.

Thanks

Samveg Joshi

S P Jain Center of Management

10 Hyderabad Road

Singapore -119 579

Contact +65 82607622

Email: samveg.gnov09@spjain.org

Website: www.spjain.org

-----Original Message-----
From: Anupama of Greenstone Team [mailto:greenstone_team@cs.waikato.ac.nz]
Sent: 20 April 2010 10:20
To: Samveg Joshi; greenstone-devel@list.scms.waikato.ac.nz;
greenstone-users@list.scms.waikato.ac.nz
Subject: Re: FW: [greenstone-devel] FW: Urgent Help : GreenStone Library
Interface

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

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]


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

>

>> Sent: 15 March 2010 08:19

>> To: Samveg Joshi; 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 FilesGreenstone2"

>>

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

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

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

>> 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 FilesGreenstone2collect):

>>

>> cacls "C:Program FilesGreenstone2collect" /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 FilesGreenstone2gli

>> - client-gli.bat

>>

>>

>> 10. A dialog will eventually appear asking you for the URL of the Remote

>> Greenstone server's 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

>>

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

>>> 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-users/attachments/20100425/c4a37f36/attachment-0001.html