ioos / erddap-gold-standard

Contains the 'gold standard' ERDDAP configuration, with datasets compliant with IOOS Metadata Profile 1.2
https://standards.sensors.ioos.us/erddap/index.html
8 stars 16 forks source link

./GenerateDatasetsXml.sh errors #53

Closed callumrollo closed 11 months ago

callumrollo commented 11 months ago

When running the command ./GenerateDatasetsXml.sh the following error is generated

Exception in thread "main" java.lang.ExceptionInInitializerError
    at gov.noaa.pfel.erddap.GenerateDatasetsXml.<clinit>(GenerateDatasetsXml.java:45)
Caused by: java.lang.RuntimeException: ERROR during EDStatic Low Level Startup:
ERROR while reading /usr/local/tomcat/content/erddap/setup.xml: 
java.lang.RuntimeException: ERROR: You must change the <flagKeyKey> in setup.xml to a new, unique, non-default value. NOTE that this will cause the flagKeys used by your datasets to change. Any subscriptions using the old flagKeys will need to be redone.

This can be resolved by changing the value of flagKeyKey in erddap/content/setup.xml and binding the path to /erddap/content when running the docker command