From: Anupama of Greenstone Team
Date: Mon Nov 17 17:19:44 2008
Subject: [greenstone-users] gli-client 2.80 http error code=500

Hi,
It looks like both the errors you encountered through using the shell
and from using your browser are due to the same problem: the url does
not seem to be right or is not working for some reason.

This line in the shell's error output which you sent:
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToServerInternal(RemoteGreenstoneServer.java:1127)

refers to this line of source code:
InputStream gliserver\_is = gliserver\_connection.getInputStream();
This throws an exception because there is some problem with establishing
the connection to the server. (HTTP 500 errors are server errors.)

1. Might there be any typos in the URL you used? For instance, when I
set the browser to the base URL you used (http://192.168.1.253/),
nothing seems to load and I eventually get a Connection Failed:
Connection Timed Out (110) error.
2. Have you followed the instructions on the wiki page
http://wiki.greenstone.org/wiki/index.php/Remote\_Greenstone
3. If you had already done step 2, did you get a success message on
pointing your browser to
http://<your-machine-name>:<port>/gsdl/cgi-bin/gliserver.pl?cmd=check-installation
This is a very important step, and unless you get a success message
here, the rest will not work.

Please try out the above and tell us how you go.
Regards,
Anupama

>
> I join too the error message from the shell :
>
> -- Greenstone Librarian Interface (GLI)
> Copyright (C) 2006, New Zealand Digital Library Project, University Of
> Waikato
> GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
> This is free software, and you are welcome to redistribute it
>
> Checking Java: /usr/bin/java
>
> Running the Greenstone Librarian Interface...
> Version: 2.80
>
> Deleting user's local collect directory...
> Done.
> gliserver args:
> cmd=get-script-options&script=classinfo.pl&xml=&language=en&listall
> java.io.IOException: Server returned HTTP response code: 500 for URL:
>
http://192.168.1.253/cgi-bin/gliserver.pl?cmd=get-script-options&script=classinfo.pl&xml=&language=en&listall&un=admin&pw=catalog&ts=1226484010936
> at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1261)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToServerInternal(RemoteGreenstoneServer.java:1127)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToServer(RemoteGreenstoneServer.java:971)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.access$200(RemoteGreenstoneServer.java:56)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenstoneServerGetScriptOptionsAction.perform(RemoteGreenstoneServer.java:607)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenstoneServerActionQueue.run(RemoteGreenstoneServer.java:249)
> gliserver args:
> cmd=get-script-options&script=pluginfo.pl&xml=&language=en&listall
> java.io.IOException: Server returned HTTP response code: 500 for URL:
>
http://192.168.1.253/cgi-bin/gliserver.pl?cmd=get-script-options&script=pluginfo.pl&xml=&language=en&listall&un=admin&pw=catalog&ts=1226484020625
> at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1261)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToServerInternal(RemoteGreenstoneServer.java:1127)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.sendCommandToServer(RemoteGreenstoneServer.java:971)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.access$200(RemoteGreenstoneServer.java:56)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenstoneServerGetScriptOptionsAction.perform(RemoteGreenstoneServer.java:607)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenstoneServerActionQueue.run(RemoteGreenstoneServer.java:249)
> gliserver args: cmd=download-collection-configurations
> java.io.IOException: Server returned HTTP response code: 500 for URL:
> http://192.168.1.253/cgi-bin/gliserver.pl
> at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1261)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.downloadFileInternal(RemoteGreenstoneServer.java:1076)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.downloadFile(RemoteGreenstoneServer.java:928)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer.access$300(RemoteGreenstoneServer.java:56)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenstoneServerDownloadCollectionConfigurationsAction.perform(RemoteGreenstoneServer.java:509)
> at
>
org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenstoneServerActionQueue.run(RemoteGreenstoneServer.java:249)
> Error: Could not download collection configurations.
> Done!
>
>
>
> ------------------------------------------------------------------------
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users