[GeoNetwork-users] Relocated geonetwork data directory - Error 'Exceeded maximum number of plugin schemas 20'

Dear Users and Developers,

I am using the stable 2.8.0 ANZMEST version of Geonetwork (similar to GN
2.8.0 with ANZMEST schema additions). Initially I had the geonetwork data
directory in the default location geonetwork/WEB-INF/data and all was fine
i.e I was adding/changing metadata and working OK.

Today I decided I should, as recommended, put the data directory into an
independant place to make it easier to do upgrades. So I set
-Dgeonetwork.dir=/home/awalsh/geonetwork_data for the java command
in start_geonetwork.sh and I copied all contents geonetwork/WEB-INF/data
to the new location /home/awalsh/geonetwork_data.

I then restart geonetwork, it detects the new data dir. location OK but startup fails
with message:

ERROR [geonetwork.schemamanager] - Failed whilst adding the schema information.
Exception message if any is Exceeded maximum number of plugin schemas 20

Below is an excerpt from my geonetwork log (from startup to fail point):

2013-06-11 11:09:32,727 INFO [jeeves] - Overrides being applied to configuration file: .*WEB-INF/config\.xml
2013-06-11 11:09:32,734 INFO [jeeves] - Replacing attribute value of node appHandler/param[@name='preferredSchema']
2013-06-11 11:09:32,735 DEBUG [jeeves] - New attribute is:iso19139.anzlic
2013-06-11 11:09:32,739 DEBUG [jeeves] - Updating attibute of node /geonet/appHandler/param[6]
2013-06-11 11:09:32,743 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:32,761 DEBUG [jeeves] - Elements added are:<toAdd>
  <include>config-metadata-schemaplugins.xml</include>
</toAdd>
2013-06-11 11:09:32,761 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:32,761 INFO [jeeves] - Adding xml elements to default/gui
2013-06-11 11:09:32,762 DEBUG [jeeves] - Elements added are:<toAdd>
  <xml name="ccjurisdictions" file="xml/creativecommons/jurisdictionSelectOptions" />
  <xml name="dcjurisdictions" file="xml/datacommons/jurisdictionSelectOptions" />
</toAdd>
2013-06-11 11:09:32,763 DEBUG [jeeves] - Adding xml to /geonet/default/gui
2013-06-11 11:09:32,768 INFO [jeeves] - Replacing attribute value of node services/service[@name='main.search.suggest']/param[@name='threshold']
2013-06-11 11:09:32,768 DEBUG [jeeves] - New attribute is:1
2013-06-11 11:09:36,376 INFO [jeeves] - Overrides being applied to configuration file: .*WEB-INF/user-profiles\.xml
2013-06-11 11:09:36,377 INFO [jeeves] - Adding xml elements to profile[@name='Editor']
2013-06-11 11:09:36,377 DEBUG [jeeves] - Elements added are:<toAdd>
  <allow service="metadata.creativecommons.form" />
  <allow service="metadata.creativecommons.set" />
  <allow service="metadata.datacommons.form" />
  <allow service="metadata.datacommons.set" />
</toAdd>
2013-06-11 11:09:36,378 DEBUG [jeeves] - Adding xml to /profiles/profile[4]
2013-06-11 11:09:36,379 INFO [jeeves] - Adding xml elements to profile[@name='Guest']
2013-06-11 11:09:36,380 DEBUG [jeeves] - Elements added are:<toAdd>
  <allow service="prepare.taxon.search" />
  <allow service="xml.forward.taxonsearch" />
  <allow service="portal.search.credits" />
  <allow service="portal.search.dataparams" />
  <allow service="portal.search.taxonNames" />
  <allow service="portal.summary.keywords" />
  <allow service="portal.summary.longParamNames" />
  <allow service="portal.summary.organisations" />
  <allow service="xml_anzmeta" />
  <allow service="xml_anzmetaTorifcs" />
  <allow service="xml_anzmetaToiso19139.anzlic" />
  <allow service="xml_anzmetaTooai_dc" />
  <allow service="xml_eml-gbif" />
  <allow service="xml_eml-gbifTorifcs" />
  <allow service="xml_iso19135" />
  <allow service="xml_iso19135ToSKOS" />
  <allow service="xml_iso19135Tooai_dc" />
  <allow service="xml_iso19139.anzlic" />
  <allow service="xml_iso19139.anzlicTorifcs" />
  <allow service="xml_iso19139.anzlicTooai_dc" />
  <allow service="xml_iso19139.mcp" />
  <allow service="xml_iso19139.mcpTorifcs" />
  <allow service="xml_iso19139.mcpTooai_dc" />
  <allow service="xml_iso19139.mcp-1.4" />
  <allow service="xml_iso19139.mcp-1.4Torifcs" />
  <allow service="xml_iso19139.mcp-1.4Tooai_dc" />
  <allow service="xml_iso19139Torifcs" />
</toAdd>
2013-06-11 11:09:36,382 DEBUG [jeeves] - Adding xml to /profiles/profile[6]
2013-06-11 11:09:36,488 INFO [jeeves.apphand] - Initializing GeoNetwork 2.8.0.ANZMEST ...
2013-06-11 11:09:36,522 WARN [geonetwork.data.directory] - - Data directory initialization: /home/awalsh/geonetwork_data
2013-06-11 11:09:36,527 INFO [jeeves.apphand] - Data directory: /home/awalsh/geonetwork_data/
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - jeeves.xml.catalog.files property set to /home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - Overriding mime-mappings property (was set to ../web/geonetwork/WEB-INF/mime-types.properties)
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - mime-mappings property set to /home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/mime-types.properties
2013-06-11 11:09:36,876 INFO [jeeves.apphand] - - Database connection on jdbc:postgresql_postGIS://123.123.123.123:5432/gn ...
2013-06-11 11:09:36,921 INFO [jeeves.apphand] - Found an existing GeoNetwork database.
2013-06-11 11:09:36,925 INFO [jeeves.apphand] - - Thread Pool...
2013-06-11 11:09:36,928 INFO [jeeves.apphand] - - Setting manager...
2013-06-11 11:09:37,114 INFO [jeeves.apphand] - - Migration ...
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version:2.8.0 subversion:ANZMEST
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Database version:2.8.0 subversion:0
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version = Database version, no migration task to apply.
2013-06-11 11:09:37,119 INFO [jeeves.apphand] - - Z39.50...
2013-06-11 11:09:37,229 INFO [jeeves.apphand] - Repositories file built from template.
2013-06-11 11:09:40,692 INFO [jeeves.apphand] - Server is Enabled.
2013-06-11 11:09:40,697 INFO [jeeves.apphand] - - Schema manager...
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema plugins directory: /home/awalsh/geonetwork_data/config/schema_plugins
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema Catalog File : /home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,795 DEBUG [jeeves] - Using oasis catalog files /home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,796 DEBUG [jeeves] - Using catalog resolver verbosity 1
2013-06-11 11:09:50,217 ERROR [geonetwork.schemamanager] - Schema anzmeta does not have any XSD files!
2013-06-11 11:09:56,463 INFO [jeeves] - Overrides being applied to configuration file: .*iso19139/schema-conversions\.xml
2013-06-11 11:09:56,464 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:56,464 DEBUG [jeeves] - Elements added are:<toAdd>
  <converter name="xml_iso19139Torifcs" nsUri="http://ands.org.au/standards/rif-cs/registryObjects&quot; schemaLocation="http://services.ands.org.au/home/orca/schemata/registryObjects.xsd&quot; xslt="rif.xsl" />
</toAdd>
2013-06-11 11:09:56,464 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:56,472 ERROR [geonetwork.schemamanager] - Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Raised exception while starting appl handler. Skipped.
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Handler : org.fao.geonet.Geonetwork
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Exception : OperationAbortedEx : Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,477 ERROR [jeeves.engine] - Message : Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,478 ERROR [jeeves.engine] - Stack : OperationAbortedEx : Failed whilst adding the schema information. Exception message if any is Exceeded maximum number of plugin schemas 20
at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1258)
....

Is this a bug is there something else I need to do when I relocate the data directory?
Seems that it is sensing to many plugin schemas (exceeds 20).

Andrew

Hi Andrew,

This can happen when you change the data directory after you have started up GeoNetwork previously.

When you start up GeoNetwork, an xml file containing schema plugin linking information is updated with the location of all schema plugins found in the schema plugins directory:

    <data directory>/config/schemaplugin-uri-catalog.xml

Unfortunately, the Schema Manager doesn't remove entries which don't exist anymore and only a maximum number of 20 are allowed so its attempting to add all the schema plugins in the new location without removing the old ones and is running out of space. This should be raised as a git issue as I think it should remove entries that don't exist. But you can just delete schemaplugin-uri-catalog.xml in this directory and it will be recreated the next time you start GeoNetwork with only the correct schema plugin locations as per the comments in this file to workaround this issue.

Cheers,
CraigJ

On 11/06/13 12:03, andrew walsh wrote:

Dear Users and Developers,

I am using the stable 2.8.0 ANZMEST version of Geonetwork (similar to GN
2.8.0 with ANZMEST schema additions). Initially I had the geonetwork data
directory in the default location geonetwork/WEB-INF/data and all was fine
i.e I was adding/changing metadata and working OK.

Today I decided I should, as recommended, put the data directory into an
independant place to make it easier to do upgrades. So I set
-Dgeonetwork.dir=/home/awalsh/geonetwork_data for the java command
in start_geonetwork.sh and I copied all contents geonetwork/WEB-INF/data
to the new location /home/awalsh/geonetwork_data.

I then restart geonetwork, it detects the new data dir. location OK but startup
fails
with message:

ERROR [geonetwork.schemamanager] - Failed whilst adding the schema information.
Exception message if any is Exceeded maximum number of plugin schemas 20

Below is an excerpt from my geonetwork log (from startup to fail point):

2013-06-11 11:09:32,727 INFO [jeeves] - Overrides being applied to
configuration file: .*WEB-INF/config\.xml
2013-06-11 11:09:32,734 INFO [jeeves] - Replacing attribute value of node
appHandler/param[@name='preferredSchema']
2013-06-11 11:09:32,735 DEBUG [jeeves] - New attribute is:iso19139.anzlic
2013-06-11 11:09:32,739 DEBUG [jeeves] - Updating attibute of node
/geonet/appHandler/param[6]
2013-06-11 11:09:32,743 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:32,761 DEBUG [jeeves] - Elements added are:<toAdd>
   <include>config-metadata-schemaplugins.xml</include>
</toAdd>
2013-06-11 11:09:32,761 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:32,761 INFO [jeeves] - Adding xml elements to default/gui
2013-06-11 11:09:32,762 DEBUG [jeeves] - Elements added are:<toAdd>
   <xml name="ccjurisdictions"
file="xml/creativecommons/jurisdictionSelectOptions" />
   <xml name="dcjurisdictions" file="xml/datacommons/jurisdictionSelectOptions"
/>
</toAdd>
2013-06-11 11:09:32,763 DEBUG [jeeves] - Adding xml to /geonet/default/gui
2013-06-11 11:09:32,768 INFO [jeeves] - Replacing attribute value of node
services/service[@name='main.search.suggest']/param[@name='threshold']
2013-06-11 11:09:32,768 DEBUG [jeeves] - New attribute is:1
2013-06-11 11:09:36,376 INFO [jeeves] - Overrides being applied to
configuration file: .*WEB-INF/user-profiles\.xml
2013-06-11 11:09:36,377 INFO [jeeves] - Adding xml elements to
profile[@name='Editor']
2013-06-11 11:09:36,377 DEBUG [jeeves] - Elements added are:<toAdd>
   <allow service="metadata.creativecommons.form" />
   <allow service="metadata.creativecommons.set" />
   <allow service="metadata.datacommons.form" />
   <allow service="metadata.datacommons.set" />
</toAdd>
2013-06-11 11:09:36,378 DEBUG [jeeves] - Adding xml to /profiles/profile[4]
2013-06-11 11:09:36,379 INFO [jeeves] - Adding xml elements to
profile[@name='Guest']
2013-06-11 11:09:36,380 DEBUG [jeeves] - Elements added are:<toAdd>
   <allow service="prepare.taxon.search" />
   <allow service="xml.forward.taxonsearch" />
   <allow service="portal.search.credits" />
   <allow service="portal.search.dataparams" />
   <allow service="portal.search.taxonNames" />
   <allow service="portal.summary.keywords" />
   <allow service="portal.summary.longParamNames" />
   <allow service="portal.summary.organisations" />
   <allow service="xml_anzmeta" />
   <allow service="xml_anzmetaTorifcs" />
   <allow service="xml_anzmetaToiso19139.anzlic" />
   <allow service="xml_anzmetaTooai_dc" />
   <allow service="xml_eml-gbif" />
   <allow service="xml_eml-gbifTorifcs" />
   <allow service="xml_iso19135" />
   <allow service="xml_iso19135ToSKOS" />
   <allow service="xml_iso19135Tooai_dc" />
   <allow service="xml_iso19139.anzlic" />
   <allow service="xml_iso19139.anzlicTorifcs" />
   <allow service="xml_iso19139.anzlicTooai_dc" />
   <allow service="xml_iso19139.mcp" />
   <allow service="xml_iso19139.mcpTorifcs" />
   <allow service="xml_iso19139.mcpTooai_dc" />
   <allow service="xml_iso19139.mcp-1.4" />
   <allow service="xml_iso19139.mcp-1.4Torifcs" />
   <allow service="xml_iso19139.mcp-1.4Tooai_dc" />
   <allow service="xml_iso19139Torifcs" />
</toAdd>
2013-06-11 11:09:36,382 DEBUG [jeeves] - Adding xml to /profiles/profile[6]
2013-06-11 11:09:36,488 INFO [jeeves.apphand] - Initializing GeoNetwork
2.8.0.ANZMEST ...
2013-06-11 11:09:36,522 WARN [geonetwork.data.directory] - - Data directory
initialization: /home/awalsh/geonetwork_data
2013-06-11 11:09:36,527 INFO [jeeves.apphand] - Data directory:
/home/awalsh/geonetwork_data/
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - jeeves.xml.catalog.files
property set to
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - Overriding mime-mappings
property (was set to ../web/geonetwork/WEB-INF/mime-types.properties)
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - mime-mappings property set to
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/mime-types.properties
2013-06-11 11:09:36,876 INFO [jeeves.apphand] - - Database connection on
jdbc:postgresql_postGIS://123.123.123.123:5432/gn ...
2013-06-11 11:09:36,921 INFO [jeeves.apphand] - Found an existing
GeoNetwork database.
2013-06-11 11:09:36,925 INFO [jeeves.apphand] - - Thread Pool...
2013-06-11 11:09:36,928 INFO [jeeves.apphand] - - Setting manager...
2013-06-11 11:09:37,114 INFO [jeeves.apphand] - - Migration ...
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version:2.8.0
subversion:ANZMEST
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Database version:2.8.0
subversion:0
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version = Database
version, no migration task to apply.
2013-06-11 11:09:37,119 INFO [jeeves.apphand] - - Z39.50...
2013-06-11 11:09:37,229 INFO [jeeves.apphand] - Repositories file built
from template.
2013-06-11 11:09:40,692 INFO [jeeves.apphand] - Server is Enabled.
2013-06-11 11:09:40,697 INFO [jeeves.apphand] - - Schema manager...
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema plugins directory:
/home/awalsh/geonetwork_data/config/schema_plugins
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema Catalog File :
/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,795 DEBUG [jeeves] - Using oasis catalog files
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,796 DEBUG [jeeves] - Using catalog resolver verbosity 1
2013-06-11 11:09:50,217 ERROR [geonetwork.schemamanager] - Schema anzmeta does
not have any XSD files!
2013-06-11 11:09:56,463 INFO [jeeves] - Overrides being applied to
configuration file: .*iso19139/schema-conversions\.xml
2013-06-11 11:09:56,464 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:56,464 DEBUG [jeeves] - Elements added are:<toAdd>
   <converter name="xml_iso19139Torifcs"
nsUri="http://ands.org.au/standards/rif-cs/registryObjects&quot;
schemaLocation="http://services.ands.org.au/home/orca/schemata/registryObjects.xsd&quot;
xslt="rif.xsl" />
</toAdd>
2013-06-11 11:09:56,464 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:56,472 ERROR [geonetwork.schemamanager] - Failed whilst adding
the schema information. Exception message if any is Exceeded maximum number of
plugin schemas 20
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Raised exception while starting
appl handler. Skipped.
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Handler :
org.fao.geonet.Geonetwork
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Exception :
OperationAbortedEx : Failed whilst adding the schema information. Exception
message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,477 ERROR [jeeves.engine] - Message : Failed whilst
adding the schema information. Exception message if any is Exceeded maximum
number of plugin schemas 20
2013-06-11 11:09:56,478 ERROR [jeeves.engine] - Stack :
OperationAbortedEx : Failed whilst adding the schema information. Exception
message if any is Exceeded maximum number of plugin schemas 20
  at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1258)
....

Is this a bug is there something else I need to do when I relocate the data
directory?
Seems that it is sensing to many plugin schemas (exceeds 20).

Andrew

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Craig,

Thank you for your quick reply and work around to the issue.
I deleted the file <new data directory>/config/schemaplugin-uri-catalog.xml
in the new location and on start up it recreated this file and no more problems.

Agree it should be raised as a GIT issue to fix. I have raised an issue on
https://github.com/geonetwork/core-geonetwork/issues/133

I guess, schema manager I think?, should check IF geonetwork.dir was set
then the root of file paths in schemaplugin-uri-catalog.xml should have <geonetwork.dir>/
in them.
If the file paths don't have geonetwork.dir in them then delete those entries and
recreate the correct entry.

OR on further thought, may be simpler to always remake the
config/schemaplugin-uri-catalog.xml on startup generating
the paths depending on setting of geonetwork.dir or not.

Thanks,

Andrew

----- Original Message ----- From: "Craig Jones" <Craig.Jones@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Tuesday, June 11, 2013 12:43 PM
Subject: Re: [GeoNetwork-users] Relocated geonetwork data directory - Error 'Exceeded maximum number of plugin schemas 20'

Hi Andrew,

This can happen when you change the data directory after you have
started up GeoNetwork previously.

When you start up GeoNetwork, an xml file containing schema plugin
linking information is updated with the location of all schema plugins
found in the schema plugins directory:

   <data directory>/config/schemaplugin-uri-catalog.xml

Unfortunately, the Schema Manager doesn't remove entries which don't
exist anymore and only a maximum number of 20 are allowed so its
attempting to add all the schema plugins in the new location without
removing the old ones and is running out of space. This should be
raised as a git issue as I think it should remove entries that don't
exist. But you can just delete schemaplugin-uri-catalog.xml in this
directory and it will be recreated the next time you start GeoNetwork
with only the correct schema plugin locations as per the comments in
this file to workaround this issue.

Cheers,
CraigJ

On 11/06/13 12:03, andrew walsh wrote:

Dear Users and Developers,

I am using the stable 2.8.0 ANZMEST version of Geonetwork (similar to GN
2.8.0 with ANZMEST schema additions). Initially I had the geonetwork data
directory in the default location geonetwork/WEB-INF/data and all was fine
i.e I was adding/changing metadata and working OK.

Today I decided I should, as recommended, put the data directory into an
independant place to make it easier to do upgrades. So I set
-Dgeonetwork.dir=/home/awalsh/geonetwork_data for the java command
in start_geonetwork.sh and I copied all contents geonetwork/WEB-INF/data
to the new location /home/awalsh/geonetwork_data.

I then restart geonetwork, it detects the new data dir. location OK but startup
fails
with message:

ERROR [geonetwork.schemamanager] - Failed whilst adding the schema information.
Exception message if any is Exceeded maximum number of plugin schemas 20

Below is an excerpt from my geonetwork log (from startup to fail point):

2013-06-11 11:09:32,727 INFO [jeeves] - Overrides being applied to
configuration file: .*WEB-INF/config\.xml
2013-06-11 11:09:32,734 INFO [jeeves] - Replacing attribute value of node
appHandler/param[@name='preferredSchema']
2013-06-11 11:09:32,735 DEBUG [jeeves] - New attribute is:iso19139.anzlic
2013-06-11 11:09:32,739 DEBUG [jeeves] - Updating attibute of node
/geonet/appHandler/param[6]
2013-06-11 11:09:32,743 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:32,761 DEBUG [jeeves] - Elements added are:<toAdd>
   <include>config-metadata-schemaplugins.xml</include>
</toAdd>
2013-06-11 11:09:32,761 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:32,761 INFO [jeeves] - Adding xml elements to default/gui
2013-06-11 11:09:32,762 DEBUG [jeeves] - Elements added are:<toAdd>
   <xml name="ccjurisdictions"
file="xml/creativecommons/jurisdictionSelectOptions" />
   <xml name="dcjurisdictions" file="xml/datacommons/jurisdictionSelectOptions"
/>
</toAdd>
2013-06-11 11:09:32,763 DEBUG [jeeves] - Adding xml to /geonet/default/gui
2013-06-11 11:09:32,768 INFO [jeeves] - Replacing attribute value of node
services/service[@name='main.search.suggest']/param[@name='threshold']
2013-06-11 11:09:32,768 DEBUG [jeeves] - New attribute is:1
2013-06-11 11:09:36,376 INFO [jeeves] - Overrides being applied to
configuration file: .*WEB-INF/user-profiles\.xml
2013-06-11 11:09:36,377 INFO [jeeves] - Adding xml elements to
profile[@name='Editor']
2013-06-11 11:09:36,377 DEBUG [jeeves] - Elements added are:<toAdd>
   <allow service="metadata.creativecommons.form" />
   <allow service="metadata.creativecommons.set" />
   <allow service="metadata.datacommons.form" />
   <allow service="metadata.datacommons.set" />
</toAdd>
2013-06-11 11:09:36,378 DEBUG [jeeves] - Adding xml to /profiles/profile[4]
2013-06-11 11:09:36,379 INFO [jeeves] - Adding xml elements to
profile[@name='Guest']
2013-06-11 11:09:36,380 DEBUG [jeeves] - Elements added are:<toAdd>
   <allow service="prepare.taxon.search" />
   <allow service="xml.forward.taxonsearch" />
   <allow service="portal.search.credits" />
   <allow service="portal.search.dataparams" />
   <allow service="portal.search.taxonNames" />
   <allow service="portal.summary.keywords" />
   <allow service="portal.summary.longParamNames" />
   <allow service="portal.summary.organisations" />
   <allow service="xml_anzmeta" />
   <allow service="xml_anzmetaTorifcs" />
   <allow service="xml_anzmetaToiso19139.anzlic" />
   <allow service="xml_anzmetaTooai_dc" />
   <allow service="xml_eml-gbif" />
   <allow service="xml_eml-gbifTorifcs" />
   <allow service="xml_iso19135" />
   <allow service="xml_iso19135ToSKOS" />
   <allow service="xml_iso19135Tooai_dc" />
   <allow service="xml_iso19139.anzlic" />
   <allow service="xml_iso19139.anzlicTorifcs" />
   <allow service="xml_iso19139.anzlicTooai_dc" />
   <allow service="xml_iso19139.mcp" />
   <allow service="xml_iso19139.mcpTorifcs" />
   <allow service="xml_iso19139.mcpTooai_dc" />
   <allow service="xml_iso19139.mcp-1.4" />
   <allow service="xml_iso19139.mcp-1.4Torifcs" />
   <allow service="xml_iso19139.mcp-1.4Tooai_dc" />
   <allow service="xml_iso19139Torifcs" />
</toAdd>
2013-06-11 11:09:36,382 DEBUG [jeeves] - Adding xml to /profiles/profile[6]
2013-06-11 11:09:36,488 INFO [jeeves.apphand] - Initializing GeoNetwork
2.8.0.ANZMEST ...
2013-06-11 11:09:36,522 WARN [geonetwork.data.directory] - - Data directory
initialization: /home/awalsh/geonetwork_data
2013-06-11 11:09:36,527 INFO [jeeves.apphand] - Data directory:
/home/awalsh/geonetwork_data/
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - jeeves.xml.catalog.files
property set to
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - Overriding mime-mappings
property (was set to ../web/geonetwork/WEB-INF/mime-types.properties)
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - mime-mappings property set to
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/mime-types.properties
2013-06-11 11:09:36,876 INFO [jeeves.apphand] - - Database connection on
jdbc:postgresql_postGIS://123.123.123.123:5432/gn ...
2013-06-11 11:09:36,921 INFO [jeeves.apphand] - Found an existing
GeoNetwork database.
2013-06-11 11:09:36,925 INFO [jeeves.apphand] - - Thread Pool...
2013-06-11 11:09:36,928 INFO [jeeves.apphand] - - Setting manager...
2013-06-11 11:09:37,114 INFO [jeeves.apphand] - - Migration ...
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version:2.8.0
subversion:ANZMEST
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Database version:2.8.0
subversion:0
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version = Database
version, no migration task to apply.
2013-06-11 11:09:37,119 INFO [jeeves.apphand] - - Z39.50...
2013-06-11 11:09:37,229 INFO [jeeves.apphand] - Repositories file built
from template.
2013-06-11 11:09:40,692 INFO [jeeves.apphand] - Server is Enabled.
2013-06-11 11:09:40,697 INFO [jeeves.apphand] - - Schema manager...
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema plugins directory:
/home/awalsh/geonetwork_data/config/schema_plugins
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema Catalog File :
/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,795 DEBUG [jeeves] - Using oasis catalog files
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,796 DEBUG [jeeves] - Using catalog resolver verbosity 1
2013-06-11 11:09:50,217 ERROR [geonetwork.schemamanager] - Schema anzmeta does
not have any XSD files!
2013-06-11 11:09:56,463 INFO [jeeves] - Overrides being applied to
configuration file: .*iso19139/schema-conversions\.xml
2013-06-11 11:09:56,464 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:56,464 DEBUG [jeeves] - Elements added are:<toAdd>
   <converter name="xml_iso19139Torifcs"
nsUri="http://ands.org.au/standards/rif-cs/registryObjects&quot;
schemaLocation="http://services.ands.org.au/home/orca/schemata/registryObjects.xsd&quot;
xslt="rif.xsl" />
</toAdd>
2013-06-11 11:09:56,464 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:56,472 ERROR [geonetwork.schemamanager] - Failed whilst adding
the schema information. Exception message if any is Exceeded maximum number of
plugin schemas 20
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Raised exception while starting
appl handler. Skipped.
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Handler :
org.fao.geonet.Geonetwork
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Exception :
OperationAbortedEx : Failed whilst adding the schema information. Exception
message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,477 ERROR [jeeves.engine] - Message : Failed whilst
adding the schema information. Exception message if any is Exceeded maximum
number of plugin schemas 20
2013-06-11 11:09:56,478 ERROR [jeeves.engine] - Stack :
OperationAbortedEx : Failed whilst adding the schema information. Exception
message if any is Exceeded maximum number of plugin schemas 20
  at org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1258)
....

Is this a bug is there something else I need to do when I relocate the data
directory?
Seems that it is sensing to many plugin schemas (exceeds 20).

Andrew

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Andrew and Craig,

Pretty certain this has been fixed in 2.8.1-SNAPSHOT and later - the solution is to recreate on startup.

Cheers,
Simon
________________________________________
From: andrew walsh [awalsh@anonymised.com]
Sent: Tuesday, 11 June 2013 2:26 PM
To: Craig Jones
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Relocated geonetwork data directory - Error 'Exceeded maximum number of plugin schemas 20'

Hi Craig,

Thank you for your quick reply and work around to the issue.
I deleted the file <new data directory>/config/schemaplugin-uri-catalog.xml
in the new location and on start up it recreated this file and no more problems.

Agree it should be raised as a GIT issue to fix. I have raised an issue on

I guess, schema manager I think?, should check IF geonetwork.dir was set
then the root of file paths in schemaplugin-uri-catalog.xml should have
<geonetwork.dir>/
in them.
If the file paths don't have geonetwork.dir in them then delete those entries
and
recreate the correct entry.

OR on further thought, may be simpler to always remake the
config/schemaplugin-uri-catalog.xml on startup generating
the paths depending on setting of geonetwork.dir or not.

Thanks,

Andrew

----- Original Message -----
From: "Craig Jones" <Craig.Jones@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Tuesday, June 11, 2013 12:43 PM
Subject: Re: [GeoNetwork-users] Relocated geonetwork data directory - Error
'Exceeded maximum number of plugin schemas 20'

Hi Andrew,

This can happen when you change the data directory after you have
started up GeoNetwork previously.

When you start up GeoNetwork, an xml file containing schema plugin
linking information is updated with the location of all schema plugins
found in the schema plugins directory:

   <data directory>/config/schemaplugin-uri-catalog.xml

Unfortunately, the Schema Manager doesn't remove entries which don't
exist anymore and only a maximum number of 20 are allowed so its
attempting to add all the schema plugins in the new location without
removing the old ones and is running out of space. This should be
raised as a git issue as I think it should remove entries that don't
exist. But you can just delete schemaplugin-uri-catalog.xml in this
directory and it will be recreated the next time you start GeoNetwork
with only the correct schema plugin locations as per the comments in
this file to workaround this issue.

Cheers,
CraigJ

On 11/06/13 12:03, andrew walsh wrote:

Dear Users and Developers,

I am using the stable 2.8.0 ANZMEST version of Geonetwork (similar to GN
2.8.0 with ANZMEST schema additions). Initially I had the geonetwork data
directory in the default location geonetwork/WEB-INF/data and all was fine
i.e I was adding/changing metadata and working OK.

Today I decided I should, as recommended, put the data directory into an
independant place to make it easier to do upgrades. So I set
-Dgeonetwork.dir=/home/awalsh/geonetwork_data for the java command
in start_geonetwork.sh and I copied all contents geonetwork/WEB-INF/data
to the new location /home/awalsh/geonetwork_data.

I then restart geonetwork, it detects the new data dir. location OK but
startup
fails
with message:

ERROR [geonetwork.schemamanager] - Failed whilst adding the schema
information.
Exception message if any is Exceeded maximum number of plugin schemas 20

Below is an excerpt from my geonetwork log (from startup to fail point):

2013-06-11 11:09:32,727 INFO [jeeves] - Overrides being applied to
configuration file: .*WEB-INF/config\.xml
2013-06-11 11:09:32,734 INFO [jeeves] - Replacing attribute value of node
appHandler/param[@name='preferredSchema']
2013-06-11 11:09:32,735 DEBUG [jeeves] - New attribute is:iso19139.anzlic
2013-06-11 11:09:32,739 DEBUG [jeeves] - Updating attibute of node
/geonet/appHandler/param[6]
2013-06-11 11:09:32,743 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:32,761 DEBUG [jeeves] - Elements added are:<toAdd>
   <include>config-metadata-schemaplugins.xml</include>
</toAdd>
2013-06-11 11:09:32,761 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:32,761 INFO [jeeves] - Adding xml elements to default/gui
2013-06-11 11:09:32,762 DEBUG [jeeves] - Elements added are:<toAdd>
   <xml name="ccjurisdictions"
file="xml/creativecommons/jurisdictionSelectOptions" />
   <xml name="dcjurisdictions"
file="xml/datacommons/jurisdictionSelectOptions"
/>
</toAdd>
2013-06-11 11:09:32,763 DEBUG [jeeves] - Adding xml to /geonet/default/gui
2013-06-11 11:09:32,768 INFO [jeeves] - Replacing attribute value of node
services/service[@name='main.search.suggest']/param[@name='threshold']
2013-06-11 11:09:32,768 DEBUG [jeeves] - New attribute is:1
2013-06-11 11:09:36,376 INFO [jeeves] - Overrides being applied to
configuration file: .*WEB-INF/user-profiles\.xml
2013-06-11 11:09:36,377 INFO [jeeves] - Adding xml elements to
profile[@name='Editor']
2013-06-11 11:09:36,377 DEBUG [jeeves] - Elements added are:<toAdd>
   <allow service="metadata.creativecommons.form" />
   <allow service="metadata.creativecommons.set" />
   <allow service="metadata.datacommons.form" />
   <allow service="metadata.datacommons.set" />
</toAdd>
2013-06-11 11:09:36,378 DEBUG [jeeves] - Adding xml to /profiles/profile[4]
2013-06-11 11:09:36,379 INFO [jeeves] - Adding xml elements to
profile[@name='Guest']
2013-06-11 11:09:36,380 DEBUG [jeeves] - Elements added are:<toAdd>
   <allow service="prepare.taxon.search" />
   <allow service="xml.forward.taxonsearch" />
   <allow service="portal.search.credits" />
   <allow service="portal.search.dataparams" />
   <allow service="portal.search.taxonNames" />
   <allow service="portal.summary.keywords" />
   <allow service="portal.summary.longParamNames" />
   <allow service="portal.summary.organisations" />
   <allow service="xml_anzmeta" />
   <allow service="xml_anzmetaTorifcs" />
   <allow service="xml_anzmetaToiso19139.anzlic" />
   <allow service="xml_anzmetaTooai_dc" />
   <allow service="xml_eml-gbif" />
   <allow service="xml_eml-gbifTorifcs" />
   <allow service="xml_iso19135" />
   <allow service="xml_iso19135ToSKOS" />
   <allow service="xml_iso19135Tooai_dc" />
   <allow service="xml_iso19139.anzlic" />
   <allow service="xml_iso19139.anzlicTorifcs" />
   <allow service="xml_iso19139.anzlicTooai_dc" />
   <allow service="xml_iso19139.mcp" />
   <allow service="xml_iso19139.mcpTorifcs" />
   <allow service="xml_iso19139.mcpTooai_dc" />
   <allow service="xml_iso19139.mcp-1.4" />
   <allow service="xml_iso19139.mcp-1.4Torifcs" />
   <allow service="xml_iso19139.mcp-1.4Tooai_dc" />
   <allow service="xml_iso19139Torifcs" />
</toAdd>
2013-06-11 11:09:36,382 DEBUG [jeeves] - Adding xml to /profiles/profile[6]
2013-06-11 11:09:36,488 INFO [jeeves.apphand] - Initializing GeoNetwork
2.8.0.ANZMEST ...
2013-06-11 11:09:36,522 WARN [geonetwork.data.directory] - - Data
directory
initialization: /home/awalsh/geonetwork_data
2013-06-11 11:09:36,527 INFO [jeeves.apphand] - Data directory:
/home/awalsh/geonetwork_data/
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - jeeves.xml.catalog.files
property set to
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - Overriding mime-mappings
property (was set to ../web/geonetwork/WEB-INF/mime-types.properties)
2013-06-11 11:09:36,528 INFO [jeeves.apphand] - mime-mappings property set
to
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/mime-types.properties
2013-06-11 11:09:36,876 INFO [jeeves.apphand] - - Database connection on
jdbc:postgresql_postGIS://123.123.123.123:5432/gn ...
2013-06-11 11:09:36,921 INFO [jeeves.apphand] - Found an existing
GeoNetwork database.
2013-06-11 11:09:36,925 INFO [jeeves.apphand] - - Thread Pool...
2013-06-11 11:09:36,928 INFO [jeeves.apphand] - - Setting manager...
2013-06-11 11:09:37,114 INFO [jeeves.apphand] - - Migration ...
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version:2.8.0
subversion:ANZMEST
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Database version:2.8.0
subversion:0
2013-06-11 11:09:37,115 INFO [jeeves.apphand] - Webapp version =
Database
version, no migration task to apply.
2013-06-11 11:09:37,119 INFO [jeeves.apphand] - - Z39.50...
2013-06-11 11:09:37,229 INFO [jeeves.apphand] - Repositories file built
from template.
2013-06-11 11:09:40,692 INFO [jeeves.apphand] - Server is Enabled.
2013-06-11 11:09:40,697 INFO [jeeves.apphand] - - Schema manager...
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema plugins
directory:
/home/awalsh/geonetwork_data/config/schema_plugins
2013-06-11 11:09:40,698 INFO [jeeves.apphand] - - Schema Catalog File
:
/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,795 DEBUG [jeeves] - Using oasis catalog files
/home/awalsh/ANZMEST2.8.0/web/geonetwork/WEB-INF/oasis-catalog.xml;/home/awalsh/geonetwork_data/config/schemaplugin-uri-catalog.xml
2013-06-11 11:09:40,796 DEBUG [jeeves] - Using catalog resolver verbosity 1
2013-06-11 11:09:50,217 ERROR [geonetwork.schemamanager] - Schema anzmeta
does
not have any XSD files!
2013-06-11 11:09:56,463 INFO [jeeves] - Overrides being applied to
configuration file: .*iso19139/schema-conversions\.xml
2013-06-11 11:09:56,464 INFO [jeeves] - Adding xml elements to
2013-06-11 11:09:56,464 DEBUG [jeeves] - Elements added are:<toAdd>
   <converter name="xml_iso19139Torifcs"
nsUri="http://ands.org.au/standards/rif-cs/registryObjects&quot;
schemaLocation="http://services.ands.org.au/home/orca/schemata/registryObjects.xsd&quot;
xslt="rif.xsl" />
</toAdd>
2013-06-11 11:09:56,464 DEBUG [jeeves] - Adding to root element
2013-06-11 11:09:56,472 ERROR [geonetwork.schemamanager] - Failed whilst
adding
the schema information. Exception message if any is Exceeded maximum number
of
plugin schemas 20
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Raised exception while
starting
appl handler. Skipped.
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Handler :
org.fao.geonet.Geonetwork
2013-06-11 11:09:56,476 ERROR [jeeves.engine] - Exception :
OperationAbortedEx : Failed whilst adding the schema information. Exception
message if any is Exceeded maximum number of plugin schemas 20
2013-06-11 11:09:56,477 ERROR [jeeves.engine] - Message : Failed whilst
adding the schema information. Exception message if any is Exceeded maximum
number of plugin schemas 20
2013-06-11 11:09:56,478 ERROR [jeeves.engine] - Stack :
OperationAbortedEx : Failed whilst adding the schema information. Exception
message if any is Exceeded maximum number of plugin schemas 20
  at
org.fao.geonet.kernel.SchemaManager.processSchema(SchemaManager.java:1258)
....
....

Is this a bug is there something else I need to do when I relocate the data
directory?
Seems that it is sensing to many plugin schemas (exceeds 20).

Andrew

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork