Browse Trackers | Bugs: Browse | Submit New | Download .csv |

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

Please log in

State: Get Information
Closed
Date:
2009-05-19 13:18
Priority: Get Information
3
Submitted By:
raul de la garza (rauld)
Assigned To: Get Information
Nobody (None)
Hardware: Get Information
None
Product: Get Information
None
Operating System: Get Information
None
Component: Get Information
None
Version: Get Information
None
Severity: Get Information
None
Resolution: Get Information
Invalid
Summary: Get 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 11: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 11:45bozyurt
status_idOpen2009-05-27 11:45bozyurt