[greenstone-users] OAI setup for data provider

From Katherine Don
DateSun Apr 12 15:03:59 2009
Subject [greenstone-users] OAI setup for data provider
In-Reply-To (OFA1120F51-4C474D41-ON85257593-00502B36-85257593-00513858-neu-edu)
Hi Martin

What validator are you using? I will try our server in that one if we
haven't already.

I have just tried your server in the http://re.cs.uct.ac.za/ validator. It
failed 3 tests:

(1) Testing : Identify
URL : http://129.10.107.247/gsdl/cgi-bin/oaiserver.exe?verb=Identify
------ Response from Xerces Schema Validation ------
[Error] re.Ic5e8t:17:217: cvc-complex-type.2.3: Element 'description'
cannot have character [children], because the type's content type is
element-only.
[Error] re.Ic5e8t:17:217: cvc-complex-type.2.4.b: The content of element
'description' is not complete. One of
'{WC[##other:"http://www.openarchives.org/OAI/2.0/"]}' is expected.
/tmp/re.Ic5e8t: 907;17;0 ms (12 elems, 4 attrs, 0 spaces, 434 chars)
------- End of Xerces Schema Validation Report -------
------ Start of XML Response ------
<?xml version="1.0" encoding="UTF-8" ?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<responseDate>2009-04-12T02:27:02Z</responseDate>
<request verb="Identify">
http://129.10.107.247/gsdl/cgi-bin/oaiserver.exe</request>
<Identify>
<repositoryName>Northeastern University Libraries Digital
Collections</repositoryName>
<baseURL>http://129.10.107.247/gsdl/cgi-bin/oaiserver.exe</baseURL>
<protocolVersion>2.0</protocolVersion>
<adminEmail>m.mehrling@neu.edu</adminEmail>
<earliestDatestamp>1970-01-01</earliestDatestamp>
<deletedRecord>no</deletedRecord>
<granularity>YYYY-MM-DD</granularity>
<description>Digitized collections mainly from the Archives and Special
Collections Department, relating to Northeastern University history and
the history of underrepresented communities in Boston. </description>[
ERROR 1 ][ ERROR 2 ]
</Identify>
</OAI-PMH>

------- End of XML Response -------
Test Result : FAIL!
**** [ERROR] XML Schema validation failed

The description element is not allowed character content, only other
elements. I think this is our code fault. Have you added a line like
oaiinfo description "blah blah" in oai.cfg?

(2) Testing : Identify (illegal_parameter)
URL :
http://129.10.107.247/gsdl/cgi-bin/oaiserver.exe?verb=Identify&test=test
------ Start of XML Response ------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Error Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<STYLE id=L_1460_1>A {
.....
------- End of XML Response -------
Test Result : FAIL!
**** [ERROR] Unexpected HTTP Error : 504 / Proxy Timeout ( This operation
returned because the timeout period expired. )

Looks like this has timed out. I tried it and gave up waiting for a
response too.

(40) Testing : ListIdentifiers (oai_dc, set)
URL :
http://129.10.107.247/gsdl/cgi-bin/oaiserver.exe?verb=ListIdentifiers&metadataPrefix=oai_dc&set=freedomh
------ Start of XML Response ------
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
m.mehrling@neu.edu and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

------- End of XML Response -------
Test Result : FAIL!
**** [ERROR] Unexpected HTTP Error : 500 / Internal Server Error

server error. But when I tried it, I got a valid answer.

Then I reran the validation and this one didn't fail this time.

Not sure what is going on. I see you are using windows. We have only
validated with a linux version. Not sure if that would make a difference
or not.

hmmm, not sure where to go from here, other than maybe giving you a new
oaiserver.exe compiled with the latest code and seeing if that helps.

I guess send me your oai.cfg, and let me know the validator you are using.

Regards,
Katherine

> Hi Katherine,
>
> I sort of have it working. I did upgrade to 2.81 after much
> troubleshooting didn't work. We have two Greenstone setups, test and
live
> versions. It validates in test, and in small collections in our live
setup. Sometimes large collections in the live environment validate,
and
> sometimes they don't. The error I get is,
>
> Checking for correct use of resumptionToken (if used)
> Request: GET
> http://129.10.107.247/gsdl/cgi-bin/oaiserver.exe?verb=ListRecords&metadataPrefix=oai_dc
[WARN] Bad HTTP status code from server: 500
> [FAIL] Can&apos;t parse malformed XML in response to ListRecords
request.
> Cannot complete test for correct use of resumptionToken (if used)
>
> I've tried different things, but the error is inconsistent. I've
removed
> records that I thought may be the problem, but if doesn't always
validate,
> sometimes it does. Any suggestions?
> One more detail which may help, we are using a non-standard metadata
set,
> and I'm mapping the fields to DC. I saw some things in the wiki that
I'm
> looking into, but most collections do validate with the mapping. Thank you,
> Martin
>
> ************************************
> Martin Mehrling
> Digital Systems Specialist
> m.mehrling@neu.edu
> 617.373.5885
> ========================
> 301 Snell Library
> Northeastern University
> Boston, Massachusetts 02115
>
>
>
>
>