Kunagi tries to create kunagi-data in tomcat-bin folder
First of all, thanks for creating an awesome application. When I use the windows executable everything is working fine from localhost.
However I run into some problems when I try to deploy it to my web hosting. I use the Tomcat manager and the autodeploy function. After it is deployed I get an error message in my browser saying: javax.servlet.ServletException: java.lang.RuntimeException: java.lang.RuntimeException: Creating directory failed: /usr/local/tomcat/apache-tomcat-6.0.26/bin/kunagi-data
It seems like it tries to store the kunagi-data in the bin folder of the tomcat installation, which I don't have access to.
Is there any way I could fix this? The server is unix based. I looked into the code, and it seems to be detecting the working dir by creating a dummy file and finding the absolutepath of that file. I am not sure if there is an issue with this application or my web hosting.
Any tips would be highly appreciated.
Statement from Kunagi Team
On debian based systems Kunagi detects the right directory. On other unixes Kunagi tries to create the data directory in the current working directory where Tomcat is started. It seams you started your Tomcat while being in the bin directory. You could switch to a desired working directory (like
/var) and start Tomcat from there.
If this is not possible there is another way:
You can define the data directory in the
config.properties file by setting the
config.properties file is created in the data directory, which could fail. For that reason, you can specify a custom path to your
config.properties by setting the Java system property
Not that if you start tomcat from different locations (i. e. manually for testing and automatically later), Kunagi might use different data directories. That would look like lost data.
Issue is closed.
Wed, Jan 22, 2014, 04:21 by anonymous
where can I find the java system property
Tue, Jan 28, 2014, 11:09 by Witek (SM,T)
This depends on your installation. You need to pass the argument
-Dkunagi.config=/my/path/to/config.properties wiht your java command which starts tomcat.