[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
------ 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
[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/"
<request verb="Identify"></request>
<repositoryName>Northeastern University Libraries Digital
<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 ]

------- 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)
------ 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)
------ Start of XML Response ------
<title>500 Internal Server Error</title>
<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>

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


> 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
> versions. It validates in test, and in small collections in our live
setup. Sometimes large collections in the live environment validate,
> sometimes they don't. The error I get is,
> Checking for correct use of resumptionToken (if used)
> Request: GET
[WARN] Bad HTTP status code from server: 500
> [FAIL] Can&apos;t parse malformed XML in response to ListRecords
> Cannot complete test for correct use of resumptionToken (if used)
> I've tried different things, but the error is inconsistent. I've
> records that I thought may be the problem, but if doesn't always
> sometimes it does. Any suggestions?
> One more detail which may help, we are using a non-standard metadata
> and I'm mapping the fields to DC. I saw some things in the wiki that
> 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