Can't setup tc due

Hi there,

i wanted to try the teamcity downloaded as war-File from the webpage
(release Version 1.0). But it does not work due to the error below.

Server: Ubuntu 6.06, Tomcat 5.5

Any hints?


INFO: HTMLManager: start: Starting web application at '/TeamCity-1.0'
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Failed to create logs directory ../logs/
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ../logs/teamcity.log (No such file or
directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:177) at java.io.FileOutputStream.(FileOutputStream.java:102) at org.apache.log4j.FileAppender.setFile(FileAppender.java:289) at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256) at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220) at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150) at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163) at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425) at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394) at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618) at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:743) at jetbrains.buildServer.log.LogInitializer.configDefault(LogInitializer.java:1) at jetbrains.buildServer.log.LogInitializer.init(LogInitializer.java:6) at jetbrains.buildServer.serverSide.impl.BuildServerImpl.]]>(BuildServerImpl.java:479)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)


Best
Roland

1 comment
Comment actions Permalink

Hi Roland,

Roland Küstermann wrote:

Hi there,

i wanted to try the teamcity downloaded as war-File from the webpage
(release Version 1.0). But it does not work due to the error below.

Server: Ubuntu 6.06, Tomcat 5.5

Any hints?


Looks like TeamCity logging system is unable to create log file.
In fact it should try to do this in the same directory where Tomcat log files
are created.

You can control where these logs are created using the following system property:
-Dteamcity_logs=/path/to/logs/dir/ (you may pass it via CATALINA_OPTS
environment variable).

Hope, this helps.
KIR


INFO: HTMLManager: start: Starting web application at '/TeamCity-1.0'
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Failed to create logs directory ../logs/
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ../logs/teamcity.log (No such file or
directory)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at
org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
at
org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
at
org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
at
org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
at
org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
at
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:743)
at
jetbrains.buildServer.log.LogInitializer.configDefault(LogInitializer.java:1)
at
jetbrains.buildServer.log.LogInitializer.init(LogInitializer.java:6)
at
jetbrains.buildServer.serverSide.impl.BuildServerImpl.<clinit>(BuildServerImpl.java:479)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)


Best
Roland



--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.