[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More on WCS and THREDDS 3.16.36
- To: Roy Mendelssohn <Roy.Mendelssohn@xxxxxxxx>
- Subject: Re: More on WCS and THREDDS 3.16.36
- From: John Caron <caron@xxxxxxxxxxxxxxxx>
- Date: Wed, 18 Jun 2008 13:06:51 -0600
- Cc: support-thredds@xxxxxxxxxxxxxxxx
- Delivered-to: support-thredds@unidata.ucar.edu (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "John Caron", Issuer "mailhost.unidata.ucar.edu" (verified OK)) by laraine.unidata.ucar.edu (Postfix) with ESMTP id D36C9CB181; Wed, 18 Jun 2008 13:06:51 -0600 (MDT)
- In-reply-to: <DA6B51D3-2C50-4B61-95B3-548C438A73CB@noaa.gov>
- References: <DA6B51D3-2C50-4B61-95B3-548C438A73CB@noaa.gov>
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
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"