Problem: build agent stuck in update loop

Hi,

I installed Albus 636 on Tomcat 5.5.12 running on JDK 5 update 6. Then I
installed a build agent on the same Windows machine. I openend a shell,
went to c:\Programme\buildAgent\bin and ran agent.bat.

All the agent seems to do is downloading an update from
/update/buildAgent.zip to c:\Programme\buildAgent\update as well as
plugins/ant165.jar, antPlugin.zip, nantPlugin.zip, applying the patch,
unregistering the agent, restarting the agent, emitting the message

java.util.NoSuchElemenetException

and starting all over, downloading an update yet again.

Stefan

0
5 comments
Avatar
Permanently deleted user

Stefan Matthias Aust wrote:

Hi,

I installed Albus 636 on Tomcat 5.5.12 running on JDK 5 update 6. Then I
installed a build agent on the same Windows machine. I openend a shell,
went to c:\Programme\buildAgent\bin and ran agent.bat.

All the agent seems to do is downloading an update from
/update/buildAgent.zip to c:\Programme\buildAgent\update as well as
plugins/ant165.jar, antPlugin.zip, nantPlugin.zip, applying the patch,
unregistering the agent, restarting the agent, emitting the message

java.util.NoSuchElemenetException


Thats all OK so far ..


and starting all over, downloading an update yet again.


.. and this is not :((. To debug the problem, please change logging
options in log4j.xml in buildAgent/bin directory to enable debug:

Then, please remove buildAgent/bin/buildAgent.log file, restart the agent, stop it, and send us buildAgent.log file. Another information would be helpful as well: dir /S dir /S ]]>/webapps/buildServer/update/

Thanks in advance,
KIR


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

0
Avatar
Permanently deleted user

Kirill Maximov (JetBrains) schrieb:

.. and this is not :((. To debug the problem, please change logging
options in log4j.xml in buildAgent/bin directory to enable debug:

<category name="jetbrains.buildServer">
<priority value="DEBUG"/>
</category>


I alredy tried that but was overwelmed with hexdumps caused by
httpclient. It's probably too big to post here, how shall I best sent
it to you?

Then, please remove buildAgent/bin/buildAgent.log file, restart the
agent, stop it, and send us buildAgent.log file. Another information
would be helpful as well:

dir /S <path to buildAgent>


/update (the other listing is too long) Verzeichnis von c:\Programme\buildAgent\update 15.03.2006 09:29

. 15.03.2006 09:29 .. 15.03.2006 09:29 bin 15.03.2006 09:29 lib 15.03.2006 09:29 plugins 0 Datei(en) 0 Bytes Verzeichnis von c:\Programme\buildAgent\update\bin 15.03.2006 09:29 . 15.03.2006 09:29 .. 15.03.2006 09:29 489 agent.bat 15.03.2006 09:29 285 agent.sh 15.03.2006 09:29 403 buildAgent.bootstrap.properties 15.03.2006 09:29 83 buildAgent.dist.properties 15.03.2006 09:29 45.056 jniwrap.dll 15.03.2006 09:29 325 JNIWrap.lic 15.03.2006 09:29 122.460 libjniwrap.jnilib 15.03.2006 09:29 33.940 libjniwrap.so 15.03.2006 09:29 5.359 log4j.dtd 15.03.2006 09:29 1.293 log4j.xml 10 Datei(en) 209.693 Bytes Verzeichnis von c:\Programme\buildAgent\update\lib 15.03.2006 09:29 . 15.03.2006 09:29 .. 15.03.2006 09:29 45.386 activation.jar 15.03.2006 09:29 3.378 annotations.jar 15.03.2006 09:29 84.017 buildServerAgent.jar 15.03.2006 09:29 44.352 buildServerCommon.jar 15.03.2006 09:29 7.907 buildServerCommonRuntime.jar 15.03.2006 09:29 48.316 buildServerMessages.jar 15.03.2006 09:29 16.687 buildServerRemoteServerProxy.jar 15.03.2006 09:29 3.919 buildServerRuntimeUtil.jar 15.03.2006 09:29 19.683 buildServerServerModel.jar 15.03.2006 09:29 3.058 buildServerXmlRpcWrapper.jar 15.03.2006 09:29 168.760 commons-beanutils-core.jar 15.03.2006 09:29 46.725 commons-codec-1.3.jar 15.03.2006 09:29 278.799 commons-httpclient-3.0-rc4.jar 15.03.2006 09:29 38.015 commons-logging.jar 15.03.2006 09:29 153.276 jdom.jar 15.03.2006 09:29 94.028 jmock-SNAPSHOT.jar 15.03.2006 09:29 154.543 JNIWrap.jar 15.03.2006 09:29 121.070 junit-3.8.1.jar 15.03.2006 09:29 14.241 launcher.jar 15.03.2006 09:29 358.085 log4j-1.2.12.jar 15.03.2006 09:29 280.984 mail.jar 15.03.2006 09:29 106.911 nanocontainer-1.0-RC-1.jar 15.03.2006 09:29 5.629.749 openapi.jar 15.03.2006 09:29 8.833 patches.jar 15.03.2006 09:29 76.958 picocontainer-1.1.jar 15.03.2006 09:29 382.211 resources.jar 15.03.2006 09:29 925.726 resources_en.jar 15.03.2006 09:29 413.662 trove4j.jar 15.03.2006 09:29 610.253 winpack.jar 15.03.2006 09:29 97.005 xmlrpc-2.0.jar 15.03.2006 09:29 24.676 xpp3_min-1.1.3.4.M.jar 15.03.2006 09:29 246.867 xstream-1.1.2.jar 32 Datei(en) 10.508.080 Bytes Verzeichnis von c:\Programme\buildAgent\update\plugins 15.03.2006 09:29 . 15.03.2006 09:29 ]]> ..
15.03.2006 09:29 3.012.090 ant165.jar
15.03.2006 09:29 24.534 antPlugin.zip
15.03.2006 09:29 394.627 nantPlugin.zip
3 Datei(en) 3.431.251 Bytes

dir /S <tomcat_home>/webapps/buildServer/update/


Verzeichnis von c:\temp\tomcat\webapps\buildServer\update

15.03.2006 08:57 . 15.03.2006 08:57

.. 13.03.2006 23:55 8.806 agentInstaller.jar 13.03.2006 18:17 666 buildAgent.jnlp 13.03.2006 23:55 5.495.547 buildAgent.zip 13.03.2006 23:55 6.341.890 buildAgentInstaller.jar 15.03.2006 08:57 plugins 4 Datei(en) 11.846.909 Bytes Verzeichnis von c:\temp\tomcat\webapps\buildServer\update\plugins 15.03.2006 08:57 . 15.03.2006 08:57 ]]> ..
13.03.2006 14:16 3.012.090 ant165.jar
13.03.2006 23:55 24.534 antPlugin.zip
13.03.2006 23:55 394.627 nantPlugin.zip
3 Datei(en) 3.431.251 Bytes

Stefan

0
Avatar
Permanently deleted user

Stefan Matthias Aust wrote:

Kirill Maximov (JetBrains) schrieb:

>> .. and this is not :((. To debug the problem, please change logging
>> options in log4j.xml in buildAgent/bin directory to enable debug:
>>
>> >> >> ]]>


I alredy tried that but was overwelmed with hexdumps caused by
httpclient. It's probably too big to post here, how shall I best sent
it to you?



I guess it would be better to file a Jira request and attach the logs
to it. And please, attach full log for dir /S ]]>
(just redirect redirect output to a file)

>> Then, please remove buildAgent/bin/buildAgent.log file, restart the
>> agent, stop it, and send us buildAgent.log file. Another information
>> would be helpful as well:
>>
>> dir /S ]]>


<path to buildAgent>/update (the other listing is too long)

Verzeichnis von c:\Programme\buildAgent\update

15.03.2006 09:29 <DIR> .
15.03.2006 09:29 <DIR> ..
15.03.2006 09:29 <DIR> bin
15.03.2006 09:29 <DIR> lib
15.03.2006 09:29 <DIR> plugins
0 Datei(en) 0 Bytes

Verzeichnis von c:\Programme\buildAgent\update\bin

15.03.2006 09:29 <DIR> .
15.03.2006 09:29 <DIR> ..
15.03.2006 09:29 489 agent.bat
15.03.2006 09:29 285 agent.sh
15.03.2006 09:29 403 buildAgent.bootstrap.properties
15.03.2006 09:29 83 buildAgent.dist.properties
15.03.2006 09:29 45.056 jniwrap.dll
15.03.2006 09:29 325 JNIWrap.lic
15.03.2006 09:29 122.460 libjniwrap.jnilib
15.03.2006 09:29 33.940 libjniwrap.so
15.03.2006 09:29 5.359 log4j.dtd
15.03.2006 09:29 1.293 log4j.xml
10 Datei(en) 209.693 Bytes

Verzeichnis von c:\Programme\buildAgent\update\lib

15.03.2006 09:29 <DIR> .
15.03.2006 09:29 <DIR> ..
15.03.2006 09:29 45.386 activation.jar
15.03.2006 09:29 3.378 annotations.jar
15.03.2006 09:29 84.017 buildServerAgent.jar
15.03.2006 09:29 44.352 buildServerCommon.jar
15.03.2006 09:29 7.907 buildServerCommonRuntime.jar
15.03.2006 09:29 48.316 buildServerMessages.jar
15.03.2006 09:29 16.687 buildServerRemoteServerProxy.jar
15.03.2006 09:29 3.919 buildServerRuntimeUtil.jar
15.03.2006 09:29 19.683 buildServerServerModel.jar
15.03.2006 09:29 3.058 buildServerXmlRpcWrapper.jar
15.03.2006 09:29 168.760 commons-beanutils-core.jar
15.03.2006 09:29 46.725 commons-codec-1.3.jar
15.03.2006 09:29 278.799 commons-httpclient-3.0-rc4.jar
15.03.2006 09:29 38.015 commons-logging.jar
15.03.2006 09:29 153.276 jdom.jar
15.03.2006 09:29 94.028 jmock-SNAPSHOT.jar
15.03.2006 09:29 154.543 JNIWrap.jar
15.03.2006 09:29 121.070 junit-3.8.1.jar
15.03.2006 09:29 14.241 launcher.jar
15.03.2006 09:29 358.085 log4j-1.2.12.jar
15.03.2006 09:29 280.984 mail.jar
15.03.2006 09:29 106.911 nanocontainer-1.0-RC-1.jar
15.03.2006 09:29 5.629.749 openapi.jar
15.03.2006 09:29 8.833 patches.jar
15.03.2006 09:29 76.958 picocontainer-1.1.jar
15.03.2006 09:29 382.211 resources.jar
15.03.2006 09:29 925.726 resources_en.jar
15.03.2006 09:29 413.662 trove4j.jar
15.03.2006 09:29 610.253 winpack.jar
15.03.2006 09:29 97.005 xmlrpc-2.0.jar
15.03.2006 09:29 24.676 xpp3_min-1.1.3.4.M.jar
15.03.2006 09:29 246.867 xstream-1.1.2.jar
32 Datei(en) 10.508.080 Bytes

Verzeichnis von c:\Programme\buildAgent\update\plugins

15.03.2006 09:29 <DIR> .
15.03.2006 09:29 <DIR> ..
15.03.2006 09:29 3.012.090 ant165.jar
15.03.2006 09:29 24.534 antPlugin.zip
15.03.2006 09:29 394.627 nantPlugin.zip
3 Datei(en) 3.431.251 Bytes

>> dir /S ]]>/webapps/buildServer/update/


Verzeichnis von c:\temp\tomcat\webapps\buildServer\update

15.03.2006 08:57 <DIR> .
15.03.2006 08:57 <DIR> ..
13.03.2006 23:55 8.806 agentInstaller.jar
13.03.2006 18:17 666 buildAgent.jnlp
13.03.2006 23:55 5.495.547 buildAgent.zip
13.03.2006 23:55 6.341.890 buildAgentInstaller.jar
15.03.2006 08:57 <DIR> plugins
4 Datei(en) 11.846.909 Bytes

Verzeichnis von c:\temp\tomcat\webapps\buildServer\update\plugins

15.03.2006 08:57 <DIR> .
15.03.2006 08:57 <DIR> ..
13.03.2006 14:16 3.012.090 ant165.jar
13.03.2006 23:55 24.534 antPlugin.zip
13.03.2006 23:55 394.627 nantPlugin.zip
3 Datei(en) 3.431.251 Bytes

Stefan



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

0
Avatar
Permanently deleted user

Kirill Maximov (JetBrains) schrieb:

I guess it would be better to file a Jira request and attach the logs
to it.


Done: TW-181

Stefan

0


According to Stefan's findings, the problem was that there were no "temp" directory in Tomcat home. We'll add appropriate check in the next EAP.

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

0

Please sign in to leave a comment.