Gradle build runner complains about connection problems

Hello,

I recently installed TeamCity-7.0.1 on my virtual server and now I am struggling with some gradle exception that occurs during the test phase of the triggerd gradle build. I will post the stacktrace and the build log below. Here some details about my setup:

$ java -version
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)



$ ./gradle -version
------------------------------------------------------------
Gradle 1.0-rc-3
------------------------------------------------------------
Gradle build time: Sunday, April 29, 2012 11:51:52 PM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Ivy: 2.2.0
JVM: 1.7.0_04 (Oracle Corporation 23.0-b21)
OS: Linux 3.0.23-vs2.3.2.3-nc amd64


I deployed the TeamCity server inside tomcat (version 7.0.27) and configured one single agent by downloading the agent zip file and manually starting the agent.

Except that problem everythin seems to work fine, at least I did not find any errors in the logs that are provide in the web gui and also the configuration of the projecs works as a charme.

I'd be very glad if someone could give me advice. Below you'll find the log of the latest build .

Best regards,
Ulf

[22:39:17]:processTestResources
[22:39:17]:testClasses
[22:39:17]:test
[22:39:18][:test] Cannot accept connection from remote address /***.***.***.***
[22:39:18][:test] Could not dispatch message [EndOfStreamEvent]. Discarding message.
[22:39:18][:test] org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:34240'.
[22:39:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108)
[22:39:18][:test]  at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35)
[22:39:18][:test]  at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:39:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:39:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:39:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:39:18][:test]  at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:39:18][:test]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:39:18][:test]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:39:18][:test]  at java.lang.Thread.run(Thread.java:722)
[22:39:18][:test] Caused by: java.io.IOException: Broken pipe
[22:39:18][:test]  at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
[22:39:18][:test]  at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
[22:39:18][:test]  at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
[22:39:18][:test]  at sun.nio.ch.IOUtil.write(IOUtil.java:46)
[22:39:18][:test]  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
[22:39:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:223)
[22:39:18][:test]  at java.io.DataOutputStream.flush(DataOutputStream.java:123)
[22:39:18][:test]  at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1803)
[22:39:18][:test]  at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
[22:39:18][:test]  at org.gradle.messaging.remote.internal.Message.send(Message.java:31)
[22:39:18][:test]  at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35)
[22:39:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:105)
[22:39:18][:test]  ... 9 more
[22:41:18][:test] Cannot accept connection from remote address /***.***.***.***
[22:41:18][:test] Could not dispatch message [EndOfStreamEvent]. Discarding message.
[22:41:18][:test] org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:34240'.
[22:41:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108)
[22:41:18][:test]  at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35)
[22:41:18][:test]  at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:41:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:41:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:41:19][:test]  at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:41:19][:test]  at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:41:19][:test]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:41:19][:test]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:41:19][:test]  at java.lang.Thread.run(Thread.java:722)
[22:41:19][:test] Caused by: java.io.IOException: Broken pipe
[22:41:19][:test]  at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
[22:41:19][:test]  at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
[22:41:19][:test]  at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
[22:41:19][:test]  at sun.nio.ch.IOUtil.write(IOUtil.java:46)
[22:41:19][:test]  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
[22:41:19][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:223)
[22:41:19][:test]  at java.io.DataOutputStream.flush(DataOutputStream.java:123)
[22:41:19][:test]  at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1803)
[22:41:19][:test]  at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
[22:41:19][:test]  at org.gradle.messaging.remote.internal.Message.send(Message.java:31)
[22:41:19][:test]  at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35)
[22:41:19][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:105)
[22:41:19][:test]  ... 9 more
[22:43:17][:test] Timeout waiting for Gradle Worker 2 to connect.
[22:43:17][:test] org.gradle.process.internal.ExecException: Timeout waiting for Gradle Worker 2 to connect.
[22:43:17][:test]  at org.gradle.process.internal.DefaultWorkerProcess.start(DefaultWorkerProcess.java:114)
[22:43:17][:test]  at org.gradle.api.internal.tasks.testing.worker.ForkingTestClassProcessor.processTestClass(ForkingTestClassProcessor.java:63)
[22:43:17][:test]  at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.processTestClass(RestartEveryNTestClassProcessor.java:45)
[22:43:17][:test]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:43:17][:test]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[22:43:17][:test]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[22:43:17][:test]  at java.lang.reflect.Method.invoke(Method.java:601)
[22:43:17][:test]  at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
[22:43:17][:test]  at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
[22:43:17][:test]  at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:43:17][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:43:17][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:43:17][:test]  at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:43:17][:test]  at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:43:17][:test]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:43:17][:test]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:43:17][:test]  at java.lang.Thread.run(Thread.java:722)
[22:43:18][:test] Cannot accept connection from remote address /***.***.***.***
[22:43:18][:test] Could not dispatch message [EndOfStreamEvent]. Discarding message.
[22:43:18][:test] org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:34240'.
[22:43:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108)
[22:43:18][:test]  at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35)
[22:43:18][:test]  at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:43:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:43:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:43:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:43:18][:test]  at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:43:18][:test]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:43:18][:test]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:43:18][:test]  at java.lang.Thread.run(Thread.java:722)
[22:43:18][:test] Caused by: java.io.IOException: Broken pipe
[22:43:18][:test]  at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
[22:43:18][:test]  at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
[22:43:18][:test]  at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
[22:43:18][:test]  at sun.nio.ch.IOUtil.write(IOUtil.java:46)
[22:43:18][:test]  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
[22:43:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:223)
[22:43:18][:test]  at java.io.DataOutputStream.flush(DataOutputStream.java:123)
[22:43:18][:test]  at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1803)
[22:43:18][:test]  at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
[22:43:18][:test]  at org.gradle.messaging.remote.internal.Message.send(Message.java:31)
[22:43:18][:test]  at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35)
[22:43:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:105)
[22:43:18][:test]  ... 9 more
[22:45:17][:test] Timeout waiting for Gradle Worker 3 to connect.
[22:45:17][:test] org.gradle.process.internal.ExecException: Timeout waiting for Gradle Worker 3 to connect.
[22:45:17][:test]  at org.gradle.process.internal.DefaultWorkerProcess.start(DefaultWorkerProcess.java:114)
[22:45:17][:test]  at org.gradle.api.internal.tasks.testing.worker.ForkingTestClassProcessor.processTestClass(ForkingTestClassProcessor.java:63)
[22:45:17][:test]  at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.processTestClass(RestartEveryNTestClassProcessor.java:45)
[22:45:17][:test]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:45:17][:test]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[22:45:17][:test]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[22:45:17][:test]  at java.lang.reflect.Method.invoke(Method.java:601)
[22:45:17][:test]  at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
[22:45:17][:test]  at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
[22:45:17][:test]  at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:45:17][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:45:17][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:45:17][:test]  at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:45:17][:test]  at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:45:17][:test]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:45:17][:test]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:45:17][:test]  at java.lang.Thread.run(Thread.java:722)
[22:45:18][:test] Cannot accept connection from remote address /***.***.***.***
[22:45:18][:test] Could not dispatch message [EndOfStreamEvent]. Discarding message.
[22:45:18][:test] org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:34240'.
[22:45:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108)
[22:45:18][:test]  at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35)
[22:45:18][:test]  at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:45:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:45:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:45:18][:test]  at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:45:18][:test]  at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:45:18][:test]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:45:18][:test]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:45:18][:test]  at java.lang.Thread.run(Thread.java:722)
[22:45:18][:test] Caused by: java.io.IOException: Broken pipe
[22:45:18][:test]  at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
[22:45:18][:test]  at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
[22:45:18][:test]  at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
[22:45:18][:test]  at sun.nio.ch.IOUtil.write(IOUtil.java:46)
[22:45:18][:test]  at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
[22:45:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:223)
[22:45:18][:test]  at java.io.DataOutputStream.flush(DataOutputStream.java:123)
[22:45:18][:test]  at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1803)
[22:45:18][:test]  at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
[22:45:18][:test]  at org.gradle.messaging.remote.internal.Message.send(Message.java:31)
[22:45:18][:test]  at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35)
[22:45:18][:test]  at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:105)
[22:45:18][:test]  ... 9 more
[22:47:17][:test] Timeout waiting for Gradle Worker 4 to connect.
[22:47:17][:test] org.gradle.process.internal.ExecException: Timeout waiting for Gradle Worker 4 to connect.
[22:47:17][:test]  at org.gradle.process.internal.DefaultWorkerProcess.start(DefaultWorkerProcess.java:114)
[22:47:17][:test]  at org.gradle.api.internal.tasks.testing.worker.ForkingTestClassProcessor.processTestClass(ForkingTestClassProcessor.java:63)
[22:47:17][:test]  at org.gradle.api.internal.tasks.testing.processors.RestartEveryNTestClassProcessor.processTestClass(RestartEveryNTestClassProcessor.java:45)
[22:47:17] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[22:47:17] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[22:47:17] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[22:47:17] at java.lang.reflect.Method.invoke(Method.java:601)
[22:47:17] at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
[22:47:17] at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
[22:47:17] at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29)
[22:47:17] at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132)
[22:47:17] at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)
[22:47:17] at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
[22:47:17] at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
[22:47:17] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[22:47:17] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[22:47:17] at java.lang.Thread.run(Thread.java:722)
[22:47:17]
4 comments
Comment actions Permalink

Ulf,

I believe you are facing this Gradle issue:
http://issues.gradle.org/browse/GRADLE-2265


I suggest you to check your network setup, as Gradle is reported having troubles when using loopback address other than 127.0.0.1
0
Comment actions Permalink

Hi Nikita,

that sounds exactly like my problem. Thanks for the hint, I'll see if I can fix this.

Have a nice weekend,
Ulf

0
Comment actions Permalink

Hi Nikita,

I downloaded the latest gradle version (nightly build) and it solved the issue.

Thx,
Ulf

0
Comment actions Permalink

Ulf,

You are welcome )

0

Please sign in to leave a comment.