|
Documentation Index
|
To fix a problem, we may need versatile information about your system and various logs. LoggingTeamCity (both server and build agents) uses Log4j as a logger. Logging rules and Log4j configuration files placement for TeamCity 2 are described in Logs of Internal Events. By default, Log4J configuration file is TeamCity/conf/teamcity-server-log4j.xml for the server, and buildAgent/conf/teamcity-agent-log4j.xml for build agents. Before reproducing the problem it makes sense to enable 'DEBUG' log level for TeamCity classes. To do it, change the following section in teamcity-(server|agent)-log4j.xml files: <category name="jetbrains.buildServer"> <priority value="DEBUG"/> <appender-ref ref="ROLL"/> </category> After that, DEBUG messages will go to teamcity-*.log files. Hangs and thread dumpsIn case you experience problems with TeamCity server (e.g. no responding or working too slow) we would appreciate a thread dump of the server process. OutOfMemory problemsIn case you experience problems with TeamCity "eating" too much memory (OutOfMemory errors), please do the following:
SVN Debug LoggingTo turn on debug logging of SVNkit library, uncomment the following lines in the <category name="javasvn.output"> <priority value="DEBUG"/> <appender-ref ref="SVN.LOG"/> </category> Do it on server for server-side issues (e.g. when "VCS checkout mode" is set to "Automatically on server"), or on agent (when "Automatically on agent" checkout mode is used) for the build configuration. Then, restart the server or agent, correspondingly. The log will be saved to the logs\teamcity-svn.log file. CVS Debug LoggingTo turn on debug logging for CVS commands, run server with -Dcvs.log.commands=true JVM parameter. Remote Run problemsHow to retrieve the "patch" file with the changes of a remote run:
Agent log will contain line "Patch is saved to file ${file.name}" |
How to Debug problems
(None)