agent quit working

Today my agent quit working... I start it from the command line. Any idea what is going on:


TC 3.0 on Windows
>agent start

Log4J configuraiton file C:\BuildAgent\bin\..\conf\teamcity-agent-log4j.xml will
be monitored with interval 10 seconds.
Runner NAnt was not registered
Runner sln2003 was not registered
Runner sln2008 was not registered
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: -1
at java.lang.String.substring(String.java:1768)
at java.lang.String.substring(String.java:1735)
at jetbrains.buildServer.agent.impl.directories.DirectoryMapImpl.updateI
tem(DirectoryMapImpl.java:153)
at jetbrains.buildServer.agent.impl.directories.DirectoryMapImpl.updateA
ndSaveInternalMapOfDirectories(DirectoryMapImpl.java:143)
at jetbrains.buildServer.agent.impl.directories.DirectoryMapImpl.moveUnk
nown2Old(DirectoryMapImpl.java:131)
at jetbrains.buildServer.agent.impl.plugins.DirectoryMapPlugin.init(Dire
ctoryMapPlugin.java:54)
at jetbrains.buildServer.agent.impl.AgentMulticaster$1.action(AgentMulti
caster.java:25)
at jetbrains.buildServer.agent.impl.AgentMulticaster$1.action(AgentMulti
caster.java:23)
at jetbrains.buildServer.agent.impl.PluginHolder.foreachPlugin(PluginHol
der.java:42)
at jetbrains.buildServer.agent.impl.AgentMulticaster.init(AgentMulticast
er.java:22)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.init(BuildAgentImpl.j
ava:790)
at jetbrains.buildServer.agent.AgentMain.main(AgentMain.java:15)

1 comment

Hi phil,

Please remove Server and Agent subdirectories from buildAgent/work directory. The exception is a result of a bug which removes these subdirectories (they should not exist in TC 3.0 anymore)

Hope this helps,
KIR

0

Please sign in to leave a comment.