Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More on WCS and THREDDS 3.16.36



aha!

I think the problem is that the tomcat user (however tomcat is started) doesnt have write permission in the WCS cache directory:

      File dir = new File( getDiskCache().getRootDirectory());
      File tifFile = File.createTempFile("WCS", ".tif", dir);  <<< fails here

you may be using the default; to set it explicitly, use the "dir" element in WCS section of content/thredds/ThreddsConfig.xml, eg:

  <WCS>
    <allow>false</allow>
    <dir>/data/tmp/thredds/wcsCache/</dir>
    <scour>15 min</scour>
    <maxAge>30 min</maxAge>
  </WCS>

see:

http://www.unidata.ucar.edu/projects/THREDDS/tech/reference/ThreddsConfigXMLFile.html

We changed it in latest version because old way was not thread-safe, if 2 requests for the same dataset came in at the same time.

let me know if that works...

Roy Mendelssohn wrote:
Hi John:

We have set up ftp files that should allow you to reproduce the error we get. This was set up on a different machine, that is very clean with what is going on. As before, the GetCapabilities works and the DescribeCoverage works, but when I try to GetCoverage the file I get back is:

<ServiceExceptionReport version='1.2.0'>
  <ServiceException code='Invalid Dataset'>
Permission denied
  </ServiceException>
</ServiceExceptionReport>

The error in the Catalina.out file is:

2008-06-18T10:59:24.409 -0700 [ 809201][ 29] INFO - thredds.servlet.ServletUtil - Remote host: 161.55.17.185 - Request: "GET /thredds/wcs/satellite/BA/ssta/8day?request=GetCoverage&version=1.0.0&service=WCS&format=GeoTIFF&coverage=BAssta&Vertical=.0&time=2008-06-13T00:00:00Z&bbox=220,20,250,50 HTTP/1.1"
2008-06-18T10:59:24.576 -0700 [ 809368][ 29] INFO - thredds.wcs.servlet.WCSServlet - makeServiceException
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1345)
at java.io.File.createTempFile(File.java:1434)
at thredds.wcs.WcsDataset.getCoverage(WcsDataset.java:202)
at thredds.wcs.servlet.WCSServlet.doGet(WCSServlet.java:176)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)


at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

at java.lang.Thread.run(Thread.java:595)
2008-06-18T10:59:24.577 -0700 [ 809369][ 29] INFO - thredds.servlet.ServletUtil - Request Completed - 400 - -1 - 168



There are two tar files - the first contains the entire catalog structure - it will be obvious how to drill down to where the "Satellite Datasets" are. The second are the data files that are aggregated. These are:


ftp://orpheus.pfeg.noaa.gov/outgoing/ldewitt/thredds/Satellite.tar.gz
ftp://orpheus.pfeg.noaa.gov/outgoing/ldewitt/thredds/BA.tar.gz

My requests were:

http://las.pfeg.noaa.gov:8082/thredds/wcs/satellite/BA/ssta/8day?request=DescribeCoverage&version=1.0.0&service=WCS&coverage=BAssta


http://las.pfeg.noaa.gov:8082/thredds/wcs/satellite/BA/ssta/8day?request=GetCoverage&version=1.0.0&service=WCS&format=GeoTIFF&coverage=BAssta&Vertical=.0&time=2008-06-13T00:00:00Z&bbox=220,20,250,50



I am not certain of the the last request, but a badly formed request usually produces a much different error.


HTH,

-Roy

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097


e-mail: Roy.Mendelssohn@xxxxxxxx (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690