Re: [thredds] issue with fileServer service

  • To: Christian Ward-Garrison <cwardgar@xxxxxxxx>
  • Subject: Re: [thredds] issue with fileServer service
  • From: Mark Maciolek <mlm@xxxxxxxxxx>
  • Date: Wed, 1 Jul 2015 21:26:33 -0400
hi,

Finally found time to try this again. I went back to plain catalog.xml with just test data.

I noticed in the logs that I never see fileServer in the serverStartup.log but do see
the opendap

serverStartup: thredds.server.opendap.OpendapServlet initialization start
2015-07-01T21:10:22.371-0400 [ 1083][ 1] INFO serverStartup: thredds.server.opendap.OpendapServlet version= opendap/3.7 ascLimit = 50 binLimit = 500 2015-07-01T21:10:22.371-0400 [ 1083][ 1] INFO serverStartup: thredds.server.opendap.OpendapServlet initialization done

Should I not see some thredds.server.??? about the fileServer

The only http line is:

serverStartup: CdmInit: HTTPFileCache.initCache= [10,20] scour = 1020

So am I missing some folder from content/WEB-INF/classes/thredds/server/  ?

Mark


On 6/23/2015 5:53 PM, Christian Ward-Garrison wrote:
Hi Mark,

Yes, a catalog can have multiple datasetRoots. They can even have the same location—only their paths must differ. Here's an example from one of our catalogs:

<datasetRoot path="localContent" location="content/testdata/"/>
  <datasetRoot path="testRestrictedDataset" location="content/testdata/"/>
  <datasetRoot path="cdmUnitTest" location="${cdmUnitTest}"/>

As for your catalogs, they look good to me. I was able to load them into TDS and access them via "HTTPServer". All I had to do was create some dummy data and change the datasetScan location attributes to match my machine.

I'm not sure why you're encountering these issues, but it may have to do with the filtering you've set up. For example, you have a datasetScan with location="/net/nfs/wilma/data3/odac/model/mm5/analysis" that includes only "*.grib" files. You need to make sure that such files are actually where you said they'd be, or else TDS won't generate a link in the Dataset page. Have you tested with dummy data files?

Cheers,
Christian

On Tue, Jun 23, 2015 at 8:12 AM, Mark Maciolek <mlm@xxxxxxxxxx <mailto:mlm@xxxxxxxxxx>> wrote:

    hi,

    Attached my two catalog xml files, if someone would be kind enough
    to review them and point out any errors that prevents the
    fileServer service from working I would appreciate it.

    mark

    On 6/22/2015 7:50 PM, Christian Ward-Garrison wrote:
    Hi Mark,

    Both service definitions are fine. Rather, I suspect the problem
    is that you haven't defined a dataset root [1]. Here is a very
    basic example:

    <?xml version="1.0" encoding="UTF-8"?>
    <catalog name="Local TDS"
    xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
             version="1.0.6" xmlns:xlink="http://www.w3.org/1999/xlink";>
        <service name="http" serviceType="HTTPServer"
    base="/thredds/fileServer/"/>

        <datasetRoot path="my/data"
    location="C:/Users/cwardgar/dev/data" />

        <dataset name="A Test Dataset" ID="testDataset"
    urlPath="my/data/foo.nc <http://foo.nc>" >
    <serviceName>http</serviceName>
        </dataset>
    </catalog>

    I have a file at C:/Users/cwardgar/dev/data/foo.nc
    <http://foo.nc>that TDS serves at
    http://localhost:8080/thredds/fileServer/my/data/foo.nc. In the
    datasetRootelement, the path I've chosen is arbitrary; the
    location is not (unless I move the file).

    Cheers,
    Christian

    [1]
    
http://www.unidata.ucar.edu/software/thredds/current/tds/tutorial/BasicConfigCatalogs.html#ConfigCatalogs

    On Mon, Jun 22, 2015 at 12:19 PM, Mark Maciolek <mlm@xxxxxxxxxx
    <mailto:mlm@xxxxxxxxxx>> wrote:

        hi,

        Trying to get the thredds service fileServer working on our
        system
        thredds 4.3

        
http://www.opal.sr.unh.edu/thredds/catalog/opal_ts/WBD/catalog.html?dataset=opal_ts/WBD/WBD_2015.nc

          * /Data format:/netCDF
          * /Data size:/1.034 Mbytes
          * /Data type:/GRID
          * /ID:/opal_ts/WBD/WBD_2015.nc


        from the catalog.xml file:

         <service name="fileServer" serviceType="HTTPServer"
        base="/thredds/fileServer
        /"/>

        have also tried this:

        <service name="http" serviceType="HTTPServer"
        base="/thredds/fileServer/" />

        get 404 error

        there is nothing in the threddsServlet.log

        Is there another config file or xml file I should be looking at?

        mark

--
        Mark Maciolek
        Network Administrator
        Morse Hall Room 339
        603-862-3050 <tel:603-862-3050>
        https://www.unh.edu/research/support-units/research-computing-center


        _______________________________________________
        thredds mailing list
        thredds@xxxxxxxxxxxxxxxx <mailto:thredds@xxxxxxxxxxxxxxxx>
        For list information or to unsubscribe, visit:
        http://www.unidata.ucar.edu/mailing_lists/



--
    Mark Maciolek
    Network Administrator
    Morse Hall Room 339
    603-862-3050 <tel:603-862-3050>
    https://www.unh.edu/research/support-units/research-computing-center



  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: