[#3749] Download_Cache Directory Does NOT Exists, build error

Please log in

State: more information
Closed
Date:
2009-05-19 20:18
Priority: more information
3
Submitted By:
raul de la garza (rauld)
Assigned To: more information
Nobody (None)
Hardware: 
None
Product: 
None
Operating System: 
None
Component: 
None
Version: 
None
Severity: 
None
Resolution: 
Invalid
Summary: more information
Download_Cache Directory Does NOT Exists, build error

Detailed description

Hi Burak, I was getting the following error;

**** checking mapping file /usr/share/tomcat5/webapps/clinical/WEB-INF/as_var_map.xml
java.lang.Exception: 'download.cacheroot' parameter needs to be set to a valid directory in the database! :


My solution to fix this error, was to create a directory call "download_cache" in $TOMCAT_HOME/.

Also, I had to modify your $CLINICAL_HOME/build.xml file from;

addproperty="download.cacheroot" defaultvalue="${env.HOME}/download_cache"/>

to;

addproperty="download.cacheroot" defaultvalue="${env.TOMCAT_HOME}/download_cache"/>

in order to get it to work.

Could the issue be that the build process know or have permission to create the directory "download_cache"? Because once that directory is exists and my code change is in place it works.

-raul

Response

Message

Date: 2009-05-27 18:45
Sender: Burak Ozyurt


During startup, if the download.cacheroot is not already setup by the admin console from the web interface, which will be the case for first time installation (a typical chicken-or-egg problem),
the setup tries to create a directory named 'download_cache' under the home directory of the user starting up the tomcat process. It looks like because of some permission issue, the HID startup process cannot create that directory and since that directory does not exists as the consequence raised the exception.

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionNone2009-05-27 18:45bozyurt
status_idOpen2009-05-27 18:45bozyurt