This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
|
Hi Ethan, So, the proper user for thredds would be the tomcat user, "tomcat" (in this case)? Everything "thredds" and under is owned by "tomcat". Do I have to also make the group "tomcat" as well? (that shouldn't matter, right?) Are there any other salient files to look at. I will do another install shortly... Java 1.7 Tomcat 7.0.39 Thredds 4.3.16 Will also set owner and group to tomcat just for completeness. Will provide report of results... If you can think of anything in the mean time please let me know. P.S. I'd rather have the property set in the file - it makes is explicit and leaves a trail of how things were run. Thanks. On 5/21/13 2:39 PM, Ethan Davis wrote:
Hi Gavin, We are not seeing any problems with this functionality in 4.3. Rather than edit the tds.properties file directly, we recommend (see [1]) using symbolic links or setting the property on the command-line with a "-D" option. For instance: -Dtds.content.root.path=/esg/content However, editing tds.properties should work and I suspect that is not the problem. The nested stacktrace you include below, in particular this partCaused by: java.lang.IllegalStateException: Content directory does not exist and could not be created at thredds.server.config.TdsContext.afterPropertiesSet(TdsContext.java:304)looks like a permission problem. Did the /esg/content/thredds directory already exist when you started the TDS and got these errors? Ethan [1] http://www.unidata.ucar.edu/projects/THREDDS/tech/tds4.3/reference/ConfigDirectory.html#moveLocation On 5/21/2013 2:55 PM, Gavin M. Bell wrote:Hi John and friends..., Here is exactly what is in that file... # more *./WEB-INF/classes/thredds/server/tds.properties* # DO NOT EDIT THIS FILE: It is automatically generated from C:\dev\tds4.2\tds\src\main\template\thredds\server\tds.properties.TEMPLATE tds.version=4.2.10 tds.version.brief=4.2 tds.version.builddate=20120417.2151 tds.url="" class="moz-txt-link-freetext" href="http://www.unidata.ucar.edu/projects/THREDDS/tech/TDS.html">http://www.unidata.ucar.edu/projects/THREDDS/tech/TDS.html tds.documentation.url="" class="moz-txt-link-freetext" href="http://www.unidata.ucar.edu/projects/THREDDS/tech/TDS.html">http://www.unidata.ucar.edu/projects/THREDDS/tech/TDS.html tds.logo.url="" tds.logo.alt=TDS *tds.content.root.path=/esg/content* tds.content.path=thredds tds.content.startup.path=WEB-INF/altContent/startup tds.content.idd.path=WEB-INF/altContent/idd/thredds tds.content.motherlode.path=WEB-INF/altContent/motherlode/thredds tds.config.file=threddsConfig.xml tds.install.url="" Under /esg/content is: "thredds" which contains: # ls -l thredds/ total 116 drwxr-xr-x 6 tomcat climate 4096 May 18 15:16 cache drwxr-xr-x 2 tomcat climate 4096 Dec 13 2011 cacheAged -rwxr-xr-x 1 tomcat climate 1658 May 20 16:31 catalog.xml drwxr-xr-x 2 tomcat climate 4096 Aug 1 2012 collectionCache drwxr-xr-x 2 tomcat climate 4096 Dec 13 2011 ehcache drwxrwxr-x 3 tomcat climate 4096 Sep 4 2012 *esgcet* -rwxr-xr-x 1 tomcat climate 715 May 20 16:33 las_tds.xml -rwxr-xr-x 1 tomcat climate 715 May 18 15:17 las_tds.xml.bak -rwxr-xr-x 1 tomcat climate 715 Dec 14 2011 las_tds.xml.correct -rwxr-xr-x 1 tomcat climate 717 May 18 2011 las_tds.xml.tmpl -rwxr-xr-x 1 tomcat climate 717 Dec 13 2011 las_tds.xml.tmpl.bak drwxr-xr-x 2 tomcat climate 20480 May 21 12:00 logs drwxr-xr-x 4 tomcat climate 4096 Dec 13 2011 public -rwxr-xr-x 1 tomcat climate 7630 May 20 16:33 threddsConfig.xml -rwxr-xr-x 1 tomcat climate 7157 Jan 10 2011 threddsConfig.xml.bak -rwxr-xr-x 1 tomcat climate 7630 Dec 14 2011 threddsConfig.xml.correct -rwxr-xr-x 1 tomcat climate 545 Jan 10 2011 threddsConfig.xml.las -rwxr-xr-x 1 tomcat climate 545 Dec 13 2011 threddsConfig.xml.las.bak -rwxr-xr-x 1 tomcat climate 7157 Jan 10 2011 threddsConfig.xml.tmpl -rwxr-xr-x 1 tomcat climate 7157 Dec 13 2011 threddsConfig.xml.tmpl.bak This setup allows us to swap out thredds - more practically, *destroy* the whole tomcat installation *without* *fubar'ing* peoples' hard built catalogs (under *esgcet*). Since this location also contains configuration portions that we have added to allow for LAS interoperability, externalizing this from tomcat is important to the sanity of the stack. For the ESGF Node stack... all "state" is kept under /esg such that everything else is solely mechanics of transformations. /This has worked excellently in v4.2.10/ that we have been shipping with out stack. How can we get this same behavior for 4.3? On 5/21/13 8:53 AM, John Caron wrote:1) is this the exact property setting: *tds.content.root.path=/esg/content* what do the * mean? 2) any chance tomcat doesnt have write permission in that directory? 3) we are double checking how this is supposed to work On 5/21/2013 2:10 AM, Gavin M. Bell wrote: --
Senior Computer Scientist / Mathematics Programmer
Gavin M. Bell
Lawrence Livermore National Labs
--
"Never mistake a clear view for a short distance."
-Paul Saffo
(GPG Key - http://rainbow.llnl.gov/dist/keys/gavin.asc)
A796 CE39 9C31 68A4 52A7 1F6B 66B7 B250 21D5 6D3E
|