<div dir="ltr"><div>Oh. I'm sorry, I put the wrong url, where I talk about the first harvest test:</div><div><br></div><div>http: // http: //<a href="http://demo.geonode.org//catalogue/csw">demo.geonode.org//catalogue/csw</a></div><div><br></div><div>which actually is:</div><div><br></div><div><a href="http://demo.geonode.org//catalogue/csw">http://demo.geonode.org//catalogue/csw</a></div><div><br></div><div>.. And the error returned is:</div><div><br></div><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><div>Traceback (most recent call last):</div><div> File "/usr/bin/pycsw-admin.py", line 246, in <module></div><div> print admin.post_xml (CSW_URL, XML, TIMEOUT)</div><div> File "/usr/lib/python2.7/dist-packages/pycsw/admin.py", line 495, in post_xml</div><div> raise RuntimeError (err)</div><div>RuntimeError: timed out</div><div><br></div><div><br></div><div>Thank you.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 3:22 PM, Davi Custodio <span dir="ltr"><<a href="mailto:davicustodio@gmail.com" target="_blank">davicustodio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello. I have a scenario consists of 8 GeoNode servers with their respective PyCSW assets.</div><div>To test, Getrecords use as:</div><div><br></div><div><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><br></div><div>and receive the corresponding xml correctly.</div><div><br></div><div>You can also configure the harvest within the Geonetwork using:</div><div><br></div><div>http: // localhost / catalog / csw version = 2.0.2 & request = GetCapabilities & service = CSW</div><div><br></div><div>and also the harvest runs properly.</div><div><br></div><div>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><br></div><div>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><br></div><div>In a first test, I used the command:</div><div><br></div><div>pycsw-admin.py -c -u post_xml http: -x //localhost/pycsw/csw.py /var/www/html/pycsw/bin/request.xml</div><div><br></div><div>where request.xml =</div><div><br></div><div><? Xml version = "1.0" encoding = "UTF-8"?></div><div><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> <Source> http: // http: //<a href="http://demo.geonode.org//catalogue/csw" target="_blank">demo.geonode.org//catalogue/csw</a> </ Source></div><div> <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> <ResourceFormat> application / xml </ ResourceFormat></div><div></ Harvest></div><div><br></div><div>pointing to http: // http: //<a href="http://demo.geonode.org//catalogue/csw" target="_blank">demo.geonode.org//catalogue/csw</a> ..</div><div><br></div><div>I get the following error:</div><div><br></div><div><? Xml version = "1.0" encoding = "UTF-8" standalone = "no"?></div><div><! - Pycsw 1.10.0 -></div><div><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 = "service"> <ows: ExceptionText> Exception: the document is not valid.</div><div>Error: Element '{<a href="http://www.opengis.net/cat/csw/2.0.2%7DSource" target="_blank">http://www.opengis.net/cat/csw/2.0.2}Source</a>': 'http: // http: //<a href="http://demo.geonode.org//catalogue/csw" target="_blank">demo.geonode.org//catalogue/csw</a>' is not a valid value of the atomic type. 'xs: anyURI' </ ows: ExceptionText> </ ows: Exception> </ ows: ExceptionReport></div><div>Done</div><div><br></div><div>when I point to one of my GeoNode-PyCSW servers using request.xml as:</div><div><br></div><div><? Xml version = "1.0" encoding = "UTF-8"?></div><div><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> <Source> <a href="http://aguai.cnpm.embrapa.br/catalogue/csw" target="_blank">http://aguai.cnpm.embrapa.br/catalogue/csw</a> </ Source></div><div> <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> <ResourceFormat> application / xml </ ResourceFormat></div><div></ Harvest></div><div><br></div><div>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><br></div><div>I get the error:</div><div><br></div><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><div><? Xml version = "1.0" encoding = "UTF-8" standalone = "no"?></div><div><! - Pycsw 1.10.0 -></div><div><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>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>. </ Ows: ExceptionText> </ ows: Exception> </ ows: ExceptionReport></div><div>Done</div><div><br></div><div><br></div><div>Can anyone help me explaining how to best implement it? And because of errors?</div></div><span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div>Davi de O. Custódio</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Davi de O. Custódio</div>
</div>