Reputation: 2190
I am currently struggling with the setup of TeamCity on Tomcat7:
Unable to initialize logs. The logs directories are not accessible for writing. TeamCity server process does not have enough permissions to write into the log files under the directory: /var/lib/tomcat7/../logs Please fix permissions and restart TeamCity. You can read more about TeamCity logs in documentation.
When I installed Tomcat manually by downloading the apache-tomcat*.tar.gz file and started up the servlet container, everything worked fine. Nevertheless I decided to use the tomcat7 package provided by Debian and to install it via:
apt-get install tomcat7
Regretfully TeamCity seems to have problems with the Debian package version and does not start up anymore.
What are the necessary step to run TeamCity in this tomcat7 version?
Upvotes: 1
Views: 1796
Reputation: 4923
You should set logs directory to some location, that TeamCity will be able to write to. There is the documentation section that describes general logging configuration.
EDIT
Use system property -Dteamcity_logs=../logs/
with desired logs directory
Upvotes: 3