<div dir="ltr"><div style="font-size:12.8000001907349px">Hello. I have a scenario consists of 8 GeoNode servers with their respective PyCSW assets.</div><div style="font-size:12.8000001907349px">To test, Getrecords use as:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><a href="http://localhost/catalogue/csw?request=GetRecords&service=CSW&version=2.0.2&resultType=results&outputSchema=http://www.isotc211.org/2005/gmd&typeNames=csw:Record&elementSetName=summary" target="_blank">http://localhost/catalogue/csw?request=GetRecords&service=CSW&version=2.0.2&resultType=results&outputSchema=http://www.isotc211.org/2005/gmd&typeNames=csw:Record&elementSetName=summary</a></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">and receive the corresponding xml correctly.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">You can also configure the harvest within the Geonetwork using:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">http: // localhost / catalog / csw version = 2.0.2 & request = GetCapabilities & service = CSW</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">and also the harvest runs properly.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I created a dedicated server with the default installation of PyCSW 1.10.0, and I'm trying to get this server collect all the metadata records of 8 servers GeoNode.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">My intention is to have a PyCSW to gather all the metadata of my organization. I'm avoiding using "federatedcatalogues" because I do not want the user who will rep csw need to specify additional parameters.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">In a first test, I used the command:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">pycsw-admin.py -c -u post_xml http: -x //localhost/pycsw/csw.py /var/www/html/pycsw/bin/request.xml</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">where request.xml =</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><? Xml version = "1.0" encoding = "UTF-8"?></div><div style="font-size:12.8000001907349px"><Harvest xmlns = "<a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a>" xmlns: ogc = "<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>" xmlns: gmd = "http: // www .<a href="http://isotc211.org/" target="_blank">isotc211.org</a> / 2005 / gmd "xmlns: ows =" <a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a> "xmlns: xsd ="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a> "xmlns: dc =" <a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a> "xmlns: dct =" <a href="http://purl.org/dc/terms/" target="_blank">http://purl.org/dc/terms/</a> "xmlns: gml =" <a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a> " xmlns: xsi = "<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi: schemaLocation = "<a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a> http: //schemas.opengis .net / csw / 2.0.2 / CSW-publication.xsd "service =" CSW "version =" 2.0.2 "></div><div style="font-size:12.8000001907349px">  <Source>http://<a href="http://demo.geonode.org//catalogue/csw" target="_blank">demo.geonode.org//catalogue/csw</a> </ Source></div><div style="font-size:12.8000001907349px">  <ResourceType> <a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a> </ ResourceType></div><div style="font-size:12.8000001907349px">  <ResourceFormat> application / xml </ ResourceFormat></div><div style="font-size:12.8000001907349px"></ Harvest></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">pointing to http://<a href="http://demo.geonode.org//catalogue/csw" target="_blank">demo.geonode.org//catalogue/csw</a> ..</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I get the following error:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><span class="im" style="font-size:12.8000001907349px"><div>Initializing static context</div><div>Executing HTTP POST request /var/www/html/pycsw/bin/request.xml on server http: //localhost/pycsw/csw.py</div></span><div style="font-size:12.8000001907349px">Traceback (most recent call last):</div><div style="font-size:12.8000001907349px">   File "/usr/bin/pycsw-admin.py", line 246, in <module></div><div style="font-size:12.8000001907349px">     print admin.post_xml (CSW_URL, XML, TIMEOUT)</div><div style="font-size:12.8000001907349px">   File "/usr/lib/python2.7/dist-packages/pycsw/admin.py", line 495, in post_xml</div><div style="font-size:12.8000001907349px">     raise RuntimeError (err)</div><div style="font-size:12.8000001907349px">RuntimeError: timed out</div></div><div style="font-size:12.8000001907349px">when I point to one of my GeoNode-PyCSW servers using request.xml as:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><? Xml version = "1.0" encoding = "UTF-8"?></div><div style="font-size:12.8000001907349px"><Harvest xmlns = "<a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a>" xmlns: ogc = "<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>" xmlns: gmd = "http: // www .<a href="http://isotc211.org/" target="_blank">isotc211.org</a> / 2005 / gmd "xmlns: ows =" <a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a> "xmlns: xsd ="<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a> "xmlns: dc =" <a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a> "xmlns: dct =" <a href="http://purl.org/dc/terms/" target="_blank">http://purl.org/dc/terms/</a> "xmlns: gml =" <a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a> " xmlns: xsi = "<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi: schemaLocation = "<a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a> http: //schemas.opengis .net / csw / 2.0.2 / CSW-publication.xsd "service =" CSW "version =" 2.0.2 "></div><div style="font-size:12.8000001907349px">  <Source> <a href="http://aguai.cnpm.embrapa.br/catalogue/csw" target="_blank">http://aguai.cnpm.embrapa.br/catalogue/csw</a> </ Source></div><div style="font-size:12.8000001907349px">  <ResourceType> <a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a> </ ResourceType></div><div style="font-size:12.8000001907349px">  <ResourceFormat> application / xml </ ResourceFormat></div><div style="font-size:12.8000001907349px"></ Harvest></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">pointing to my server: <a href="http://aguai.cnpm.embrapa.br/catalogue/csw" target="_blank">http://aguai.cnpm.embrapa.br/catalogue/csw</a></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I get the error:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Initializing static context</div><div style="font-size:12.8000001907349px">Executing HTTP POST request /var/www/html/pycsw/bin/request.xml on server http: //localhost/pycsw/csw.py</div><div style="font-size:12.8000001907349px"><? Xml version = "1.0" encoding = "UTF-8" standalone = "no"?></div><div style="font-size:12.8000001907349px"><! - Pycsw 1.10.0 -></div><div style="font-size:12.8000001907349px"><Ows: ExceptionReport xmlns: dc = "<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>" xmlns: inspire_common = "<a href="http://inspire.ec.europa.eu/schemas/common/1.0" target="_blank">http://inspire.ec.europa.eu/schemas/common/1.0</a>" xmlns: atom = "<a href="http://www.w3.org/2005/Atom" target="_blank">http://www.w3.org/2005/Atom</a>" xmlns: xs = "<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>" xmlns: dct = "<a href="http://purl.org/dc/" target="_blank">http://purl.org/dc/</a> terms / "xmlns: ows =" <a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a> "xmlns: apiso =" <a href="http://www.opengis.net/cat/csw/apiso/1.0" target="_blank">http://www.opengis.net/cat/csw/apiso/1.0</a> "xmlns: gml =" http: //<a href="http://www.opengis.net/gml" target="_blank">www.opengis.net/gml</a> "xmlns: diff ="<a href="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/" target="_blank">http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/</a> "xmlns: xlink =" <a href="http://www.w3.org/1999" target="_blank">http://www.w3.org/1999</a> / xlink "xmlns: gco =" <a href="http://www.isotc211.org/2005/gco" target="_blank">http://www.isotc211.org/2005/gco</a> "xmlns: gmd =" ​​<a href="http://www.isotc211.org/2005/gmd" target="_blank">http://www.isotc211.org/2005/gmd</a> "xmlns: rdf =" http: //<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#" target="_blank">www.w3.org/1999/02/22-rdf-syntax-ns#</a> "xmlns: srv =" <a href="http://www.isotc211.org/2005/srv" target="_blank">http://www.isotc211.org/2005/srv</a> "xmlns: ogc =" http: //www.opengis .net / ogc "xmlns: FGDC =" <a href="http://www.opengis.net/cat/csw/csdgm" target="_blank">http://www.opengis.net/cat/csw/csdgm</a> "xmlns: inspire_ds ="<a href="http://inspire.ec.europa.eu/schemas/inspire_ds/1.0" target="_blank">http://inspire.ec.europa.eu/schemas/inspire_ds/1.0</a> "xmlns : csw = "<a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a>" xmlns: xsi = "<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns: the = "http: //<a href="http://a9.com/-/spec/opensearch/1.1/" target="_blank">a9.com/-/spec/opensearch/1.1/</a> "xmlns: soapenv =" <a href="http://www.w3.org/2003/05/soap-envelope" target="_blank">http://www.w3.org/2003/05/soap-envelope</a> "xmlns: sitemap =" http: //www.sitemaps .org / schemas / sitemap / 0.9 "language =" en-US "version =" 1.2.0 "xsi: schemaLocation =" <a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a><a href="http://schemas.opengis.net/ows" target="_blank">http://schemas.opengis.net/ows</a> /1.0.0/owsExceptionReport.xsd"><ows:Exception ExceptionCode = "NoApplicableCode" locator = "source"> <ows: ExceptionText> Harvest (insert) failed: ERROR: null value in column "identifier" violates not-null constraint</div><div style="font-size:12.8000001907349px">DETAIL: Failing row contains (null, csw: Record, <a href="http://www.opengis.net/cat/csw/2.0.2" target="_blank">http://www.opengis.net/cat/csw/2.0.2</a>, local, 2015-06-19T15: 19: 28Z & lt; ows: ExceptionReport xmlns: dc = "<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>" ... Missing keyword: service, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, <a href="http://aguai.cnpm.embrapa.br/catalogue/csw" target="_blank">http://aguai.cnpm.embrapa.br/catalogue/csw</a>, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 'keyword': 2 'miss': 1' servic '3, null).</div><div style="font-size:12.8000001907349px">. </ Ows: ExceptionText> </ ows: Exception> </ ows: ExceptionReport></div><div style="font-size:12.8000001907349px">Done</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Can anyone help me explaining how to best implement it? And because of errors?</div><div><br></div>-- <br><div class="gmail_signature">Davi de O. Custódio</div>
</div>