Re: [greenstone-users] Create, Build, Access Collection Remotely - Not Working

From Curtis Von Lintel
DateWed, 11 Jul 2007 09:42:01 -0500
Subject Re: [greenstone-users] Create, Build, Access Collection Remotely - Not Working
In-Reply-To (4692A9C5-7030404-cs-waikato-ac-nz)
We are using the updated gliserver.pl. Running the client in debug mode show nothing revealing just "Waiting for action to complete...". If we try to open a collection we get error: "An error has occurred on the remote Greenstone server while performing this operation: Server returned HTTP response code: 502 for URL: http://ourserver/gsdl/cgi-bin/gliserver.pl". Below is some of the output from the debug console:

gliserver URL: http://ourserver/gsdl/cgi-bin/gliserver.pl
gliserver args: cmd=get-script-options&script=classinfo.pl&xml=&language=en&list
all
Waiting for action to complete...
In loadPluginsList()...
Getting options for pluginfo.pl...
gliserver URL: http://ouserver/gsdl/cgi-bin/gliserver.pl
gliserver args: cmd=get-script-options&script=pluginfo.pl&xml=&language=en&lista
ll
Waiting for action to complete...
Waiting for action to complete...
SAX exception: The element type "POD_DIAG" must be terminated by the matching en
d-tag "</POD_DIAG>".
org.xml.sax.SAXParseException: The element type "POD_DIAG" must be terminated by
 the matching end-tag "</POD_DIAG>".
        at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196
)
        at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:635)
        at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumen
tScanner.java:684)
        at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1192)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
        at org.greenstone.gatherer.util.XMLTools.parseXML(XMLTools.java:170)
        at org.greenstone.gatherer.greenstone.Plugins.parsePluginsListXML(Plugin
s.java:303)
        at org.greenstone.gatherer.greenstone.Plugins.loadPluginsList(Plugins.ja
va:233)
        at org.greenstone.gatherer.Gatherer.init(Gatherer.java:404)
        at org.greenstone.gatherer.Gatherer.<init>(Gatherer.java:183)
        at org.greenstone.gatherer.GathererProg.main(GathererProg.java:79)
java.lang.NullPointerException
        at org.greenstone.gatherer.greenstone.Plugins.parsePluginsListXML(Plugin
s.java:304)
        at org.greenstone.gatherer.greenstone.Plugins.loadPluginsList(Plugins.ja
va:233)
        at org.greenstone.gatherer.Gatherer.init(Gatherer.java:404)
        at org.greenstone.gatherer.Gatherer.<init>(Gatherer.java:183)
        at org.greenstone.gatherer.GathererProg.main(GathererProg.java:79)
Unmapping ABS_ROOT...
Insert Documents in Greenstone Collections in ABS_ROOT at index 0 [Model: FileSy
stemModel]
Insert Local Filespace in ABS_ROOT at index 1 [Model: FileSystemModel]
Property os.name: Windows XP
Insert Home Folder (curtis.vonlintel) in ABS_ROOT at index 2 [Model: FileSystemM
odel]
BaseConfigPane: Main GUI components created.
BaseConfigPane: Main GUI components created.
Downloading collection configurations...
Waiting for action to complete...
gliserver URL: http://ourserver/gsdl/cgi-bin/gliserver.pl
gliserver args: cmd=download-collection-configurations
Loading collection C:Documents and Settingscurtis.vonlintelApplication DataG
reenstoneGLIcollectwashburnwashburn.col...
Downloading remote collection washburn...
gliserver URL: http://ourserver/gsdl/cgi-bin/gliserver.pl
gliserver args: cmd=download-collection&c=washburn
Waiting for action to complete...
java.io.IOException: Server returned HTTP response code: 502 for URL: http://ourserver/gsdl/cgi-bin/gliserver.pl
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer.downloadFileInt
ernal(RemoteGreenstoneServer.java:1001)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer.downloadFile(Re
moteGreenstoneServer.java:857)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer.access$300(Remo
teGreenstoneServer.java:46)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenston
eServerDownloadCollectionAction.perform(RemoteGreenstoneServer.java:421)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenston
eServerActionQueue.run(RemoteGreenstoneServer.java:229)

If we try to create a collection the last couple of lines from debug console before the eventual timeout is:

Waiting for action to complete...
gliserver URL: http://ourserver/gsdl/cgi-bin/gliserver.pl
gliserver args: cmd=upload-collection-file&c=anothert&file=anothert-118416395859
8.zip&directory=&zip=true

The error reported is:

An error has occurred on the remote Greenstone server while performing this operation: Server returned HTTP response code: 502 for URL: http://ourserver/gsdl/cgi-bin/gliserver.pl

output from debug console:
Waiting for action to complete...
java.io.IOException: Server returned HTTP response code: 502 for URL: http://ourserver/gsdl/cgi-bin/gliserver.pl
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer.uploadFileInter
nal(RemoteGreenstoneServer.java:1119)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer.uploadFile(Remo
teGreenstoneServer.java:944)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer.access$400(Remo
teGreenstoneServer.java:46)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenston
eServerUploadCollectionFilesAction.perform(RemoteGreenstoneServer.java:716)
        at org.greenstone.gatherer.remote.RemoteGreenstoneServer$RemoteGreenston
eServerActionQueue.run(RemoteGreenstoneServer.java:229)
Waiting for action to complete...

The directories on the server in the collect directory are created:
archives
building
etc
images
import
index
macros
perlib
a 24kb zip file
gli.lck

Only the etc directory which contains the collect.cfg and macros folder which contains extra.dm have any files in them.

At this point the gli client will not close or stop/cancel. We must kill the console to exit the program.

>From the httperr log from IIS6:
2007-07-11 14:33:12 xxx.xxx.xxx.xxx 3946 xxx.xxx.xxx.xxx 80 - - - - - Timer_ConnectionIdle -
2007-07-11 14:34:32 xxx.xxx.xxx.xxx 3999 xxx.xxx.xxx.xxx 80 HTTP/1.1 POST /gsdl/cgi-bin/gliserver.pl - 782716 Connection_Dropped

>From the IIS6 weblog:

2007-07-11 14:18:59 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=get-script-options&script=classinfo.pl&xml=&language=en&listall&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 5719 334 265
2007-07-11 14:19:00 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=get-script-options&script=pluginfo.pl&xml=&language=en&listall&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 26075 333 671
2007-07-11 14:19:19 W3SVC782716 WEB1 xxx.xxx.xxx.xxx POST /gsdl/cgi-bin/gliserver.pl - 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 4536 327 187
2007-07-11 14:19:47 W3SVC782716 WEB1 xxx.xxx.xxx.xxx POST /gsdl/cgi-bin/gliserver.pl - 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 502 2 87 393 323 234
2007-07-11 14:25:42 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=get-script-options&script=classinfo.pl&xml=&language=en&listall&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 5719 334 249
2007-07-11 14:25:42 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=get-script-options&script=pluginfo.pl&xml=&language=en&listall&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 26075 333 671
2007-07-11 14:25:46 W3SVC782716 WEB1 xxx.xxx.xxx.xxx POST /gsdl/cgi-bin/gliserver.pl - 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 4536 327 171
2007-07-11 14:25:59 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=run-script&c=anothert&script=mkcol.pl&language=en&win31compat=false&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 334 338 203
2007-07-11 14:25:59 W3SVC782716 WEB1 xxx.xxx.xxx.xxx POST /gsdl/cgi-bin/gliserver.pl - 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 1039 323 187
2007-07-11 14:25:59 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=new-collection-directory&c=anothert&directory=import&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 250 323 78
2007-07-11 14:26:00 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=get-script-options&script=buildcol.pl&xml=&language=en&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 6901 325 374
2007-07-11 14:26:00 W3SVC782716 WEB1 xxx.xxx.xxx.xxx GET /gsdl/cgi-bin/gliserver.pl cmd=get-script-options&script=import.pl&xml=&language=en&un=curtis.vonlintel&pw=password 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 200 0 0 7904 323 312
2007-07-11 14:31:02 W3SVC782716 WEB1 xxx.xxx.xxx.xxx POST /gsdl/cgi-bin/gliserver.pl - 80 - xxx.xxx.xxx.xxx HTTP/1.1 Java/1.5.0_08 - - ourserver 502 1 233 438 27715 300681


Any ideas?

Thanks
Curtis


Michael Dewsnip wrote:
Hi,

Please check you're using the updated version of gliserver.pl from
http://vulcan.nz.dlconsulting.com/~michael/gliserver.pl and you've
followed all the instructions on the wiki page. Then follow the
instructions in the "Troubleshooting" section.

Regards,

Michael



Jewel Makda wrote:
  
We are running a Windows 2003 Server with IIS 6.0 and have followed
instructions on install and setup properly. When we run the Library
Interface applet remotely and we cannot open, create, or build a
collection. When trying to open an existing collection we receive the
following error. The error isn't immediate, it's after a few moments.

An error has occurred on the remote Greenstone server while performing
this operation: Server returned HTTP response code: 502 for URL:
http://<our machine>/gsdl/cgi-bin/gliserver.pl

We have checked permissions - but could have missed something.
It will work running the Library Interface locally on the server.  We
are able to build a collection but when trying to access it remotely,
we do not see it.  Also, the following tabs are disabled: Gather,
Enrich, Design, and Create in the Library Interface.

Thanks,